summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KDCOPActionProxy.java
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit90825e2392b2d70e43c7a25b8a3752299a933894 (patch)
treee33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/org/kde/koala/KDCOPActionProxy.java
downloadtdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz
tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/org/kde/koala/KDCOPActionProxy.java')
-rw-r--r--kdejava/koala/org/kde/koala/KDCOPActionProxy.java83
1 files changed, 83 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KDCOPActionProxy.java b/kdejava/koala/org/kde/koala/KDCOPActionProxy.java
new file mode 100644
index 00000000..1dfd1129
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KDCOPActionProxy.java
@@ -0,0 +1,83 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QtSupport;
+
+/**
+
+ 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 .
+ @short A proxy class publishing a DCOP interface for actions.
+
+*/
+public class KDCOPActionProxy extends DCOPObjectProxy {
+ protected KDCOPActionProxy(Class dummy){super((Class) null);}
+ /**
+ 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.
+ @short 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.
+ */
+ public KDCOPActionProxy(KActionCollection actionCollection, DCOPObjectInterface parent) {
+ super((Class) null);
+ newKDCOPActionProxy(actionCollection,parent);
+ }
+ private native void newKDCOPActionProxy(KActionCollection actionCollection, 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.
+ @short Use this constructor if do not want to provide the exportable actions through a KActionCollection .
+ */
+ public KDCOPActionProxy(DCOPObjectInterface parent) {
+ super((Class) null);
+ newKDCOPActionProxy(parent);
+ }
+ private native void newKDCOPActionProxy(DCOPObjectInterface parent);
+ /**
+ 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.
+ @short Returns an action object with the given name.
+ */
+ public native KAction action(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.
+ @short Use this method to retrieve a DCOP object id for an action with the given name.
+ */
+ public native String actionObjectId(String name);
+ /**
+ Returns a map of all exported actions, with the action name as keys and a global DCOP reference
+ as data entries.
+ The appId argument is used to specify the appid component of the DCOP reference. By default the
+ global application id is used ( kapp.dcopClient().appId() ) .
+ @short Returns a map of all exported actions, with the action name as keys and a global DCOP reference as data entries.
+ */
+ // QMap<QCString, DCOPRef> actionMap(const QCString& arg1); >>>> NOT CONVERTED
+ // QMap<QCString, DCOPRef> actionMap(); >>>> NOT CONVERTED
+ /**
+ Internal reimplementation of DCOPObjectProxy.process .
+ @short Internal reimplementation of DCOPObjectProxy.process .
+ */
+ public native boolean process(String arg1, String fun, byte[] data, StringBuffer replyType, byte[] replyData);
+ /**
+ Called by the #process method and takes care of processing the object request for an
+ action object.
+ @short Called by the #process method and takes care of processing the object request for an action object.
+ */
+ public native boolean processAction(String arg1, String fun, byte[] data, StringBuffer replyType, byte[] replyData, KAction action);
+ /** Deletes the wrapped C++ instance */
+ protected native void finalize() throws InternalError;
+ /** Delete the wrapped C++ instance ahead of finalize() */
+ public native void dispose();
+ /** Has the wrapped C++ instance been deleted? */
+ public native boolean isDisposed();
+}