Merge branch 'master' into xdxf
[mdictionary] / trunk / src / includes / CommonDictInterface.h
index 5a0c466..e094144 100644 (file)
@@ -28,9 +28,8 @@
 #include <QDialog>
 #include <QObject>
 #include <QList>
-#include "CommonDictInterface.h"
 #include "translation.h"
-#include "settings.h"
+class Settings;
 
 Q_DECLARE_INTERFACE (CommonDictInterface, "xdxfInterface")
 
@@ -68,10 +67,14 @@ class CommonDictInterface : public QObject {
     //! returns whether plugin can start searching
     virtual bool isAvailable() const = 0;
 
+    //! returns the actual translation of a word given in key
     virtual QString search(QString key) = 0;
 
+    //! \returns unique value (unique for every dictionary not plugin
+    virtual uint hash() const = 0;
+
  public Q_SLOTS:
-    /*! performes search in dictionary
+    /*! performs search in dictionary
         \param  word word to search in dictionary
         \param limit limit on number of results
 
@@ -92,5 +95,6 @@ class CommonDictInterface : public QObject {
     void loaded(CommonDictInterface*);
 };
 
-#endif // COMMONDICTINTERFACE_H
+Q_DECLARE_INTERFACE(CommonDictInterface, "CommonDictInterface/0.1");
 
+#endif