24 #ifndef _GEMA_PLUGIN_INFO_H_ 25 #define _GEMA_PLUGIN_INFO_H_ 28 #include <QStringList> 65 int typeIndex(
int catIndex,
QString objType)
const {
return _typeList.at(catIndex).indexOf(objType); }
68 QString typeName(
int catIndex,
int typeIndex)
const {
return _name +
"." + _typeList.
at(catIndex).at(typeIndex); }
94 const QVariantMap&
attributes()
const {
return _pluginAttributes; }
const QStringList & pluginDataAliases() const
Returns a list of aliases for PluginData objects understood by this plugin.
Definition: gmPluginInfo.h:91
QString path() const
Returns the path to the shared library that implements this plugin.
Definition: gmPluginInfo.h:44
QString _checkFunctionName
Name of a Lua function used to validate plugin parameters.
Definition: gmPluginInfo.h:118
const QStringList & categoryList() const
Returns the plugin type.
Definition: gmPluginInfo.h:53
Base class used to store information about a generic plugin.
Definition: gmPluginInfo.h:38
QString checkAttributesFunction() const
Returns the name of the Lua function defined in the resource returned by pluginLuaRsrc() used to vali...
Definition: gmPluginInfo.h:82
const QVariantMap & attributes() const
Map with additional attributes describing the plugin and unused by the plugin manager.
Definition: gmPluginInfo.h:94
QString typeName(int catIndex, int typeIndex) const
Returns the full hierarchical type name for one entry in the typeList.
Definition: gmPluginInfo.h:68
QString name() const
Returns the plugin name.
Definition: gmPluginInfo.h:47
Declaration of usefull configuration definitions for the Core library.
const T & at(int i) const const
QStringList _categoryList
Plugin category list.
Definition: gmPluginInfo.h:114
const QStringList & typeList(int catIndex) const
Returns a list with the object types implemented by the plugin for one entry in the categoryList.
Definition: gmPluginInfo.h:62
QString categoryStr() const
Returns a comma separated string combining the names of all categories supported by this plugin.
Definition: gmPluginInfo.h:56
const QStringList & dependencies() const
Returns a list of plugins that must be loaded before this plugin can be loaded to memory.
Definition: gmPluginInfo.h:98
int categoryIndex(QString cat) const
Returns the index of the given category in the category list or -1 if not found.
Definition: gmPluginInfo.h:59
QList< QStringList > _typeList
List of object types implemented by the plugin per category. Ordered as _categoryList.
Definition: gmPluginInfo.h:115
QVariantMap _pluginAttributes
Map with additional attributes provided by the plugin.
Definition: gmPluginInfo.h:116
int typeIndex(int catIndex, QString objType) const
Returns the index of the given object type in the type list or -1 if not found.
Definition: gmPluginInfo.h:65
QStringList _pluginDataAliases
List of aliases for PluginData objects understood by this plugin.
Definition: gmPluginInfo.h:121
QStringList _pluginDependencies
List of plugins that should be loaded before this one. Can be empty.
Definition: gmPluginInfo.h:119
QString _pluginRsrc
Rsrc containing a Lua script with functions used by the plugin.
Definition: gmPluginInfo.h:117
#define GMC_API_EXPORT
Macro for controling if the class is being exported (GEMA_CORE_LIB defined) or imported (GEMA_CORE_LI...
Definition: gmCoreConfig.h:35
Class representing a category with multiple logging levels.
Definition: gmLog.h:58
QString _path
Path to the plugin shared library.
Definition: gmPluginInfo.h:111
QString _name
Plugin name.
Definition: gmPluginInfo.h:112
QString _version
Plugin version (optional, from the Lua file, NOT from the plugin itself)
Definition: gmPluginInfo.h:113
const QChar at(int position) const const
QString pluginLuaRsrc() const
Returns the rsrc name for a set of Lua functions defined by the plugin or "" if the plugin does not h...
Definition: gmPluginInfo.h:73
QString version() const
Returns the optional plugin version from the Lua file, NOT from the plugin itself.
Definition: gmPluginInfo.h:50
QString pluginLuaTableName() const
Returns the name of the Lua table used to host functions defined in the plugin rsrc (if it exists)
Definition: gmPluginInfo.h:76
QString _pluginDataCheckFunctionName
Name of a Lua function used to validate associated plugin data.
Definition: gmPluginInfo.h:120
QString pluginDataCheckFunction() const
Returns the name of the Lua function defined in the resource returned by pluginLuaRsrc() used to vali...
Definition: gmPluginInfo.h:88