Fixed some of memory leaks and sigsev and bugs
[mdictionary] / trunk / src / includes / translation.h
index c32e75d..6076583 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <QString>
 #include <QMetaType>
+class CommonDictInterface;
 
 
 /*! Translation is kind of GoF proxy, it stores key:translation pair and
@@ -53,7 +54,7 @@ class Translation {
     virtual QString toHtml() const = 0;
 
     //! \retrun whether given translation is taken from bookmarks
-    bool isBookmark() const {
+    virtual bool isBookmark() const {
         return _bookmark;
    }
 
@@ -62,6 +63,9 @@ class Translation {
        _bookmark = b;
    }
 
+    //! returns coresponding dict object
+   virtual uint dict() const {return 0;} ;
+
    protected:
        bool _bookmark;