KTutorial
0.5.1
|
Adaptor to expose an ObjectRegister through DBus. More...
#include <ClassRegisterAdaptor.h>
Public Slots | |
QString | superClass (const QString &className) const |
Returns super class name of the class with the given name. | |
QStringList | propertyList (const QString &className) const |
Returns the properties of the class with the given name. | |
QStringList | signalList (const QString &className) const |
Returns the signals of the class with the given name. | |
Public Member Functions | |
ClassRegisterAdaptor (ObjectRegister *objectRegister) | |
Creates a new ClassRegisterAdaptor for the given ObjectRegister. |
Adaptor to expose an ObjectRegister through DBus.
It provides methods to get information about the registered QMetaObjects.
Definition at line 41 of file ClassRegisterAdaptor.h.
ktutorial::editorsupport::ClassRegisterAdaptor::ClassRegisterAdaptor | ( | ObjectRegister * | objectRegister | ) | [explicit] |
Creates a new ClassRegisterAdaptor for the given ObjectRegister.
objectRegister | The ObjectRegister to adapt. |
Definition at line 31 of file ClassRegisterAdaptor.cpp.
QStringList ktutorial::editorsupport::ClassRegisterAdaptor::propertyList | ( | const QString & | className | ) | const [slot] |
Returns the properties of the class with the given name.
If the class is not registered, an empty list is returned.
Only the properties defined in the given class are included in the list. Properties from parent classes must be got using the parent class name.
className | The name of the class. |
Definition at line 52 of file ClassRegisterAdaptor.cpp.
References ktutorial::editorsupport::ObjectRegister::metaObjectForClassName().
QStringList ktutorial::editorsupport::ClassRegisterAdaptor::signalList | ( | const QString & | className | ) | const [slot] |
Returns the signals of the class with the given name.
If the class is not registered, an empty list is returned.
Only the signals defined in the given class are included in the list. Signals from parent classes must be got using the parent class name.
className | The name of the class. |
Definition at line 70 of file ClassRegisterAdaptor.cpp.
References ktutorial::editorsupport::ObjectRegister::metaObjectForClassName().
QString ktutorial::editorsupport::ClassRegisterAdaptor::superClass | ( | const QString & | className | ) | const [slot] |
Returns super class name of the class with the given name.
If the class name is not registered, or it has no super class, an empty string is returned.
className | The name of the class. |
Definition at line 38 of file ClassRegisterAdaptor.cpp.
References ktutorial::editorsupport::ObjectRegister::metaObjectForClassName().