24#ifndef _GEMA_PLUGIN_INFO_H_
25#define _GEMA_PLUGIN_INFO_H_
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; }
Class representing a category with multiple logging levels.
Definition gmLog.h:58
Base class used to store information about a generic plugin.
Definition gmPluginInfo.h:39
QString _path
Path to the plugin shared library.
Definition gmPluginInfo.h:111
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 checkAttributesFunction() const
Returns the name of the Lua function defined in the resource returned by pluginLuaRsrc() used to vali...
Definition gmPluginInfo.h:82
QString pluginDataCheckFunction() const
Returns the name of the Lua function defined in the resource returned by pluginLuaRsrc() used to vali...
Definition gmPluginInfo.h:88
QString _pluginDataCheckFunctionName
Name of a Lua function used to validate associated plugin data.
Definition gmPluginInfo.h:120
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
QString version() const
Returns the optional plugin version from the Lua file, NOT from the plugin itself.
Definition gmPluginInfo.h:50
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
QString _pluginRsrc
Rsrc containing a Lua script with functions used by the plugin.
Definition gmPluginInfo.h:117
QStringList _pluginDataAliases
List of aliases for PluginData objects understood by this plugin.
Definition gmPluginInfo.h:121
QList< QStringList > _typeList
List of object types implemented by the plugin per category. Ordered as _categoryList.
Definition gmPluginInfo.h:115
QString categoryStr() const
Returns a comma separated string combining the names of all categories supported by this plugin.
Definition gmPluginInfo.h:56
QString path() const
Returns the path to the shared library that implements this plugin.
Definition gmPluginInfo.h:44
const QVariantMap & attributes() const
Map with additional attributes describing the plugin and unused by the plugin manager.
Definition gmPluginInfo.h:94
QVariantMap _pluginAttributes
Map with additional attributes provided by the plugin.
Definition gmPluginInfo.h:116
QString _name
Plugin name.
Definition gmPluginInfo.h:112
QStringList _pluginDependencies
List of plugins that should be loaded before this one. Can be empty.
Definition gmPluginInfo.h:119
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 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
Plugin version (optional, from the Lua file, NOT from the plugin itself)
Definition gmPluginInfo.h:113
const QStringList & pluginDataAliases() const
Returns a list of aliases for PluginData objects understood by this plugin.
Definition gmPluginInfo.h:91
QStringList _categoryList
Plugin category list.
Definition gmPluginInfo.h:114
QString _checkFunctionName
Name of a Lua function used to validate plugin parameters.
Definition gmPluginInfo.h:118
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
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
const QStringList & categoryList() const
Returns the plugin type.
Definition gmPluginInfo.h:53
Declaration of useful configuration definitions for the Core library.
#define GMC_API_EXPORT
Macro for controlling if the class is being exported (GEMA_CORE_LIB defined) or imported (GEMA_CORE_L...
Definition gmCoreConfig.h:35
const T & at(int i) const const
const QChar at(int position) const const