Added multi-dictionary handling
[mdictionary] / trunk / src / plugins / xdxf / src / XdxfPlugin / TranslationXdxf.h
1 #ifndef TRANSLATIONXDXF_H
2 #define TRANSLATIONXDXF_H
3
4 #include <QString>
5 #include "../../../../includes/translation.h"
6 #include "xdxfplugin.h"
7
8 class TranslationXdxf : public Translation
9 {
10 public:
11     TranslationXdxf();
12     TranslationXdxf(QString _key,QString _dictionaryInfo, XdxfPlugin *xdxfPlugin);
13
14     //! \return word to be translated
15     QString key() const;
16
17     //! \returns dictionary information (plugin name, languages, <logo> etc)\
18     //!    to be displayed in translation table header
19     QString dictionaryInfo() const;
20
21     //! \return parsed raw format into html
22     QString toHtml() const;
23
24     //! sets the word for which we want to find a translation
25     void setKey(QString);
26
27     //! sets information about dictionary
28     void setDictionaryInfo(QString);
29
30
31 private:
32     QString _key;
33     QString _dictionaryInfo;
34     XdxfPlugin *xdxfPlugin;
35
36 };
37
38 #endif // TRANSLATIONXDXF_H
39