summaryrefslogtreecommitdiffstats
path: root/python/pykde/sip/dcop
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 /python/pykde/sip/dcop
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 'python/pykde/sip/dcop')
-rw-r--r--python/pykde/sip/dcop/dcopclient.sip175
-rw-r--r--python/pykde/sip/dcop/dcopmod.sip42
-rw-r--r--python/pykde/sip/dcop/dcopmod.sip.in43
-rw-r--r--python/pykde/sip/dcop/dcopobject.sip82
-rw-r--r--python/pykde/sip/dcop/dcopref.sip109
-rw-r--r--python/pykde/sip/dcop/dcopstub.sip68
-rw-r--r--python/pykde/sip/dcop/typedefs.sip108
7 files changed, 627 insertions, 0 deletions
diff --git a/python/pykde/sip/dcop/dcopclient.sip b/python/pykde/sip/dcop/dcopclient.sip
new file mode 100644
index 00000000..bc849687
--- /dev/null
+++ b/python/pykde/sip/dcop/dcopclient.sip
@@ -0,0 +1,175 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module dcop version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+class DCOPClientTransaction;
+
+class DCOPClient : QObject
+{
+%TypeHeaderCode
+#include <dcopclient.h>
+%End
+
+
+public:
+ DCOPClient ();
+ static void setServerAddress (const QCString&);
+ bool attach ();
+ void bindToApp ();
+ bool detach ();
+ bool isAttached () const;
+ bool isAttachedToForeignServer () const;
+ bool acceptCalls () const;
+ void setAcceptCalls (bool);
+
+%If ( KDE_3_0_3 - )
+ bool qtBridgeEnabled ();
+ void setQtBridgeEnabled (bool);
+%End
+
+ QCString registerAs (const QCString&, bool = 1);
+ bool isRegistered () const;
+ QCString appId () const;
+ int socket () const;
+ void suspend ();
+ void resume ();
+
+%If ( KDE_3_1_0 - )
+ bool isSuspended () const;
+%End
+
+ bool send (const QCString&, const QCString&, const QCString&, const QByteArray&);
+ bool send (const QCString&, const QCString&, const QCString&, const QString&);
+
+%If ( KDE_3_2_0 - )
+ bool call (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/, bool, int);
+%End
+
+ bool call (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/, bool = 0);
+
+%If ( KDE_3_3_0 - )
+ int callAsync (const QCString&, const QCString&, const QCString&, const QByteArray&, QObject*, const char*);
+%End
+
+
+%If ( KDE_3_2_0 - )
+ bool findObject (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QCString& /Out/, bool, int);
+%End
+
+ bool findObject (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QCString& /Out/, bool = 0);
+ void emitDCOPSignal (const QCString&, const QCString&, const QByteArray&);
+ void emitDCOPSignal (const QCString&, const QByteArray&);
+ bool connectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, const QCString&, bool);
+ bool connectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, bool);
+ bool disconnectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, const QCString&);
+ bool disconnectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&);
+ virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&);
+ DCOPClientTransaction* beginTransaction ();
+ void endTransaction (DCOPClientTransaction*, QCString&, QByteArray&);
+ Q_INT32 transactionId ();
+ bool isApplicationRegistered (const QCString&);
+ QCStringList registeredApplications ();
+ QCStringList remoteObjects (const QCString&, bool* = 0);
+ QCStringList remoteInterfaces (const QCString&, const QCString&, bool* = 0);
+ QCStringList remoteFunctions (const QCString&, const QCString&, bool* = 0);
+ bool receive (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/);
+ bool find (const QCString&, const QCString&, const QCString&, const QByteArray&, QCString& /Out/, QByteArray& /Out/);
+ static QCString normalizeFunctionSignature (const QCString&);
+ QCString senderId () const;
+ void setDefaultObject (const QCString&);
+ QCString defaultObject () const;
+ void setNotifications (bool);
+ void setDaemonMode (bool);
+
+%If ( KDE_3_2_0 - )
+ void setPriorityCall (bool);
+%End
+
+ static DCOPClient* mainClient ();
+ static void setMainClient (DCOPClient*);
+
+%If ( KDE_3_2_0 - )
+ static DCOPClient* findLocalClient (const QCString&);
+%End
+
+ static void emergencyClose ();
+ static const char* postMortemSender ();
+ static const char* postMortemObject ();
+ static const char* postMortemFunction ();
+ static QCString dcopServerFile (const QCString& = 0);
+ static QCString dcopServerFileOld (const QCString& = 0);
+
+%If ( KDE_3_2_0 - )
+ static QCString iceauthPath ();
+%End
+
+
+signals:
+ void applicationRegistered (const QCString&);
+ void applicationRemoved (const QCString&);
+ void attachFailed (const QString&);
+ void blockUserInput (bool);
+
+%If ( KDE_3_2_0 - )
+ void callBack (int, const QCString&, const QByteArray&);
+%End
+
+
+protected slots:
+ void processSocketData (int);
+
+public:
+
+%If ( KDE_3_2_3 - )
+//ig void handleAsyncReply (DCOPClient::ReplyStruct*);
+%End
+
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+public:
+
+%If ( KDE_3_2_0 - KDE_3_3_0 )
+ int callAsync (const QCString&, const QCString&, const QCString&, const QByteArray&, SIP_RXOBJ_CON, SIP_SLOT_CON (int, const QCString&, const QByteArray&));
+
+//force
+%ConvertToSubClassCode
+ // The table of Python class objects indexed by their names. The table
+ // must be sorted by name.
+
+ static sipStringTypeClassMap map[] = {
+ {sipName_DCOPClient, &sipClass_DCOPClient},
+ };
+
+ sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0]));
+%End
+//end
+%End
+
+
+}; // class DCOPClient
+
+typedef QValueList<QCString> QCStringList;
diff --git a/python/pykde/sip/dcop/dcopmod.sip b/python/pykde/sip/dcop/dcopmod.sip
new file mode 100644
index 00000000..46a065b3
--- /dev/null
+++ b/python/pykde/sip/dcop/dcopmod.sip
@@ -0,0 +1,42 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module dcop version KDE_3_5_2
+
+%Copying
+
+ This software is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this library; see the file COPYING.
+ If not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+%End
+
+%Module dcop
+
+%Timeline { KDE_3_0_0 KDE_3_0_1 KDE_3_0_3 KDE_3_1_0 KDE_3_1_1 KDE_3_1_2 KDE_3_1_3 KDE_3_1_4 KDE_3_1_5 KDE_3_2_0 KDE_3_2_1 KDE_3_2_2 KDE_3_2_3 KDE_3_3_0 KDE_3_3_1 KDE_3_3_2 KDE_3_4_0 KDE_3_4_1 KDE_3_4_2 KDE_3_4_3 KDE_3_5_0 KDE_3_5_1 KDE_3_5_2 KDE_3_5_3 }
+
+%Platforms { D_MANDRAKE ALL }
+
+%Import qt/qtmod.sip
+
+%Include dcopclient.sip
+%Include dcopobject.sip
+%Include dcopref.sip
+%Include dcopstub.sip
+%Include typedefs.sip
+
diff --git a/python/pykde/sip/dcop/dcopmod.sip.in b/python/pykde/sip/dcop/dcopmod.sip.in
new file mode 100644
index 00000000..f13297be
--- /dev/null
+++ b/python/pykde/sip/dcop/dcopmod.sip.in
@@ -0,0 +1,43 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module dcop version KDE_3_5_2
+
+%Copying
+
+ This software is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this library; see the file COPYING.
+ If not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+%End
+
+%Module dcop
+
+%Timeline { KDE_3_0_0 KDE_3_0_1 KDE_3_0_3 KDE_3_1_0 KDE_3_1_1 KDE_3_1_2 KDE_3_1_3 KDE_3_1_4 KDE_3_1_5 KDE_3_2_0 KDE_3_2_1 KDE_3_2_2 KDE_3_2_3 KDE_3_3_0 KDE_3_3_1 KDE_3_3_2 KDE_3_4_0 KDE_3_4_1 KDE_3_4_2 KDE_3_4_3 KDE_3_5_0 KDE_3_5_1 KDE_3_5_2 KDE_3_5_3 }
+
+%Platforms { D_MANDRAKE ALL }
+
+%Import qt/qtmod.sip
+
+%Include dcopclient.sip
+%Include dcopobject.sip
+%Include dcopref.sip
+%Include dcopstub.sip
+%Include typedefs.sip
+@mark@
+
diff --git a/python/pykde/sip/dcop/dcopobject.sip b/python/pykde/sip/dcop/dcopobject.sip
new file mode 100644
index 00000000..f26f7e67
--- /dev/null
+++ b/python/pykde/sip/dcop/dcopobject.sip
@@ -0,0 +1,82 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module dcop version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+class DCOPObject
+{
+%TypeHeaderCode
+#include <dcopobject.h>
+%End
+
+
+public:
+ DCOPObject ();
+ DCOPObject (QObject*);
+ DCOPObject (const QCString&);
+ QCString objId () const;
+ bool setObjId (const QCString&);
+ virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&);
+ virtual bool processDynamic (const QCString&, const QByteArray&, QCString&, QByteArray&);
+ virtual QCStringList functionsDynamic ();
+ virtual QCStringList interfacesDynamic ();
+ virtual QCStringList interfaces ();
+ virtual QCStringList functions ();
+ void emitDCOPSignal (const QCString&, const QByteArray&);
+ bool connectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&, bool);
+ bool disconnectDCOPSignal (const QCString&, const QCString&, const QCString&, const QCString&);
+
+%If ( KDE_3_1_0 - )
+ DCOPClient* callingDcopClient ();
+ void setCallingDcopClient (DCOPClient*);
+%End
+
+ static bool hasObject (const QCString&);
+ static DCOPObject* find (const QCString&);
+ static QPtrList<DCOPObject> match (const QCString&);
+ static QCString objectName (QObject*);
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class DCOPObject
+
+
+class DCOPObjectProxy
+{
+%TypeHeaderCode
+#include <dcopobject.h>
+%End
+
+
+public:
+ DCOPObjectProxy ();
+ DCOPObjectProxy (DCOPClient*);
+ virtual bool process (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&);
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class DCOPObjectProxy
+
diff --git a/python/pykde/sip/dcop/dcopref.sip b/python/pykde/sip/dcop/dcopref.sip
new file mode 100644
index 00000000..40a3fa3a
--- /dev/null
+++ b/python/pykde/sip/dcop/dcopref.sip
@@ -0,0 +1,109 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module dcop version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_1_0 - )
+
+class DCOPReply
+{
+%TypeHeaderCode
+#include <dcopref.h>
+%End
+
+
+public:
+ bool isValid () const;
+ QByteArray data;
+ QCString type;
+
+}; // class DCOPReply
+
+%End
+
+
+%If ( KDE_3_1_0 - )
+
+//ig class DCOPArg;
+
+%End
+
+
+class DCOPRef
+{
+%TypeHeaderCode
+#include <dcopref.h>
+%End
+
+
+public:
+ DCOPRef ();
+ DCOPRef (const DCOPRef&);
+ DCOPRef (const QCString&, const QCString&);
+ DCOPRef (DCOPObject*);
+ DCOPRef (const QCString&, const QCString&, const QCString&);
+ bool isNull () const;
+ QCString app () const;
+
+%If ( KDE_3_1_0 - )
+ QCString obj () const;
+%End
+
+ QCString object () const;
+ QCString type () const;
+ void setRef (const QCString&, const QCString&);
+ void setRef (const QCString&, const QCString&, const QCString&);
+ void clear ();
+
+%If ( KDE_3_1_0 - )
+ DCOPClient* dcopClient () const;
+ void setDCOPClient (DCOPClient*);
+
+%If ( KDE_3_2_0 - )
+
+ enum EventLoopFlag
+ {
+ NoEventLoop,
+ UseEventLoop
+ };
+
+%End
+
+ DCOPReply call (const QCString&);
+
+%If ( KDE_3_2_0 - )
+ DCOPReply callExt (const QCString&, DCOPRef::EventLoopFlag = NoEventLoop , int = -1);
+%End
+
+ bool send (const QCString&);
+%End
+
+
+}; // class DCOPRef
+
+
+%If ( KDE_3_1_4 - )
+//igx QDataStream& operator << (QDataStream&, const DCOPRef&);
+//igx QDataStream& operator >> (QDataStream&, DCOPRef&);
+%End
diff --git a/python/pykde/sip/dcop/dcopstub.sip b/python/pykde/sip/dcop/dcopstub.sip
new file mode 100644
index 00000000..4042eeee
--- /dev/null
+++ b/python/pykde/sip/dcop/dcopstub.sip
@@ -0,0 +1,68 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module dcop version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+class DCOPStub
+{
+%TypeHeaderCode
+#include <dcopstub.h>
+%End
+
+
+public:
+ DCOPStub (const QCString&, const QCString&);
+ DCOPStub (DCOPClient*, const QCString&, const QCString&);
+
+%If ( KDE_3_2_0 - )
+ DCOPStub (const DCOPRef&);
+%End
+
+ QCString app () const;
+ QCString obj () const;
+
+ enum Status
+ {
+ CallSucceeded,
+ CallFailed
+ };
+
+ Status status () const;
+ bool ok () const;
+
+protected:
+ void setStatus (DCOPStub::Status);
+ virtual void callFailed ();
+ DCOPClient* dcopClient ();
+
+%If ( KDE_3_1_0 - )
+//ig DCOPStub (DCOPStub::never_use_t);
+%End
+
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+}; // class DCOPStub
+
diff --git a/python/pykde/sip/dcop/typedefs.sip b/python/pykde/sip/dcop/typedefs.sip
new file mode 100644
index 00000000..66cd773e
--- /dev/null
+++ b/python/pykde/sip/dcop/typedefs.sip
@@ -0,0 +1,108 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module dcop version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+typedef uint mode_t;
+typedef long time_t;
+typedef ulong size_t;
+typedef int ssize_t;
+typedef int pid_t;
+typedef ulong Window;
+typedef bool Bool;
+typedef uint WFlags;
+typedef long off_t;
+
+
+/*%MappedType QValueList<pid_t>
+//converts a Python list of long
+{
+%TypeHeaderCode
+#include <qvaluelist.h>
+%End
+
+%ConvertFromTypeCode
+ // Handle no list.
+
+ if (!sipCpp)
+ return PyList_New(0);
+
+ // Convert to a Python list of long.
+
+ PyObject *l;
+
+ // Create the list.
+
+ if ((l = PyList_New(sipCpp -> count())) == NULL)
+ return NULL;
+
+ // Get it.
+
+ for (uint i = 0; i < sipCpp -> count(); ++i)
+ if (PyList_SetItem(l,i,PyLong_FromLong((long)(*sipCpp)[i])) < 0)
+ {
+ Py_DECREF(l);
+
+ return NULL;
+ }
+
+ return l;
+%End
+
+%ConvertToTypeCode
+ // Convert a Python list of long to a QValueList<long> on the heap.
+
+ if (sipIsErr == NULL)
+ return PyList_Check(sipPy);
+
+ if (sipPy == Py_None)
+ {
+ *sipCppPtr = NULL;
+
+ return 0;
+ }
+
+ QValueList<pid_t> *qvl = new QValueList<pid_t>;
+
+ PyErr_Clear();
+
+ for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i)
+ {
+ qvl -> append((pid_t)PyLong_AsLong(PyList_GET_ITEM(sipPy,i)));
+
+ if (PyErr_Occurred() != NULL)
+ {
+ delete qvl;
+ *sipIsErr = 1;
+
+ return 0;
+ }
+ }
+
+ *sipCppPtr = qvl;
+
+ return 1;
+%End
+};*/
+
+