code clean
[mdictionary] / src / mdictionary / backbone / BookmarkTranslations.h
index 0748d30..4101e91 100644 (file)
 
 *******************************************************************************/
 
-/*! \file BookmarkTranslation.h
-\brief Bookmarks functionality needs its own translation  object - because
+/*!
+    \file BookmarkTranslation.h
+    \brief Bookmarks functionality needs its own translation object - because
     Translation object should use slightly different api of Bookmarks objects
 
-\author Bartosz Szatkowski <bulislaw@linux.com>
+    \author Bartosz Szatkowski <bulislaw@linux.com>
 */
 #ifndef BOOKMARKTRANSLATIONS_H
 #define BOOKMARKTRANSLATIONS_H
 
-#include "../../common/settings.h"
-#include "../../common/translation.h"
+#include "../../include/settings.h"
+#include "../../include/translation.h"
 #include "Bookmarks.h"
 #include "QObject"
 
@@ -42,7 +43,7 @@ public:
         _key = key;
         _dictionaryInfo = dbName;
         _bookmarks = bookmarks;
-        _bookmark = 1;
+        _bookmark = 2;
     }
 
     //! \return word to be translated
@@ -50,14 +51,8 @@ public:
         return _key;
     }
 
-    /*! \returns dictionary information (plugin name, languages, <logo> etc)\
-        to be displayed in translation table header*/
-    QString dictionaryInfo() const {
-        return _dictionaryInfo;
-    }
-
-    //! \return parsed raw format into html
-    QString toHtml() const {
+    //! \return parsed raw format into xml
+    QString toXml() const {
         if(!_key.size() || !_bookmarks)
             return "";
 
@@ -69,11 +64,13 @@ public:
 
     }
 
-    /*! sets the word for which we want to find a translation
-        \param word for which we want to find a translation */
+    /*!
+        sets the word for which we want to find a translation
+        \param word for which we want to find a translation
+    */
     void setKey(QString key) {
         _key = key;
-    };
+    }
 
     //! sets information about dictionary
     void setDictionaryInfo(QString dictionaryInfo) {