korganizer

alarmclientiface_skel.cpp

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