summaryrefslogtreecommitdiffstats
path: root/kkbswitch/kbswitchintf_skel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kkbswitch/kbswitchintf_skel.cpp')
-rw-r--r--kkbswitch/kbswitchintf_skel.cpp74
1 files changed, 74 insertions, 0 deletions
diff --git a/kkbswitch/kbswitchintf_skel.cpp b/kkbswitch/kbswitchintf_skel.cpp
new file mode 100644
index 0000000..e295797
--- /dev/null
+++ b/kkbswitch/kbswitchintf_skel.cpp
@@ -0,0 +1,74 @@
+/****************************************************************************
+**
+** DCOP Skeleton created by dcopidl2cpp from kbswitchintf.kidl
+**
+** WARNING! All changes made in this file will be lost!
+**
+*****************************************************************************/
+
+#include "./kbswitchintf.h"
+
+#include <kdatastream.h>
+
+
+static const char* const KBSwitchIntf_ftable[5][3] = {
+ { "int", "getNumKbdGroups()", "getNumKbdGroups()" },
+ { "ASYNC", "selectNextGroup()", "selectNextGroup()" },
+ { "ASYNC", "selectGroup(int)", "selectGroup(int groupno)" },
+ { "QStringList", "getGroupNames()", "getGroupNames()" },
+ { 0, 0, 0 }
+};
+static const int KBSwitchIntf_ftable_hiddens[4] = {
+ 0,
+ 0,
+ 0,
+ 0,
+};
+
+bool KBSwitchIntf::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
+{
+ if ( fun == KBSwitchIntf_ftable[0][1] ) { // int getNumKbdGroups()
+ replyType = KBSwitchIntf_ftable[0][0];
+ QDataStream _replyStream( replyData, IO_WriteOnly );
+ _replyStream << getNumKbdGroups( );
+ } else if ( fun == KBSwitchIntf_ftable[1][1] ) { // void selectNextGroup()
+ replyType = KBSwitchIntf_ftable[1][0];
+ selectNextGroup( );
+ } else if ( fun == KBSwitchIntf_ftable[2][1] ) { // void selectGroup(int)
+ int arg0;
+ QDataStream arg( data, IO_ReadOnly );
+ arg >> arg0;
+ replyType = KBSwitchIntf_ftable[2][0];
+ selectGroup(arg0 );
+ } else if ( fun == KBSwitchIntf_ftable[3][1] ) { // QStringList getGroupNames()
+ replyType = KBSwitchIntf_ftable[3][0];
+ QDataStream _replyStream( replyData, IO_WriteOnly );
+ _replyStream << getGroupNames( );
+ } else {
+ return DCOPObject::process( fun, data, replyType, replyData );
+ }
+ return true;
+}
+
+QCStringList KBSwitchIntf::interfaces()
+{
+ QCStringList ifaces = DCOPObject::interfaces();
+ ifaces += "KBSwitchIntf";
+ return ifaces;
+}
+
+QCStringList KBSwitchIntf::functions()
+{
+ QCStringList funcs = DCOPObject::functions();
+ for ( int i = 0; KBSwitchIntf_ftable[i][2]; i++ ) {
+ if (KBSwitchIntf_ftable_hiddens[i])
+ continue;
+ QCString func = KBSwitchIntf_ftable[i][0];
+ func += ' ';
+ func += KBSwitchIntf_ftable[i][2];
+ funcs << func;
+ }
+ return funcs;
+}
+
+