kalarm

alarmguiiface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from alarmguiiface.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "../kalarm/kalarmd/alarmguiiface.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const AlarmGuiIface_ftable[4][3] = {
00015     { "ASYNC", "alarmDaemonUpdate(int,QString)", "alarmDaemonUpdate(int calendarStatus,QString calendarURL)" },
00016     { "ASYNC", "handleEvent(QString,QString)", "handleEvent(QString calendarURL,QString eventID)" },
00017     { "ASYNC", "registered(bool,int,int)", "registered(bool reregister,int result,int version)" },
00018     { 0, 0, 0 }
00019 };
00020 static const int AlarmGuiIface_ftable_hiddens[3] = {
00021     0,
00022     0,
00023     0,
00024 };
00025 
00026 bool AlarmGuiIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00027 {
00028     if ( fun == AlarmGuiIface_ftable[0][1] ) { // void alarmDaemonUpdate(int,QString)
00029     int arg0;
00030     QString arg1;
00031     QDataStream arg( data, IO_ReadOnly );
00032     if (arg.atEnd()) return false;
00033     arg >> arg0;
00034     if (arg.atEnd()) return false;
00035     arg >> arg1;
00036     replyType = AlarmGuiIface_ftable[0][0]; 
00037     alarmDaemonUpdate(arg0, arg1 );
00038     } else if ( fun == AlarmGuiIface_ftable[1][1] ) { // void handleEvent(QString,QString)
00039     QString arg0;
00040     QString arg1;
00041     QDataStream arg( data, IO_ReadOnly );
00042     if (arg.atEnd()) return false;
00043     arg >> arg0;
00044     if (arg.atEnd()) return false;
00045     arg >> arg1;
00046     replyType = AlarmGuiIface_ftable[1][0]; 
00047     handleEvent(arg0, arg1 );
00048     } else if ( fun == AlarmGuiIface_ftable[2][1] ) { // void registered(bool,int,int)
00049     bool arg0;
00050     int arg1;
00051     int arg2;
00052     QDataStream arg( data, IO_ReadOnly );
00053     if (arg.atEnd()) return false;
00054     arg >> arg0;
00055     if (arg.atEnd()) return false;
00056     arg >> arg1;
00057     if (arg.atEnd()) return false;
00058     arg >> arg2;
00059     replyType = AlarmGuiIface_ftable[2][0]; 
00060     registered(arg0, arg1, arg2 );
00061     } else {
00062     return DCOPObject::process( fun, data, replyType, replyData );
00063     }
00064     return true;
00065 }
00066 
00067 QCStringList AlarmGuiIface::interfaces()
00068 {
00069     QCStringList ifaces = DCOPObject::interfaces();
00070     ifaces += "AlarmGuiIface";
00071     return ifaces;
00072 }
00073 
00074 QCStringList AlarmGuiIface::functions()
00075 {
00076     QCStringList funcs = DCOPObject::functions();
00077     for ( int i = 0; AlarmGuiIface_ftable[i][2]; i++ ) {
00078     if (AlarmGuiIface_ftable_hiddens[i])
00079         continue;
00080     QCString func = AlarmGuiIface_ftable[i][0];
00081     func += ' ';
00082     func += AlarmGuiIface_ftable[i][2];
00083     funcs << func;
00084     }
00085     return funcs;
00086 }
00087 
00088 
KDE Home | KDE Accessibility Home | Description of Access Keys