org.kde.koala

Class KDCOPActionProxy

public class KDCOPActionProxy extends DCOPObjectProxy

The KDCOPActionProxy class provides an easy way to publish a collection of KAction objects through DCOP. For the DCOP client the exported actions behave like full-fledged DCOP objects, providing full access to the KAction object functionality in the server. This class can generate DCOP object ids for given action objects, which it automatically processes, as being a DCOPObjectProxy .

UNKNOWN: A proxy class publishing a DCOP interface for actions.

Constructor Summary
protected KDCOPActionProxy(Class dummy)
KDCOPActionProxy(KActionCollection actionCollection, DCOPObjectInterface parent)
Constructs a dcop action proxy, being able to export the actions of the provided KActionCollection through DCOP, using the parent DCOPObject's object id to generate unique object ids for the actions.
KDCOPActionProxy(DCOPObjectInterface parent)
Use this constructor if do not want to provide the exportable actions through a KActionCollection .
Method Summary
KActionaction(String name)
Returns an action object with the given name.
StringactionObjectId(String name)
Use this method to retrieve a DCOP object id for an action with the given name.
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)
Internal reimplementation of DCOPObjectProxy.process .
booleanprocessAction(String arg1, String fun, byte[] data, StringBuffer replyType, byte[] replyData, KAction action)
Called by the #process method and takes care of processing the object request for an action object.

Constructor Detail

KDCOPActionProxy

protected KDCOPActionProxy(Class dummy)

KDCOPActionProxy

public KDCOPActionProxy(KActionCollection actionCollection, DCOPObjectInterface parent)
Constructs a dcop action proxy, being able to export the actions of the provided KActionCollection through DCOP, using the parent DCOPObject's object id to generate unique object ids for the actions.

UNKNOWN: Constructs a dcop action proxy, being able to export the actions of the provided KActionCollection through DCOP, using the parent DCOPObject's object id to generate unique object ids for the actions.

KDCOPActionProxy

public KDCOPActionProxy(DCOPObjectInterface parent)
Use this constructor if do not want to provide the exportable actions through a KActionCollection . You have to reimplement the actions() and action() methods if you use this constructor.

UNKNOWN: Use this constructor if do not want to provide the exportable actions through a KActionCollection .

Method Detail

action

public KAction action(String name)
Returns an action object with the given name. The default implementation queries the action object from the KActionCollection, if the first constructor has been used.

UNKNOWN: Returns an action object with the given name.

actionObjectId

public String actionObjectId(String name)
Use this method to retrieve a DCOP object id for an action with the given name. This class automatically takes care of processing DCOP object requests for the returned object id. You can construct a global DCOP object referenence using DCOPRef. For example like DCOPRef( kapp.dcopClient().appId, actionProxy.actionObjectId( actionName ) ); The action with the given name has to be available through the #action method.

UNKNOWN: Use this method to retrieve a DCOP object id for an action with the given name.

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)
Internal reimplementation of DCOPObjectProxy.process .

UNKNOWN: Internal reimplementation of DCOPObjectProxy.process .

processAction

public boolean processAction(String arg1, String fun, byte[] data, StringBuffer replyType, byte[] replyData, KAction action)
Called by the #process method and takes care of processing the object request for an action object.

UNKNOWN: Called by the #process method and takes care of processing the object request for an action object.