korganizer

kcalendariface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from kcalendariface.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./kcalendariface.h"
00010 
00011 #include <kdatastream.h>
00012 #include <qasciidict.h>
00013 
00014 
00015 static const int KCalendarIface_fhash = 19;
00016 static const char* const KCalendarIface_ftable[19][3] = {
00017     { "KCalendarIface::ResourceRequestReply", "resourceRequest(QValueList<QDateTimePair>,QCString,QString)", "resourceRequest(QValueList<QDateTimePair> busy,QCString resource,QString vCalIn)" },
00018     { "void", "openEventEditor(QString)", "openEventEditor(QString text)" },
00019     { "void", "openEventEditor(QString,QString,QString)", "openEventEditor(QString summary,QString description,QString attachment)" },
00020     { "void", "openEventEditor(QString,QString,QString,QStringList)", "openEventEditor(QString summary,QString description,QString attachment,QStringList attendees)" },
00021     { "void", "openEventEditor(QString,QString,QString,QString,QStringList,QString)", "openEventEditor(QString summary,QString description,QString uri,QString file,QStringList attendees,QString attachmentMimetype)" },
00022     { "void", "openTodoEditor(QString)", "openTodoEditor(QString text)" },
00023     { "void", "openTodoEditor(QString,QString,QString)", "openTodoEditor(QString summary,QString description,QString attachment)" },
00024     { "void", "openTodoEditor(QString,QString,QString,QStringList)", "openTodoEditor(QString summary,QString description,QString attachment,QStringList attendees)" },
00025     { "void", "openTodoEditor(QString,QString,QString,QString,QStringList,QString)", "openTodoEditor(QString summary,QString description,QString uri,QString file,QStringList attendees,QString attachmentMimetype)" },
00026     { "void", "openJournalEditor(QDate)", "openJournalEditor(QDate date)" },
00027     { "void", "openJournalEditor(QString,QDate)", "openJournalEditor(QString text,QDate date)" },
00028     { "void", "openJournalEditor(QString)", "openJournalEditor(QString text)" },
00029     { "void", "showJournalView()", "showJournalView()" },
00030     { "void", "showTodoView()", "showTodoView()" },
00031     { "void", "showEventView()", "showEventView()" },
00032     { "void", "goDate(QDate)", "goDate(QDate date)" },
00033     { "void", "goDate(QString)", "goDate(QString date)" },
00034     { "void", "showDate(QDate)", "showDate(QDate date)" },
00035     { 0, 0, 0 }
00036 };
00037 static const int KCalendarIface_ftable_hiddens[18] = {
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     0,
00053     0,
00054     0,
00055     0,
00056 };
00057 
00058 bool KCalendarIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00059 {
00060     static QAsciiDict<int>* fdict = 0;
00061     if ( !fdict ) {
00062     fdict = new QAsciiDict<int>( KCalendarIface_fhash, true, false );
00063     for ( int i = 0; KCalendarIface_ftable[i][1]; i++ )
00064         fdict->insert( KCalendarIface_ftable[i][1],  new int( i ) );
00065     }
00066     int* fp = fdict->find( fun );
00067     switch ( fp?*fp:-1) {
00068     case 0: { // KCalendarIface::ResourceRequestReply resourceRequest(QValueList<QDateTimePair>,QCString,QString)
00069     QValueList<QDateTimePair> arg0;
00070     QCString arg1;
00071     QString arg2;
00072     QDataStream arg( data, IO_ReadOnly );
00073     if (arg.atEnd()) return false;
00074     arg >> arg0;
00075     if (arg.atEnd()) return false;
00076     arg >> arg1;
00077     if (arg.atEnd()) return false;
00078     arg >> arg2;
00079     replyType = KCalendarIface_ftable[0][0]; 
00080     QDataStream _replyStream( replyData, IO_WriteOnly );
00081     _replyStream << resourceRequest(arg0, arg1, arg2 );
00082     } break;
00083     case 1: { // void openEventEditor(QString)
00084     QString arg0;
00085     QDataStream arg( data, IO_ReadOnly );
00086     if (arg.atEnd()) return false;
00087     arg >> arg0;
00088     replyType = KCalendarIface_ftable[1][0]; 
00089     openEventEditor(arg0 );
00090     } break;
00091     case 2: { // void openEventEditor(QString,QString,QString)
00092     QString arg0;
00093     QString arg1;
00094     QString arg2;
00095     QDataStream arg( data, IO_ReadOnly );
00096     if (arg.atEnd()) return false;
00097     arg >> arg0;
00098     if (arg.atEnd()) return false;
00099     arg >> arg1;
00100     if (arg.atEnd()) return false;
00101     arg >> arg2;
00102     replyType = KCalendarIface_ftable[2][0]; 
00103     openEventEditor(arg0, arg1, arg2 );
00104     } break;
00105     case 3: { // void openEventEditor(QString,QString,QString,QStringList)
00106     QString arg0;
00107     QString arg1;
00108     QString arg2;
00109     QStringList arg3;
00110     QDataStream arg( data, IO_ReadOnly );
00111     if (arg.atEnd()) return false;
00112     arg >> arg0;
00113     if (arg.atEnd()) return false;
00114     arg >> arg1;
00115     if (arg.atEnd()) return false;
00116     arg >> arg2;
00117     if (arg.atEnd()) return false;
00118     arg >> arg3;
00119     replyType = KCalendarIface_ftable[3][0]; 
00120     openEventEditor(arg0, arg1, arg2, arg3 );
00121     } break;
00122     case 4: { // void openEventEditor(QString,QString,QString,QString,QStringList,QString)
00123     QString arg0;
00124     QString arg1;
00125     QString arg2;
00126     QString arg3;
00127     QStringList arg4;
00128     QString arg5;
00129     QDataStream arg( data, IO_ReadOnly );
00130     if (arg.atEnd()) return false;
00131     arg >> arg0;
00132     if (arg.atEnd()) return false;
00133     arg >> arg1;
00134     if (arg.atEnd()) return false;
00135     arg >> arg2;
00136     if (arg.atEnd()) return false;
00137     arg >> arg3;
00138     if (arg.atEnd()) return false;
00139     arg >> arg4;
00140     if (arg.atEnd()) return false;
00141     arg >> arg5;
00142     replyType = KCalendarIface_ftable[4][0]; 
00143     openEventEditor(arg0, arg1, arg2, arg3, arg4, arg5 );
00144     } break;
00145     case 5: { // void openTodoEditor(QString)
00146     QString arg0;
00147     QDataStream arg( data, IO_ReadOnly );
00148     if (arg.atEnd()) return false;
00149     arg >> arg0;
00150     replyType = KCalendarIface_ftable[5][0]; 
00151     openTodoEditor(arg0 );
00152     } break;
00153     case 6: { // void openTodoEditor(QString,QString,QString)
00154     QString arg0;
00155     QString arg1;
00156     QString arg2;
00157     QDataStream arg( data, IO_ReadOnly );
00158     if (arg.atEnd()) return false;
00159     arg >> arg0;
00160     if (arg.atEnd()) return false;
00161     arg >> arg1;
00162     if (arg.atEnd()) return false;
00163     arg >> arg2;
00164     replyType = KCalendarIface_ftable[6][0]; 
00165     openTodoEditor(arg0, arg1, arg2 );
00166     } break;
00167     case 7: { // void openTodoEditor(QString,QString,QString,QStringList)
00168     QString arg0;
00169     QString arg1;
00170     QString arg2;
00171     QStringList arg3;
00172     QDataStream arg( data, IO_ReadOnly );
00173     if (arg.atEnd()) return false;
00174     arg >> arg0;
00175     if (arg.atEnd()) return false;
00176     arg >> arg1;
00177     if (arg.atEnd()) return false;
00178     arg >> arg2;
00179     if (arg.atEnd()) return false;
00180     arg >> arg3;
00181     replyType = KCalendarIface_ftable[7][0]; 
00182     openTodoEditor(arg0, arg1, arg2, arg3 );
00183     } break;
00184     case 8: { // void openTodoEditor(QString,QString,QString,QString,QStringList,QString)
00185     QString arg0;
00186     QString arg1;
00187     QString arg2;
00188     QString arg3;
00189     QStringList arg4;
00190     QString arg5;
00191     QDataStream arg( data, IO_ReadOnly );
00192     if (arg.atEnd()) return false;
00193     arg >> arg0;
00194     if (arg.atEnd()) return false;
00195     arg >> arg1;
00196     if (arg.atEnd()) return false;
00197     arg >> arg2;
00198     if (arg.atEnd()) return false;
00199     arg >> arg3;
00200     if (arg.atEnd()) return false;
00201     arg >> arg4;
00202     if (arg.atEnd()) return false;
00203     arg >> arg5;
00204     replyType = KCalendarIface_ftable[8][0]; 
00205     openTodoEditor(arg0, arg1, arg2, arg3, arg4, arg5 );
00206     } break;
00207     case 9: { // void openJournalEditor(QDate)
00208     QDate arg0;
00209     QDataStream arg( data, IO_ReadOnly );
00210     if (arg.atEnd()) return false;
00211     arg >> arg0;
00212     replyType = KCalendarIface_ftable[9][0]; 
00213     openJournalEditor(arg0 );
00214     } break;
00215     case 10: { // void openJournalEditor(QString,QDate)
00216     QString arg0;
00217     QDate arg1;
00218     QDataStream arg( data, IO_ReadOnly );
00219     if (arg.atEnd()) return false;
00220     arg >> arg0;
00221     if (arg.atEnd()) return false;
00222     arg >> arg1;
00223     replyType = KCalendarIface_ftable[10][0]; 
00224     openJournalEditor(arg0, arg1 );
00225     } break;
00226     case 11: { // void openJournalEditor(QString)
00227     QString arg0;
00228     QDataStream arg( data, IO_ReadOnly );
00229     if (arg.atEnd()) return false;
00230     arg >> arg0;
00231     replyType = KCalendarIface_ftable[11][0]; 
00232     openJournalEditor(arg0 );
00233     } break;
00234     case 12: { // void showJournalView()
00235     replyType = KCalendarIface_ftable[12][0]; 
00236     showJournalView( );
00237     } break;
00238     case 13: { // void showTodoView()
00239     replyType = KCalendarIface_ftable[13][0]; 
00240     showTodoView( );
00241     } break;
00242     case 14: { // void showEventView()
00243     replyType = KCalendarIface_ftable[14][0]; 
00244     showEventView( );
00245     } break;
00246     case 15: { // void goDate(QDate)
00247     QDate arg0;
00248     QDataStream arg( data, IO_ReadOnly );
00249     if (arg.atEnd()) return false;
00250     arg >> arg0;
00251     replyType = KCalendarIface_ftable[15][0]; 
00252     goDate(arg0 );
00253     } break;
00254     case 16: { // void goDate(QString)
00255     QString arg0;
00256     QDataStream arg( data, IO_ReadOnly );
00257     if (arg.atEnd()) return false;
00258     arg >> arg0;
00259     replyType = KCalendarIface_ftable[16][0]; 
00260     goDate(arg0 );
00261     } break;
00262     case 17: { // void showDate(QDate)
00263     QDate arg0;
00264     QDataStream arg( data, IO_ReadOnly );
00265     if (arg.atEnd()) return false;
00266     arg >> arg0;
00267     replyType = KCalendarIface_ftable[17][0]; 
00268     showDate(arg0 );
00269     } break;
00270     default: 
00271     return DCOPObject::process( fun, data, replyType, replyData );
00272     }
00273     return true;
00274 }
00275 
00276 QCStringList KCalendarIface::interfaces()
00277 {
00278     QCStringList ifaces = DCOPObject::interfaces();
00279     ifaces += "KCalendarIface";
00280     return ifaces;
00281 }
00282 
00283 QCStringList KCalendarIface::functions()
00284 {
00285     QCStringList funcs = DCOPObject::functions();
00286     for ( int i = 0; KCalendarIface_ftable[i][2]; i++ ) {
00287     if (KCalendarIface_ftable_hiddens[i])
00288         continue;
00289     QCString func = KCalendarIface_ftable[i][0];
00290     func += ' ';
00291     func += KCalendarIface_ftable[i][2];
00292     funcs << func;
00293     }
00294     return funcs;
00295 }
00296 
00297 
KDE Home | KDE Accessibility Home | Description of Access Keys