KDCOPPropertyProxy Class Reference
The KDCOPPropertyProxy class provides an easy way to publish Qt properties of a QObject through DCOP. More...
#include <kdcoppropertyproxy.h>
Public Methods | |
KDCOPPropertyProxy (QObject *object) | |
Convenience constructor. | |
~KDCOPPropertyProxy () | |
Destructor. | |
bool | isPropertyRequest (const QCString &fun) |
Convenience method, when using this class as object. | |
bool | processPropertyRequest (const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData) |
Convenience method, when using this class as object. | |
QValueList< QCString > | functions () |
Convenience method, when using this class as object. | |
Static Public Methods | |
QValueList< QCString > | functions (QObject *object) |
Returns a semicolon-separated list of functions understood by the PropertyProxy for the given QObject argument. | |
bool | isPropertyRequest (const QCString &fun, QObject *object) |
Returns true if the method request in the fun argument matches the signature of the three standard property methods or set/get methods for the properties of the object argument. | |
bool | processPropertyRequest (const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData, QObject *object) |
Processes the given DCOP method request by translating the request into a setProperty/property call on the given QObject argument. |
Detailed Description
The KDCOPPropertyProxy class provides an easy way to publish Qt properties of a QObject through DCOP.The class provides DCOP equivalents for the Qt property methods setProperty() , property() and propertyNames() and also provides automatic set/get methods for the properties of a QObject. That means for example if your object provides a QString property called foo , then KDCOPPropertyProxy translates DCOP calls "setFoo( QString )" and "QString foo()" automatically into the corresponding setProperty/property calls.
Definition at line 38 of file kdcoppropertyproxy.h.
Constructor & Destructor Documentation
|
Convenience constructor. Use it if you want to use this class as object, in contrary to using the static methods of this class and providing a QObject argument for each call. Definition at line 55 of file kdcoppropertyproxy.cpp. |
|
Destructor.
Definition at line 61 of file kdcoppropertyproxy.cpp. |
Member Function Documentation
|
Convenience method, when using this class as object. See documentation of the constructor and static isPropertyRequest method. Definition at line 66 of file kdcoppropertyproxy.cpp. |
|
Convenience method, when using this class as object. See documentation of the constructor and static processPropertyRequest method. Definition at line 71 of file kdcoppropertyproxy.cpp. |
|
Convenience method, when using this class as object. See documentation of the constructor and static functions method. Definition at line 77 of file kdcoppropertyproxy.cpp. |
|
Returns a semicolon-separated list of functions understood by the PropertyProxy for the given QObject argument. Returns "property(QCString);setProperty(QCString,QVariant);propertyNames();" plus set/get methods for the properties of the given object argument.
Definition at line 94 of file kdcoppropertyproxy.cpp. References QCString::append(), QMetaObject::findProperty(), QObject::metaObject(), QCString::prepend(), QMetaObject::property(), QMetaObject::propertyNames(), QMetaProperty::type(), and QMetaProperty::writable(). |
|
Returns true if the method request in the fun argument matches the signature of the three standard property methods or set/get methods for the properties of the object argument. Use this method in your own DCOPObject dispatcher to check if the DCOP request is a property request which can be handled by this class. Definition at line 82 of file kdcoppropertyproxy.cpp. |
|
Processes the given DCOP method request by translating the request into a setProperty/property call on the given QObject argument.
Definition at line 128 of file kdcoppropertyproxy.cpp. References QValueList::append(), QObject::metaObject(), QVariant::nameToType(), QObject::property(), QObject::setProperty(), QVariant::toBool(), QVariant::toIconSet(), QVariant::type(), and QVariant::typeName(). |
The documentation for this class was generated from the following files: