*******************************************************************************/
-/*! \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
_key = key;
_dictionaryInfo = dbName;
_bookmarks = bookmarks;
- _bookmark = 1;
+ _bookmark = 2;
}
//! \return word to be translated
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 "";
}
- /*! 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) {