29 #include <QMetaObject>
31 #include <QStringList>
33 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
39 #define FarsaPlugin_IID "com.farsa.plugin/1.0"
54 virtual void registerTypesOnFactory() = 0;
59 Q_DECLARE_INTERFACE(
FarsaPlugin, FarsaPlugin_IID );
62 #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
63 #define FARSA_EXPORT_PLUGIN(...)
64 #define FARSA_PLUGIN_METADATA(...) Q_PLUGIN_METADATA(__VA_ARGS__)
66 #define FARSA_EXPORT_PLUGIN(PluginName, ClassName) Q_EXPORT_PLUGIN2(PluginName, ClassName);
67 #define FARSA_PLUGIN_METADATA(...)
72 #define FARSA_PLUGIN_API __declspec(dllexport)
73 #define FARSA_PLUGIN_TEMPLATE __declspec(dllexport)
74 #define FARSA_PLUGIN_INTERNAL
76 #define FARSA_PLUGIN_API_IMPORT __declspec(dllimport)
77 #define FARSA_PLUGIN_TEMPLATE_IMPORT
78 #define FARSA_PLUGIN_INTERNAL_IMPORT
80 #define FARSA_PLUGIN_API
81 #define FARSA_PLUGIN_TEMPLATE
82 #define FARSA_PLUGIN_INTERNAL __attribute__ ((visibility ("hidden")))
84 #define FARSA_PLUGIN_API_IMPORT
85 #define FARSA_PLUGIN_TEMPLATE_IMPORT
86 #define FARSA_PLUGIN_INTERNAL_IMPORT __attribute__ ((visibility ("hidden")))
90 #define FARSA_REGISTER_CLASS(...)
91 #define FARSA_PRE_REGISTRATION_FUNCTION(...)
92 #define FARSA_POST_REGISTRATION_FUNCTION(...)
the interface for implement a plugin for adding new feature to FARSA
This file contains the common type defitions used on the whole framework.
virtual ~FarsaPlugin()
Virtual Destructor.
virtual QStringList getDependencies()
returns the list of dependencies