summaryrefslogtreecommitdiff
path: root/plugins-alternative/Themes/Teracopy/factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-alternative/Themes/Teracopy/factory.h')
-rw-r--r--plugins-alternative/Themes/Teracopy/factory.h38
1 files changed, 17 insertions, 21 deletions
diff --git a/plugins-alternative/Themes/Teracopy/factory.h b/plugins-alternative/Themes/Teracopy/factory.h
index babac47..0b3bb3f 100644
--- a/plugins-alternative/Themes/Teracopy/factory.h
+++ b/plugins-alternative/Themes/Teracopy/factory.h
@@ -1,8 +1,7 @@
/** \file factory.h
\brief Define the factory
\author alpha_one_x86
-\version 0.3
-\date 2010 */
+\licence GPL3, see the file COPYING */
#ifndef FACTORY_H
#define FACTORY_H
@@ -17,30 +16,27 @@
#include "Environment.h"
/// \brief Define the factory, to create instance of the interface
-class Factory : public PluginInterface_ThemesFactory
+class ThemesFactory : public PluginInterface_ThemesFactory
{
- Q_OBJECT
- Q_INTERFACES(PluginInterface_ThemesFactory)
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "first-world.info.ultracopier.PluginInterface.ThemesFactory/1.0.1.0" FILE "plugin.json")
+ Q_INTERFACES(PluginInterface_ThemesFactory)
public:
- /// \brief to return the instance of the copy engine
- PluginInterface_Themes * getInstance();
- /// \brief set the resources, to store options, to have facilityInterface
- void setResources(OptionInterface * optionsEngine,const QString &writePath,const QString &pluginPath,FacilityInterface * facilityEngine,bool portableVersion);
- /// \brief to get the default options widget
- QWidget * options();
- /// \brief to get a resource icon
- QIcon getIcon(const QString &fileName);
+ /// \brief to return the instance of the copy engine
+ PluginInterface_Themes * getInstance();
+ /// \brief set the resources, to store options, to have facilityInterface
+ void setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,FacilityInterface * facilityInterface,const bool &portableVersion);
+ /// \brief to get the default options widget
+ QWidget * options();
+ /// \brief to get a resource icon
+ QIcon getIcon(const QString &fileName) const;
public slots:
- void resetOptions();
- void newLanguageLoaded();
+ void resetOptions();
+ void newLanguageLoaded();
signals:
- void reloadLanguage();
- #ifdef ULTRACOPIER_PLUGIN_DEBUG
- /// \brief To debug source
- void debugInformation(DebugLevel level,QString fonction,QString text,QString file,int ligne);
- #endif
+ void reloadLanguage();
private:
- FacilityInterface * facilityEngine;
+ FacilityInterface * facilityEngine;
};
#endif // FACTORY_H