//! 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
return true;
}
+
+
+void XdxfPlugin::clean() {
+ if(settings()->value("cached") == "true")
+ QFile(settings()->value("cache_path")).remove();
+}
+
Q_EXPORT_PLUGIN2(xdxf, XdxfPlugin)