1 #ifndef TRANSLATIONGOOGLE_H
2 #define TRANSLATIONGOOGLE_H
4 #include "../../../includes/translation.h"
5 #include "GooglePlugin.h"
9 class TranslationGoogle : public Translation
14 TranslationGoogle(QString _key,QString _trans,QString _dictionaryInfo, GooglePlugin *googlePlugin);
16 //! \return word to be translated
19 /*! \returns dictionary information (plugin name, languages, <logo> etc)\
20 to be displayed in translation table header*/
21 QString dictionaryInfo() const;
23 //! \return parsed raw format into html
24 QString toHtml() const;
26 /*! sets the word for which we want to find a translation
27 \param word for which we want to find a translation */
30 //! sets information about dictionary
31 void setDictionaryInfo(QString);
33 //! \retrun whether given translation is taken from bookmarks
34 bool isBookmark() const {
38 //! returns coresponding dict object
39 uint dict() const {return _dictHash;}
43 QString _dictionaryInfo;
45 GooglePlugin *googlePlugin;
50 #endif // TRANSLATIONGOOGLE_H