Syntalos::ModuleInfo
Syntalos::ModuleInfo
Static information about a module.
#include <moduleapi.h>
Public Functions
| Name | |
|---|---|
| ModuleInfo() | |
| virtual | ~ModuleInfo() |
| virtual QString | id() const Name of this module used internally as unique identifier. |
| virtual QString | name() const Name of this module displayed to the user. |
| virtual QString | summary() const Very brief description of this module. |
| virtual QString | description() const Long description of this module. |
| virtual QString | authors() const Developer(s) of this module, one developer name per line. |
| virtual QString | license() const Additional licensing conditions that apply to this module. |
| virtual QIcon | icon() const Icon of this module. |
| virtual void | refreshIcon() Called when the icon should be reloaded or updated. |
| virtual QColor | color() const The dominant color for this module. |
| virtual ModuleCategories | categories() const Categories this module belongs to. |
| virtual QString | storageGroupName() const Name of a storage group for modules of this type. |
| virtual bool | singleton() const Returns true if only one instance of this module can exist. |
| virtual AbstractModule * | createModule(QObject * parent =nullptr) =0 Instantiate the actual module. |
| int | count() const |
| QString | rootDir() const |
| void | setRootDir(const QString & dir) |
Protected Functions
| Name | |
|---|---|
| void | setIcon(const QIcon & icon) |
Friends
| Name | |
|---|---|
| class | Engine |
Public Functions Documentation
function ModuleInfo
explicit ModuleInfo()function ~ModuleInfo
virtual ~ModuleInfo()function id
virtual QString id() constName of this module used internally as unique identifier.
function name
virtual QString name() constName of this module displayed to the user.
function summary
virtual QString summary() constVery brief description of this module.
function description
virtual QString description() constLong description of this module.
function authors
virtual QString authors() constDeveloper(s) of this module, one developer name per line.
function license
virtual QString license() constAdditional licensing conditions that apply to this module.
function icon
virtual QIcon icon() constIcon of this module.
function refreshIcon
virtual void refreshIcon()Called when the icon should be reloaded or updated.
function color
virtual QColor color() constThe dominant color for this module.
function categories
virtual ModuleCategories categories() constCategories this module belongs to.
function storageGroupName
virtual QString storageGroupName() constName of a storage group for modules of this type.
If this is left empty, modules will write into the main data storage group instead of a dedicated one.
function singleton
virtual bool singleton() constReturns true if only one instance of this module can exist.
Return: True if singleton.
function createModule
virtual AbstractModule * createModule(
QObject * parent =nullptr
) =0Instantiate the actual module.
Return: A new module of this type.
function count
int count() constfunction rootDir
QString rootDir() constfunction setRootDir
void setRootDir(
const QString & dir
)Protected Functions Documentation
function setIcon
void setIcon(
const QIcon & icon
)Friends
friend Engine
friend class Engine(
Engine
);Updated on 2025-08-14 at 02:33:44 +0000