KTutorial  0.5.1
Public Slots | Public Member Functions
ktutorial::editorsupport::ObjectRegisterAdaptor Class Reference

Adaptor to expose an ObjectRegister through DBus. More...

#include <ObjectRegisterAdaptor.h>

List of all members.

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.

Detailed Description

Adaptor to expose an ObjectRegister through DBus.

It provides methods to get information about the registered QObjects.

See also:
EditorSupport

Definition at line 39 of file ObjectRegisterAdaptor.h.


Constructor & Destructor Documentation

Creates a new ObjectRegisterAdaptor for the given ObjectRegister.

Parameters:
objectRegisterThe ObjectRegister to adapt.

Definition at line 28 of file ObjectRegisterAdaptor.cpp.


Member Function Documentation

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.

Parameters:
objectIdThe id of the object.
Returns:
The ids of the child objects.

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.

Parameters:
objectIdThe id of the object.
Returns:
The class name 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.

Parameters:
objectIdThe id of the object.
Returns:
The name of the object.

Definition at line 35 of file ObjectRegisterAdaptor.cpp.

References ktutorial::editorsupport::ObjectRegister::objectForId().


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