Go to the source code of this file.
#define MP_CREATE_DESCRIPTOR |
( |
|
_interfaceclass | ) |
new _interfaceclass##Descriptor() |
#define MP_DECLARE_DESCRIPTOR |
( |
|
_interfaceclass | ) |
|
Value:
{ \
public: \
_interfaceclass##Descriptor(); \
virtual ~_interfaceclass##Descriptor(); \
\
protected: \
_interfaceclass * m_pInstance; \
QString m_szName; \
QString m_szDescription; \
\
public: \
virtual
const QString &
name(); \
};
Definition: MpInterface.h:188
virtual MpInterface * instance()=0
Definition: MpInterface.h:31
virtual const QString & description()=0
virtual const QString & name()=0
#define MP_IMPLEMENT_DESCRIPTOR |
( |
|
_interfaceclass, |
|
|
|
_name, |
|
|
|
_description |
|
) |
| |
Value:_interfaceclass##Descriptor::_interfaceclass##Descriptor() \
{ \
m_pInstance = 0; \
m_szName = _name; \
m_szDescription = _description; \
} \
_interfaceclass##Descriptor::~_interfaceclass##Descriptor() \
delete m_pInstance; \
} \
{ \
return m_szName; \
} \
const QString & _interfaceclass##Descriptor::description() \
{ \
return m_szDescription; \
} \
MpInterface * _interfaceclass##Descriptor::instance() \
m_pInstance = new _interfaceclass(); \
return m_pInstance; \
}
Definition: MpInterface.h:188
if(m_pFile) delete m_pFile
QString name()
Definition: KviRuntimeInfo.cpp:655