#include <module_interface.h>
Inheritance diagram for ModuleFactory:
Public Types | |
Plugin | |
Controller | |
NoPlugin | |
enum | ModulType { Plugin, Controller, NoPlugin } |
Public Member Functions | |
ModuleFactory (const QString &name, const QString &label, const QIcon &icon=QIcon()) | |
virtual | ~ModuleFactory () |
virtual void | init ()=0 |
virtual ModulType | type ()=0 |
virtual ModuleInterface * | create (const QString &)=0 |
QString | name (int index) const |
QString | label (int index) const |
QIcon | icon (int index) const |
QString | groupName () const |
QString | groupLabel () const |
QIcon | groupIcon () const |
int | count () const |
Protected Member Functions | |
void | addModul (const QString &name, const QString &label, const QIcon &icon=QIcon()) |
Private Attributes | |
QString | m_groupName |
QString | m_groupLabel |
QIcon | m_groupIcon |
QMap< int, ModulItem * > | m_modules |
Classes | |
struct | ModulItem |
ModuleFactory::ModuleFactory | ( | const QString & | name, | |
const QString & | label, | |||
const QIcon & | icon = QIcon() | |||
) | [inline] |
virtual ModuleFactory::~ModuleFactory | ( | ) | [inline, virtual] |
void ModuleFactory::addModul | ( | const QString & | name, | |
const QString & | label, | |||
const QIcon & | icon = QIcon() | |||
) | [inline, protected] |
int ModuleFactory::count | ( | ) | const [inline] |
virtual ModuleInterface* ModuleFactory::create | ( | const QString & | ) | [pure virtual] |
Implemented in GraphicFactory, OsdFactory, SerdispFactory, AmarokFactory, LMSensorsFactory, and SysInfoFactory.
QIcon ModuleFactory::groupIcon | ( | ) | const [inline] |
QString ModuleFactory::groupLabel | ( | ) | const [inline] |
QString ModuleFactory::groupName | ( | ) | const [inline] |
QIcon ModuleFactory::icon | ( | int | index | ) | const [inline] |
virtual void ModuleFactory::init | ( | ) | [pure virtual] |
Implemented in GraphicFactory, OsdFactory, SerdispFactory, AmarokFactory, LMSensorsFactory, and SysInfoFactory.
QString ModuleFactory::label | ( | int | index | ) | const [inline] |
QString ModuleFactory::name | ( | int | index | ) | const [inline] |
virtual ModulType ModuleFactory::type | ( | ) | [pure virtual] |
Implemented in GraphicFactory, OsdFactory, SerdispFactory, AmarokFactory, LMSensorsFactory, and SysInfoFactory.
QIcon ModuleFactory::m_groupIcon [private] |
QString ModuleFactory::m_groupLabel [private] |
QString ModuleFactory::m_groupName [private] |
QMap<int, ModulItem*> ModuleFactory::m_modules [private] |