Fixed #6304: xdxf plugin deletes cache files when beign removed from app
[mdictionary] / trunk / src / includes / CommonDictInterface.h
index f4af85d..712f68c 100644 (file)
@@ -89,8 +89,14 @@ class CommonDictInterface : public QObject, public AccentsNormalizer {
     //! returns plugin icon
     virtual QIcon* icon() = 0;
 
+    //! returns empty translation object (to be fetch later) for given key
     virtual Translation* getTranslationFor(QString key) {return 0;}
 
+    /*! plugin should delete any files (eg. cache) that has created and be ready
+        to be deleted
+        */
+    virtual void clean() {};
+
  public Q_SLOTS:
     /*! performs search in dictionary
         \param  word word to search in dictionary