org.kde.koala

Class DCOPObjectProxy

public class DCOPObjectProxy extends Object implements QtSupport

You must use a proxy if you want to dispatch method calls for object IDs which don't have (yet) a corresponding DCOPObject. This is somewhat like object references in CORBA.

Author: Matthias Ettrich

See Also: DCOPObject DCOPClient

UNKNOWN: You must use a proxy if you want to dispatch method calls for object IDs which don't have (yet) a corresponding DCOPObject.

Constructor Summary
protected DCOPObjectProxy(Class dummy)
DCOPObjectProxy()
Creates a new proxy.
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?
booleanprocess(String arg1, String fun, byte[] data, StringBuffer replyType, byte[] replyData)
Reimplement this method to dispatch method calls.

Constructor Detail

DCOPObjectProxy

protected DCOPObjectProxy(Class dummy)

DCOPObjectProxy

public DCOPObjectProxy()
Creates a new proxy.

UNKNOWN: Creates a new proxy.

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?

process

public boolean process(String arg1, String fun, byte[] data, StringBuffer replyType, byte[] replyData)
Reimplement this method to dispatch method calls. This method is called of all proxies if the DCOPClient knows no object with the id obj. If the first proxy returns true, the DCOPClient will no longer call other proxies. The object id obj may be empty for app-wide function calls no associated with any object.

Parameters: obj the id of the object fun is the normalized function signature. Such a signature usually looks like foobar(String,int). The return type, qualifiers like "const" etc. are not part of the signature. data the received data replyType write the reply type in this string replyData write the reply data in this array

Returns: true if successful, false otherwise. The default implementation returns always false.

UNKNOWN: Reimplement this method to dispatch method calls.