kpilot/kpilot

kpilotDCOP_skel.cc

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from kpilotDCOP.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./kpilotDCOP.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const KPilotDCOP_ftable[5][3] = {
00015     { "ASYNC", "daemonStatus(int)", "daemonStatus(int)" },
00016     { "ASYNC", "configure()", "configure()" },
00017     { "ASYNC", "configureWizard()", "configureWizard()" },
00018     { "int", "kpilotStatus()", "kpilotStatus()" },
00019     { 0, 0, 0 }
00020 };
00021 static const int KPilotDCOP_ftable_hiddens[4] = {
00022     0,
00023     0,
00024     0,
00025     0,
00026 };
00027 
00028 bool KPilotDCOP::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00029 {
00030     if ( fun == KPilotDCOP_ftable[0][1] ) { // void daemonStatus(int)
00031     int arg0;
00032     QDataStream arg( data, IO_ReadOnly );
00033     if (arg.atEnd()) return false;
00034     arg >> arg0;
00035     replyType = KPilotDCOP_ftable[0][0]; 
00036     daemonStatus(arg0 );
00037     } else if ( fun == KPilotDCOP_ftable[1][1] ) { // void configure()
00038     replyType = KPilotDCOP_ftable[1][0]; 
00039     configure( );
00040     } else if ( fun == KPilotDCOP_ftable[2][1] ) { // void configureWizard()
00041     replyType = KPilotDCOP_ftable[2][0]; 
00042     configureWizard( );
00043     } else if ( fun == KPilotDCOP_ftable[3][1] ) { // int kpilotStatus()
00044     replyType = KPilotDCOP_ftable[3][0]; 
00045     QDataStream _replyStream( replyData, IO_WriteOnly );
00046     _replyStream << kpilotStatus( );
00047     } else {
00048     return DCOPObject::process( fun, data, replyType, replyData );
00049     }
00050     return true;
00051 }
00052 
00053 QCStringList KPilotDCOP::interfaces()
00054 {
00055     QCStringList ifaces = DCOPObject::interfaces();
00056     ifaces += "KPilotDCOP";
00057     return ifaces;
00058 }
00059 
00060 QCStringList KPilotDCOP::functions()
00061 {
00062     QCStringList funcs = DCOPObject::functions();
00063     for ( int i = 0; KPilotDCOP_ftable[i][2]; i++ ) {
00064     if (KPilotDCOP_ftable_hiddens[i])
00065         continue;
00066     QCString func = KPilotDCOP_ftable[i][0];
00067     func += ' ';
00068     func += KPilotDCOP_ftable[i][2];
00069     funcs << func;
00070     }
00071     return funcs;
00072 }
00073 
00074 
KDE Home | KDE Accessibility Home | Description of Access Keys