LibEngsas
|
A QListWidgetItem to handle information about a plugin. More...
#include <emodulelistwidgetitem.h>
Public Member Functions | |
EModuleListWidgetItem (QObject *plugin, QListWidget *parent=0, int type=Type) | |
EModuleListWidgetItem (QListWidget *parent=0, int type=Type) | |
EModuleListWidgetItem (QString text, QListWidget *parent=0, int type=Type) | |
EModuleListWidgetItem (QIcon icon, QString text, QListWidget *parent=0, int type=Type) | |
QObject * | plugin () const |
void | setPlugin (QObject *plugin) |
void | setName (QString name) |
QString | name () const |
void | setFile (QString file) |
QString | file () const |
void | setStatus (bool status) |
bool | status () const |
void | setErrorMessage (QString message) |
QString | errorMessage () const |
void | setDescription (QString description) |
QString | description () const |
void | setModuleIcon (QImage modIcon) |
QIcon | moduleIcon () const |
void | extractFromPlugin (QObject *plugin) |
Extracts some meta data with help of QObject::property(). More... | |
QListWidgetItem * | clone () const |
bool | operator== (const EModuleListWidgetItem &item) const |
bool | operator!= (const EModuleListWidgetItem &item) const |
Private Member Functions | |
void | init () |
Private Attributes | |
QFileInfo | myFile |
QString | myErrorMessage |
QString | myDescription |
QImage | myModuleIcon |
QObject * | myPlugin |
bool | myStatus |
A QListWidgetItem to handle information about a plugin.
The extended QListWidgetItem is used to handle information about a plugin. It contains the information:
But be aware, that the name, description and icon is extraced via extractFromPlugin(), which uses the QObject::property() to get this values.
EModuleListWidgetItem::EModuleListWidgetItem | ( | QObject * | plugin, |
QListWidget * | parent = 0 , |
||
int | type = Type |
||
) |
EModuleListWidgetItem::EModuleListWidgetItem | ( | QListWidget * | parent = 0 , |
int | type = Type |
||
) |
EModuleListWidgetItem::EModuleListWidgetItem | ( | QString | text, |
QListWidget * | parent = 0 , |
||
int | type = Type |
||
) |
EModuleListWidgetItem::EModuleListWidgetItem | ( | QIcon | icon, |
QString | text, | ||
QListWidget * | parent = 0 , |
||
int | type = Type |
||
) |
QListWidgetItem * EModuleListWidgetItem::clone | ( | ) | const |
QString EModuleListWidgetItem::description | ( | ) | const |
QString EModuleListWidgetItem::errorMessage | ( | ) | const |
void EModuleListWidgetItem::extractFromPlugin | ( | QObject * | plugin | ) |
Extracts some meta data with help of QObject::property().
It tries to get some information about the given plugin
with help of the QObject::property() functioninalities. Therefore your plugin should register the following properties:
QString EModuleListWidgetItem::file | ( | ) | const |
|
private |
QIcon EModuleListWidgetItem::moduleIcon | ( | ) | const |
QString EModuleListWidgetItem::name | ( | ) | const |
bool EModuleListWidgetItem::operator!= | ( | const EModuleListWidgetItem & | item | ) | const |
bool EModuleListWidgetItem::operator== | ( | const EModuleListWidgetItem & | item | ) | const |
QObject * EModuleListWidgetItem::plugin | ( | ) | const |
void EModuleListWidgetItem::setDescription | ( | QString | description | ) |
void EModuleListWidgetItem::setErrorMessage | ( | QString | message | ) |
void EModuleListWidgetItem::setFile | ( | QString | file | ) |
void EModuleListWidgetItem::setModuleIcon | ( | QImage | modIcon | ) |
void EModuleListWidgetItem::setName | ( | QString | name | ) |
void EModuleListWidgetItem::setPlugin | ( | QObject * | plugin | ) |
void EModuleListWidgetItem::setStatus | ( | bool | status | ) |
bool EModuleListWidgetItem::status | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |