First Backbone draft ready
[mdictionary] / trunk / src / includes / translation.h
index a56fa11..0ef07f2 100644 (file)
 *******************************************************************************/
 
 //Created by Bartosz Szatkowski
+
+#ifndef TRANSLATION_H
+#define TRANSLATION_H
+
 #include <QString>
 
+
+
 //! Keeping raw form of translation to be parsed only when needed
 class Translation {
   public:
     //! \return word to be translated
-    QString key() const = 0;
+    virtual QString key() const = 0;
  
-    //! \returns dictionary information (plugin name, languages, <logo> etc)\
-    //!     to be displayed in translation table header
-    QString dictionaryInfo() const = 0;
+    /*! \returns dictionary information (plugin name, languages, <logo> etc)\
+         to be displayed in translation table header */
+    virtual QString dictionaryInfo() const = 0;
 
     //! \return parsed raw format into html
-    QString toHtml() const = 0;
-}
+    virtual QString toHtml() const = 0;
+};
+
+#endif