delete unnecessary variable
[mdictionary] / trunk / src / plugins / google / src / GooglePlugin.h
index bb74daf..69b0e35 100644 (file)
@@ -80,6 +80,10 @@ public:
     //! returns whether plugin can start searching
     bool isAvailable() const;
 
+    void setConnectionAccept(QString connectionAcepted);
+
+    bool isConnectionAccept() const;
+
     //! returns a description of a word given by a QString
     QString search(QString key);
 
@@ -93,7 +97,7 @@ public:
     Settings* settings();
 
     //! Sets new settings
-    void setSettings(Settings*);
+    void setSettings(const Settings*);
 
     //! returns plugin icon
     QIcon* icon();
@@ -117,27 +121,21 @@ public slots:
 
     void done();
 
-private:
     QString jsonParse(QString result);
-    void getDictionaryInfo();
 
+private:
+    void getDictionaryInfo();
     QMap<QString, QString> languages;
-    //! language from which we translate
-    QString _langFrom;
-    //! language to which we translate
-    QString _langTo;
-    //! name of a dictionary
     QString _name;
     //! type of a dictionary
     QString _type;
     //! information about dictionary
     QString _infoNote;
-    //! path to dictionary file
-    QString path;
     uint _hash;
     QIcon _icon;
     Settings *_settings;
     bool stopped;
+    bool _connectionAccept;
     volatile bool wait;
     QHttp *http;
     GoogleDictDialog *_dictDialog;