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)", "registered(bool reregister,int result)" },
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)
00049     bool arg0;
00050     int arg1;
00051     QDataStream arg( data, IO_ReadOnly );
00052     if (arg.atEnd()) return false;
00053     arg >> arg0;
00054     if (arg.atEnd()) return false;
00055     arg >> arg1;
00056     replyType = AlarmGuiIface_ftable[2][0]; 
00057     registered(arg0, arg1 );
00058     } else {
00059     return DCOPObject::process( fun, data, replyType, replyData );
00060     }
00061     return true;
00062 }
00063 
00064 QCStringList AlarmGuiIface::interfaces()
00065 {
00066     QCStringList ifaces = DCOPObject::interfaces();
00067     ifaces += "AlarmGuiIface";
00068     return ifaces;
00069 }
00070 
00071 QCStringList AlarmGuiIface::functions()
00072 {
00073     QCStringList funcs = DCOPObject::functions();
00074     for ( int i = 0; AlarmGuiIface_ftable[i][2]; i++ ) {
00075     if (AlarmGuiIface_ftable_hiddens[i])
00076         continue;
00077     QCString func = AlarmGuiIface_ftable[i][0];
00078     func += ' ';
00079     func += AlarmGuiIface_ftable[i][2];
00080     funcs << func;
00081     }
00082     return funcs;
00083 }
00084 
00085 
KDE Home | KDE Accessibility Home | Description of Access Keys