|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.DCOPObjectProxy
org.kde.koala.KDCOPActionProxy
public class KDCOPActionProxy
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 .
Constructor Summary | |
---|---|
protected |
KDCOPActionProxy(java.lang.Class dummy)
|
|
KDCOPActionProxy(DCOPObjectInterface parent)
Use this constructor if do not want to provide the exportable actions through a KActionCollection . |
|
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. |
Method Summary | |
---|---|
KAction |
action(java.lang.String name)
Returns an action object with the given name. |
java.lang.String |
actionObjectId(java.lang.String name)
Use this method to retrieve a DCOP object id for an action with the given name. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
boolean |
process(java.lang.String arg1,
java.lang.String fun,
byte[] data,
java.lang.StringBuffer replyType,
byte[] replyData)
Internal reimplementation of DCOPObjectProxy.process . |
boolean |
processAction(java.lang.String arg1,
java.lang.String fun,
byte[] data,
java.lang.StringBuffer replyType,
byte[] replyData,
KAction action)
Called by the #process method and takes care of processing the object request for an action object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KDCOPActionProxy(java.lang.Class dummy)
public KDCOPActionProxy(KActionCollection actionCollection, DCOPObjectInterface parent)
public KDCOPActionProxy(DCOPObjectInterface parent)
Method Detail |
---|
public KAction action(java.lang.String name)
public java.lang.String actionObjectId(java.lang.String name)
public boolean process(java.lang.String arg1, java.lang.String fun, byte[] data, java.lang.StringBuffer replyType, byte[] replyData)
process
in class DCOPObjectProxy
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 datareplyType
- write the reply type in this stringreplyData
- write the reply data in this array
public boolean processAction(java.lang.String arg1, java.lang.String fun, byte[] data, java.lang.StringBuffer replyType, byte[] replyData, KAction action)
protected void finalize() throws java.lang.InternalError
finalize
in class DCOPObjectProxy
java.lang.InternalError
public void dispose()
dispose
in class DCOPObjectProxy
public boolean isDisposed()
isDisposed
in class DCOPObjectProxy
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |