org.kde.koala

Class KDCOPPropertyProxy

public class KDCOPPropertyProxy extends Object implements QtSupport

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 String property called foo , then KDCOPPropertyProxy translates DCOP calls "setFoo( String )" and "String foo()" automatically into the corresponding setProperty/property calls.

UNKNOWN: The KDCOPPropertyProxy class provides an easy way to publish Qt properties of a QObject through DCOP.

Constructor Summary
protected KDCOPPropertyProxy(Class dummy)
KDCOPPropertyProxy(QObject object)
Convenience constructor.
Method Summary
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisPropertyRequest(String fun)
Convenience method, when using this class as object.
static booleanisPropertyRequest(String 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.
booleanprocessPropertyRequest(String fun, byte[] data, StringBuffer replyType, byte[] replyData)
Convenience method, when using this class as object.
static booleanprocessPropertyRequest(String fun, byte[] data, StringBuffer replyType, byte[] replyData, QObject object)
Processes the given DCOP method request by translating the request into a setProperty/property call on the given QObject argument.

Constructor Detail

KDCOPPropertyProxy

protected KDCOPPropertyProxy(Class dummy)

KDCOPPropertyProxy

public KDCOPPropertyProxy(QObject object)
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.

UNKNOWN: Convenience constructor.

Method Detail

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isPropertyRequest

public boolean isPropertyRequest(String fun)
Convenience method, when using this class as object. See documentation of the constructor and static isPropertyRequest method.

UNKNOWN: Convenience method, when using this class as object.

isPropertyRequest

public static boolean isPropertyRequest(String 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. 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.

UNKNOWN: 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.

processPropertyRequest

public boolean processPropertyRequest(String fun, byte[] data, StringBuffer replyType, byte[] replyData)
Convenience method, when using this class as object. See documentation of the constructor and static processPropertyRequest method.

UNKNOWN: Convenience method, when using this class as object.

processPropertyRequest

public static boolean processPropertyRequest(String fun, byte[] data, StringBuffer replyType, byte[] replyData, QObject object)
Processes the given DCOP method request by translating the request into a setProperty/property call on the given QObject argument.

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