kalarmd Library API Documentation

alarmdaemoniface_skel.cpp

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton created by dcopidl2cpp from alarmdaemoniface.kidl 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 00006 ** 00007 *****************************************************************************/ 00008 00009 #include "./alarmdaemoniface.h" 00010 00011 #include <kdatastream.h> 00012 #include <qasciidict.h> 00013 00014 00015 static const int AlarmDaemonIface_fhash = 17; 00016 static const char* const AlarmDaemonIface_ftable[17][3] = { 00017 { "ASYNC", "enableAutoStart(bool)", "enableAutoStart(bool enable)" }, 00018 { "ASYNC", "enableCal(QString,bool)", "enableCal(QString urlString,bool enable)" }, 00019 { "ASYNC", "addCal(QCString,QString)", "addCal(QCString appname,QString urlString)" }, 00020 { "ASYNC", "addMsgCal(QCString,QString)", "addMsgCal(QCString appname,QString urlString)" }, 00021 { "ASYNC", "reloadCal(QCString,QString)", "reloadCal(QCString appname,QString urlString)" }, 00022 { "ASYNC", "reloadMsgCal(QCString,QString)", "reloadMsgCal(QCString appname,QString urlString)" }, 00023 { "ASYNC", "removeCal(QString)", "removeCal(QString urlString)" }, 00024 { "ASYNC", "resetMsgCal(QCString,QString)", "resetMsgCal(QCString appname,QString urlString)" }, 00025 { "ASYNC", "registerApp(QCString,QString,QCString,int,bool)", "registerApp(QCString appName,QString appTitle,QCString dcopObject,int notificationType,bool displayCalendarName)" }, 00026 { "ASYNC", "reregisterApp(QCString,QString,QCString,int,bool)", "reregisterApp(QCString appName,QString appTitle,QCString dcopObject,int notificationType,bool displayCalendarName)" }, 00027 { "ASYNC", "registerGui(QCString,QCString)", "registerGui(QCString appName,QCString dcopObject)" }, 00028 { "ASYNC", "readConfig()", "readConfig()" }, 00029 { "ASYNC", "quit()", "quit()" }, 00030 { "ASYNC", "forceAlarmCheck()", "forceAlarmCheck()" }, 00031 { "ASYNC", "dumpDebug()", "dumpDebug()" }, 00032 { "QStringList", "dumpAlarms()", "dumpAlarms()" }, 00033 { 0, 0, 0 } 00034 }; 00035 static const int AlarmDaemonIface_ftable_hiddens[16] = { 00036 0, 00037 0, 00038 0, 00039 0, 00040 0, 00041 0, 00042 0, 00043 0, 00044 0, 00045 0, 00046 0, 00047 0, 00048 0, 00049 0, 00050 0, 00051 0, 00052 }; 00053 00054 bool AlarmDaemonIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) 00055 { 00056 static QAsciiDict<int>* fdict = 0; 00057 if ( !fdict ) { 00058 fdict = new QAsciiDict<int>( AlarmDaemonIface_fhash, true, false ); 00059 for ( int i = 0; AlarmDaemonIface_ftable[i][1]; i++ ) 00060 fdict->insert( AlarmDaemonIface_ftable[i][1], new int( i ) ); 00061 } 00062 int* fp = fdict->find( fun ); 00063 switch ( fp?*fp:-1) { 00064 case 0: { // void enableAutoStart(bool) 00065 bool arg0; 00066 QDataStream arg( data, IO_ReadOnly ); 00067 arg >> arg0; 00068 replyType = AlarmDaemonIface_ftable[0][0]; 00069 enableAutoStart(arg0 ); 00070 } break; 00071 case 1: { // void enableCal(QString,bool) 00072 QString arg0; 00073 bool arg1; 00074 QDataStream arg( data, IO_ReadOnly ); 00075 arg >> arg0; 00076 arg >> arg1; 00077 replyType = AlarmDaemonIface_ftable[1][0]; 00078 enableCal(arg0, arg1 ); 00079 } break; 00080 case 2: { // void addCal(QCString,QString) 00081 QCString arg0; 00082 QString arg1; 00083 QDataStream arg( data, IO_ReadOnly ); 00084 arg >> arg0; 00085 arg >> arg1; 00086 replyType = AlarmDaemonIface_ftable[2][0]; 00087 addCal(arg0, arg1 ); 00088 } break; 00089 case 3: { // void addMsgCal(QCString,QString) 00090 QCString arg0; 00091 QString arg1; 00092 QDataStream arg( data, IO_ReadOnly ); 00093 arg >> arg0; 00094 arg >> arg1; 00095 replyType = AlarmDaemonIface_ftable[3][0]; 00096 addMsgCal(arg0, arg1 ); 00097 } break; 00098 case 4: { // void reloadCal(QCString,QString) 00099 QCString arg0; 00100 QString arg1; 00101 QDataStream arg( data, IO_ReadOnly ); 00102 arg >> arg0; 00103 arg >> arg1; 00104 replyType = AlarmDaemonIface_ftable[4][0]; 00105 reloadCal(arg0, arg1 ); 00106 } break; 00107 case 5: { // void reloadMsgCal(QCString,QString) 00108 QCString arg0; 00109 QString arg1; 00110 QDataStream arg( data, IO_ReadOnly ); 00111 arg >> arg0; 00112 arg >> arg1; 00113 replyType = AlarmDaemonIface_ftable[5][0]; 00114 reloadMsgCal(arg0, arg1 ); 00115 } break; 00116 case 6: { // void removeCal(QString) 00117 QString arg0; 00118 QDataStream arg( data, IO_ReadOnly ); 00119 arg >> arg0; 00120 replyType = AlarmDaemonIface_ftable[6][0]; 00121 removeCal(arg0 ); 00122 } break; 00123 case 7: { // void resetMsgCal(QCString,QString) 00124 QCString arg0; 00125 QString arg1; 00126 QDataStream arg( data, IO_ReadOnly ); 00127 arg >> arg0; 00128 arg >> arg1; 00129 replyType = AlarmDaemonIface_ftable[7][0]; 00130 resetMsgCal(arg0, arg1 ); 00131 } break; 00132 case 8: { // void registerApp(QCString,QString,QCString,int,bool) 00133 QCString arg0; 00134 QString arg1; 00135 QCString arg2; 00136 int arg3; 00137 bool arg4; 00138 QDataStream arg( data, IO_ReadOnly ); 00139 arg >> arg0; 00140 arg >> arg1; 00141 arg >> arg2; 00142 arg >> arg3; 00143 arg >> arg4; 00144 replyType = AlarmDaemonIface_ftable[8][0]; 00145 registerApp(arg0, arg1, arg2, arg3, arg4 ); 00146 } break; 00147 case 9: { // void reregisterApp(QCString,QString,QCString,int,bool) 00148 QCString arg0; 00149 QString arg1; 00150 QCString arg2; 00151 int arg3; 00152 bool arg4; 00153 QDataStream arg( data, IO_ReadOnly ); 00154 arg >> arg0; 00155 arg >> arg1; 00156 arg >> arg2; 00157 arg >> arg3; 00158 arg >> arg4; 00159 replyType = AlarmDaemonIface_ftable[9][0]; 00160 reregisterApp(arg0, arg1, arg2, arg3, arg4 ); 00161 } break; 00162 case 10: { // void registerGui(QCString,QCString) 00163 QCString arg0; 00164 QCString arg1; 00165 QDataStream arg( data, IO_ReadOnly ); 00166 arg >> arg0; 00167 arg >> arg1; 00168 replyType = AlarmDaemonIface_ftable[10][0]; 00169 registerGui(arg0, arg1 ); 00170 } break; 00171 case 11: { // void readConfig() 00172 replyType = AlarmDaemonIface_ftable[11][0]; 00173 readConfig( ); 00174 } break; 00175 case 12: { // void quit() 00176 replyType = AlarmDaemonIface_ftable[12][0]; 00177 quit( ); 00178 } break; 00179 case 13: { // void forceAlarmCheck() 00180 replyType = AlarmDaemonIface_ftable[13][0]; 00181 forceAlarmCheck( ); 00182 } break; 00183 case 14: { // void dumpDebug() 00184 replyType = AlarmDaemonIface_ftable[14][0]; 00185 dumpDebug( ); 00186 } break; 00187 case 15: { // QStringList dumpAlarms() 00188 replyType = AlarmDaemonIface_ftable[15][0]; 00189 QDataStream _replyStream( replyData, IO_WriteOnly ); 00190 _replyStream << dumpAlarms( ); 00191 } break; 00192 default: 00193 return DCOPObject::process( fun, data, replyType, replyData ); 00194 } 00195 return true; 00196 } 00197 00198 QCStringList AlarmDaemonIface::interfaces() 00199 { 00200 QCStringList ifaces = DCOPObject::interfaces(); 00201 ifaces += "AlarmDaemonIface"; 00202 return ifaces; 00203 } 00204 00205 QCStringList AlarmDaemonIface::functions() 00206 { 00207 QCStringList funcs = DCOPObject::functions(); 00208 for ( int i = 0; AlarmDaemonIface_ftable[i][2]; i++ ) { 00209 if (AlarmDaemonIface_ftable_hiddens[i]) 00210 continue; 00211 QCString func = AlarmDaemonIface_ftable[i][0]; 00212 func += ' '; 00213 func += AlarmDaemonIface_ftable[i][2]; 00214 funcs << func; 00215 } 00216 return funcs; 00217 } 00218 00219
KDE Logo
This file is part of the documentation for kalarmd Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:30 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003