LibEngsas
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EModuleListWidgetItem Class Reference

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().
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

Detailed Description

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.

Constructor & Destructor Documentation

EModuleListWidgetItem::EModuleListWidgetItem ( QObject *  plugin,
QListWidget *  parent = 0,
int  type = Type 
)

+ Here is the call graph for this function:

EModuleListWidgetItem::EModuleListWidgetItem ( QListWidget *  parent = 0,
int  type = Type 
)

+ Here is the call graph for this function:

EModuleListWidgetItem::EModuleListWidgetItem ( QString  text,
QListWidget *  parent = 0,
int  type = Type 
)

+ Here is the call graph for this function:

EModuleListWidgetItem::EModuleListWidgetItem ( QIcon  icon,
QString  text,
QListWidget *  parent = 0,
int  type = Type 
)

+ Here is the call graph for this function:

Member Function Documentation

QListWidgetItem * EModuleListWidgetItem::clone ( ) const

+ Here is the caller graph for this function:

QString EModuleListWidgetItem::description ( ) const

+ Here is the caller graph for this function:

QString EModuleListWidgetItem::errorMessage ( ) const

+ Here is the caller graph for this function:

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:

  • name
  • description
  • icon
See Also
EPart

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString EModuleListWidgetItem::file ( ) const

+ Here is the caller graph for this function:

void EModuleListWidgetItem::init ( )
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QIcon EModuleListWidgetItem::moduleIcon ( ) const

+ Here is the caller graph for this function:

QString EModuleListWidgetItem::name ( ) const

+ Here is the caller graph for this function:

bool EModuleListWidgetItem::operator!= ( const EModuleListWidgetItem item) const

+ Here is the call graph for this function:

bool EModuleListWidgetItem::operator== ( const EModuleListWidgetItem item) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QObject * EModuleListWidgetItem::plugin ( ) const

+ Here is the caller graph for this function:

void EModuleListWidgetItem::setDescription ( QString  description)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EModuleListWidgetItem::setErrorMessage ( QString  message)

+ Here is the caller graph for this function:

void EModuleListWidgetItem::setFile ( QString  file)

+ Here is the caller graph for this function:

void EModuleListWidgetItem::setModuleIcon ( QImage  modIcon)

+ Here is the caller graph for this function:

void EModuleListWidgetItem::setName ( QString  name)

+ Here is the caller graph for this function:

void EModuleListWidgetItem::setPlugin ( QObject *  plugin)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EModuleListWidgetItem::setStatus ( bool  status)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool EModuleListWidgetItem::status ( ) const

+ Here is the caller graph for this function:

Member Data Documentation

QString EModuleListWidgetItem::myDescription
private
QString EModuleListWidgetItem::myErrorMessage
private
QFileInfo EModuleListWidgetItem::myFile
private
QImage EModuleListWidgetItem::myModuleIcon
private
QObject* EModuleListWidgetItem::myPlugin
private
bool EModuleListWidgetItem::myStatus
private

The documentation for this class was generated from the following files: