Copyright 2010 Comarch S.A.
*******************************************************************************/
-
-/*! \file TranslationGoogle.h
+/*!
+ \file TranslationGoogle.h
\author Jakub Jaszczynski <j.j.jaszczynski@gmail.com>
*/
#ifndef TRANSLATIONGOOGLE_H
#define TRANSLATIONGOOGLE_H
-#include "../../common/translation.h"
+#include "../../include/translation.h"
#include "GooglePlugin.h"
class GooglePlugin;
{
public:
TranslationGoogle();
- TranslationGoogle(QString _key,QString _trans,QString _dictionaryInfo, GooglePlugin *googlePlugin);
+ TranslationGoogle(QString _key,QString _trans,QString _dictionaryInfo,
+ GooglePlugin *googlePlugin);
~TranslationGoogle();
//! \return word to be translated
QString key() const;
- /*! \returns dictionary information (plugin name, languages, <logo> etc)\
- to be displayed in translation table header*/
- QString dictionaryInfo() const;
-
- //! \return parsed raw format into html
- QString toHtml() const;
+ //! \return parsed raw format into xml
+ QString toXml() const;
- /*! 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);
//! sets information about dictionary
void setDictionaryInfo(QString);
//! \return whether given translation is taken from bookmarks
- bool isBookmark() const {
+ int isBookmark() const {
return _bookmark;
- }
+ }
- //! returns coresponding dict object
+ //! \returns corresponding dict object
uint dict() const {return _dictHash;}
private:
QString _key;
QString _dictionaryInfo;
QString _trans;
- GooglePlugin *googlePlugin;
int _dictHash;
bool error;
-
+ GooglePlugin *googlePlugin;
};
#endif // TRANSLATIONGOOGLE_H