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

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

#include <ClassRegisterAdaptor.h>

List of all members.

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.

Detailed Description

Adaptor to expose an ObjectRegister through DBus.

It provides methods to get information about the registered QMetaObjects.

See also:
EditorSupport

Definition at line 41 of file ClassRegisterAdaptor.h.


Constructor & Destructor Documentation

Creates a new ClassRegisterAdaptor for the given ObjectRegister.

Parameters:
objectRegisterThe ObjectRegister to adapt.

Definition at line 31 of file ClassRegisterAdaptor.cpp.


Member Function Documentation

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.

Parameters:
classNameThe name of the class.
Returns:
The list of properties.

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.

Parameters:
classNameThe name of the class.
Returns:
The list of signals.

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.

Parameters:
classNameThe name of the class.
Returns:
The name of the super class.

Definition at line 38 of file ClassRegisterAdaptor.cpp.

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


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