class KDCOPPropertyProxy

# class KDCOPPropertyProxy | The KDCOPPropertyProxy class provides an easy way to publish Qt properties of a QObject through DCOP. More...
Definition | `#include <kdcoppropertyproxy.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KDCOPPropertyProxy ( QObject *object )
- ~KDCOPPropertyProxy ()
- bool isPropertyRequest ( const QCString &fun )
- bool processPropertyRequest ( const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData )
- QValueList<QCString> functions ()

#### Public Static Methods

- static QValueList<QCString> functions ( QObject *object )
- static bool isPropertyRequest ( const QCString &fun, QObject *object )
- static bool processPropertyRequest ( const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData, QObject *object )

## 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.

KDCOPPropertyProxy ( QObject *object ) | ### KDCOPPropertyProxy

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.

~KDCOPPropertyProxy () | ### ~KDCOPPropertyProxy

Destructor.

bool isPropertyRequest ( const QCString &fun ) | ### isPropertyRequest

Convenience method, when using this class as object. See documentation of the constructor and static isPropertyRequest method.

bool processPropertyRequest ( const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData ) | ### processPropertyRequest

Convenience method, when using this class as object. See documentation of the constructor and static processPropertyRequest method.

QValueList<QCString> functions () | ### functions

Convenience method, when using this class as object. See documentation of the constructor and static functions method.

QValueList<QCString> functions ( QObject *object ) | ### functions

[static]

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.

See also: DCOPObject::functions()

bool isPropertyRequest ( const QCString &fun, QObject *object ) | ### isPropertyRequest

[static]

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.

bool processPropertyRequest ( const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData, QObject *object ) | ### processPropertyRequest

[static]

Processes the given DCOP method request by translating the request into a setProperty/property call on the given QObject argument.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:15 2003, using kdoc 2.0a54.