detect a disconect error in GooglePlugin
[mdictionary] / trunk / src / plugins / google / src / GooglePlugin.h
index 33e779c..bb74daf 100644 (file)
 
 *******************************************************************************/
 
-
 /*! \file GooglePlugin.h
+
+    \author Jakub Jaszczynski <j.j.jaszczynski@gmail.com>
 */
+
 #ifndef GOOGLEPLUGIN_H
 #define GOOGLEPLUGIN_H
 
@@ -96,6 +98,9 @@ public:
     //! returns plugin icon
     QIcon* icon();
 
+    Translation* getTranslationFor(QString key);
+
+    static QMap<QString, QString> initLanguages();
 
 public slots:
     /*! performs search in dictionary
@@ -111,12 +116,12 @@ public slots:
     void stop();
 
     void done();
-    void started(int);
 
 private:
-    void initLanguages();
-    QMap<QString, QString> languages;
+    QString jsonParse(QString result);
+    void getDictionaryInfo();
 
+    QMap<QString, QString> languages;
     //! language from which we translate
     QString _langFrom;
     //! language to which we translate