|
KTutorial
0.5.1
|
Adaptor to expose an ObjectRegister through DBus. More...
#include <ObjectRegisterAdaptor.h>
Public Slots | |
| QString | objectName (int objectId) const |
| Returns the name of the object with the given id. | |
| QString | className (int objectId) const |
| Returns the class name of the object with the given id. | |
| QList< int > | childObjectIds (int objectId) const |
| Returns a list with the ids of the child objects of the object with the given id. | |
| void | clear () |
| Removes all the entries in the ObjectRegister. | |
Public Member Functions | |
| ObjectRegisterAdaptor (ObjectRegister *objectRegister) | |
| Creates a new ObjectRegisterAdaptor for the given ObjectRegister. | |
Adaptor to expose an ObjectRegister through DBus.
It provides methods to get information about the registered QObjects.
Definition at line 39 of file ObjectRegisterAdaptor.h.
| ktutorial::editorsupport::ObjectRegisterAdaptor::ObjectRegisterAdaptor | ( | ObjectRegister * | objectRegister | ) | [explicit] |
Creates a new ObjectRegisterAdaptor for the given ObjectRegister.
| objectRegister | The ObjectRegister to adapt. |
Definition at line 28 of file ObjectRegisterAdaptor.cpp.
| QList< int > ktutorial::editorsupport::ObjectRegisterAdaptor::childObjectIds | ( | int | objectId | ) | const [slot] |
Returns a list with the ids of the child objects of the object with the given id.
If the id is not registered, an empty list is returned.
| objectId | The id of the object. |
Definition at line 63 of file ObjectRegisterAdaptor.cpp.
References ktutorial::editorsupport::ObjectRegister::idForObject(), and ktutorial::editorsupport::ObjectRegister::objectForId().
| QString ktutorial::editorsupport::ObjectRegisterAdaptor::className | ( | int | objectId | ) | const [slot] |
Returns the class name of the object with the given id.
If the id is not registered, an empty string is returned.
| objectId | The id of the object. |
Definition at line 44 of file ObjectRegisterAdaptor.cpp.
References ktutorial::editorsupport::ObjectRegister::objectForId(), and ktutorial::editorsupport::ObjectRegister::registerMetaObject().
| QString ktutorial::editorsupport::ObjectRegisterAdaptor::objectName | ( | int | objectId | ) | const [slot] |
Returns the name of the object with the given id.
If the id is not registered, an empty string is returned.
| objectId | The id of the object. |
Definition at line 35 of file ObjectRegisterAdaptor.cpp.
References ktutorial::editorsupport::ObjectRegister::objectForId().
1.8.0