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 = 17;
00016 static const char* const KCalendarIface_ftable[16][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", "openTodoEditor(QString)", "openTodoEditor(QString text)" },
00022     { "void", "openTodoEditor(QString,QString,QString)", "openTodoEditor(QString summary,QString description,QString attachment)" },
00023     { "void", "openTodoEditor(QString,QString,QString,QStringList)", "openTodoEditor(QString summary,QString description,QString attachment,QStringList attendees)" },
00024     { "void", "openJournalEditor(QDate)", "openJournalEditor(QDate date)" },
00025     { "void", "openJournalEditor(QString,QDate)", "openJournalEditor(QString text,QDate date)" },
00026     { "void", "openJournalEditor(QString)", "openJournalEditor(QString text)" },
00027     { "void", "showJournalView()", "showJournalView()" },
00028     { "void", "showTodoView()", "showTodoView()" },
00029     { "void", "showEventView()", "showEventView()" },
00030     { "void", "goDate(QDate)", "goDate(QDate date)" },
00031     { "void", "goDate(QString)", "goDate(QString date)" },
00032     { 0, 0, 0 }
00033 };
00034 static const int KCalendarIface_ftable_hiddens[15] = {
00035     0,
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 };
00051 
00052 bool KCalendarIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00053 {
00054     static QAsciiDict<int>* fdict = 0;
00055     if ( !fdict ) {
00056     fdict = new QAsciiDict<int>( KCalendarIface_fhash, true, false );
00057     for ( int i = 0; KCalendarIface_ftable[i][1]; i++ )
00058         fdict->insert( KCalendarIface_ftable[i][1],  new int( i ) );
00059     }
00060     int* fp = fdict->find( fun );
00061     switch ( fp?*fp:-1) {
00062     case 0: { // KCalendarIface::ResourceRequestReply resourceRequest(QValueList<QDateTimePair>,QCString,QString)
00063     QValueList<QDateTimePair> arg0;
00064     QCString arg1;
00065     QString arg2;
00066     QDataStream arg( data, IO_ReadOnly );
00067     if (arg.atEnd()) return false;
00068     arg >> arg0;
00069     if (arg.atEnd()) return false;
00070     arg >> arg1;
00071     if (arg.atEnd()) return false;
00072     arg >> arg2;
00073     replyType = KCalendarIface_ftable[0][0]; 
00074     QDataStream _replyStream( replyData, IO_WriteOnly );
00075     _replyStream << resourceRequest(arg0, arg1, arg2 );
00076     } break;
00077     case 1: { // void openEventEditor(QString)
00078     QString arg0;
00079     QDataStream arg( data, IO_ReadOnly );
00080     if (arg.atEnd()) return false;
00081     arg >> arg0;
00082     replyType = KCalendarIface_ftable[1][0]; 
00083     openEventEditor(arg0 );
00084     } break;
00085     case 2: { // void openEventEditor(QString,QString,QString)
00086     QString arg0;
00087     QString arg1;
00088     QString arg2;
00089     QDataStream arg( data, IO_ReadOnly );
00090     if (arg.atEnd()) return false;
00091     arg >> arg0;
00092     if (arg.atEnd()) return false;
00093     arg >> arg1;
00094     if (arg.atEnd()) return false;
00095     arg >> arg2;
00096     replyType = KCalendarIface_ftable[2][0]; 
00097     openEventEditor(arg0, arg1, arg2 );
00098     } break;
00099     case 3: { // void openEventEditor(QString,QString,QString,QStringList)
00100     QString arg0;
00101     QString arg1;
00102     QString arg2;
00103     QStringList arg3;
00104     QDataStream arg( data, IO_ReadOnly );
00105     if (arg.atEnd()) return false;
00106     arg >> arg0;
00107     if (arg.atEnd()) return false;
00108     arg >> arg1;
00109     if (arg.atEnd()) return false;
00110     arg >> arg2;
00111     if (arg.atEnd()) return false;
00112     arg >> arg3;
00113     replyType = KCalendarIface_ftable[3][0]; 
00114     openEventEditor(arg0, arg1, arg2, arg3 );
00115     } break;
00116     case 4: { // void openTodoEditor(QString)
00117     QString arg0;
00118     QDataStream arg( data, IO_ReadOnly );
00119     if (arg.atEnd()) return false;
00120     arg >> arg0;
00121     replyType = KCalendarIface_ftable[4][0]; 
00122     openTodoEditor(arg0 );
00123     } break;
00124     case 5: { // void openTodoEditor(QString,QString,QString)
00125     QString arg0;
00126     QString arg1;
00127     QString arg2;
00128     QDataStream arg( data, IO_ReadOnly );
00129     if (arg.atEnd()) return false;
00130     arg >> arg0;
00131     if (arg.atEnd()) return false;
00132     arg >> arg1;
00133     if (arg.atEnd()) return false;
00134     arg >> arg2;
00135     replyType = KCalendarIface_ftable[5][0]; 
00136     openTodoEditor(arg0, arg1, arg2 );
00137     } break;
00138     case 6: { // void openTodoEditor(QString,QString,QString,QStringList)
00139     QString arg0;
00140     QString arg1;
00141     QString arg2;
00142     QStringList arg3;
00143     QDataStream arg( data, IO_ReadOnly );
00144     if (arg.atEnd()) return false;
00145     arg >> arg0;
00146     if (arg.atEnd()) return false;
00147     arg >> arg1;
00148     if (arg.atEnd()) return false;
00149     arg >> arg2;
00150     if (arg.atEnd()) return false;
00151     arg >> arg3;
00152     replyType = KCalendarIface_ftable[6][0]; 
00153     openTodoEditor(arg0, arg1, arg2, arg3 );
00154     } break;
00155     case 7: { // void openJournalEditor(QDate)
00156     QDate arg0;
00157     QDataStream arg( data, IO_ReadOnly );
00158     if (arg.atEnd()) return false;
00159     arg >> arg0;
00160     replyType = KCalendarIface_ftable[7][0]; 
00161     openJournalEditor(arg0 );
00162     } break;
00163     case 8: { // void openJournalEditor(QString,QDate)
00164     QString arg0;
00165     QDate arg1;
00166     QDataStream arg( data, IO_ReadOnly );
00167     if (arg.atEnd()) return false;
00168     arg >> arg0;
00169     if (arg.atEnd()) return false;
00170     arg >> arg1;
00171     replyType = KCalendarIface_ftable[8][0]; 
00172     openJournalEditor(arg0, arg1 );
00173     } break;
00174     case 9: { // void openJournalEditor(QString)
00175     QString arg0;
00176     QDataStream arg( data, IO_ReadOnly );
00177     if (arg.atEnd()) return false;
00178     arg >> arg0;
00179     replyType = KCalendarIface_ftable[9][0]; 
00180     openJournalEditor(arg0 );
00181     } break;
00182     case 10: { // void showJournalView()
00183     replyType = KCalendarIface_ftable[10][0]; 
00184     showJournalView( );
00185     } break;
00186     case 11: { // void showTodoView()
00187     replyType = KCalendarIface_ftable[11][0]; 
00188     showTodoView( );
00189     } break;
00190     case 12: { // void showEventView()
00191     replyType = KCalendarIface_ftable[12][0]; 
00192     showEventView( );
00193     } break;
00194     case 13: { // void goDate(QDate)
00195     QDate arg0;
00196     QDataStream arg( data, IO_ReadOnly );
00197     if (arg.atEnd()) return false;
00198     arg >> arg0;
00199     replyType = KCalendarIface_ftable[13][0]; 
00200     goDate(arg0 );
00201     } break;
00202     case 14: { // void goDate(QString)
00203     QString arg0;
00204     QDataStream arg( data, IO_ReadOnly );
00205     if (arg.atEnd()) return false;
00206     arg >> arg0;
00207     replyType = KCalendarIface_ftable[14][0]; 
00208     goDate(arg0 );
00209     } break;
00210     default: 
00211     return DCOPObject::process( fun, data, replyType, replyData );
00212     }
00213     return true;
00214 }
00215 
00216 QCStringList KCalendarIface::interfaces()
00217 {
00218     QCStringList ifaces = DCOPObject::interfaces();
00219     ifaces += "KCalendarIface";
00220     return ifaces;
00221 }
00222 
00223 QCStringList KCalendarIface::functions()
00224 {
00225     QCStringList funcs = DCOPObject::functions();
00226     for ( int i = 0; KCalendarIface_ftable[i][2]; i++ ) {
00227     if (KCalendarIface_ftable_hiddens[i])
00228         continue;
00229     QCString func = KCalendarIface_ftable[i][0];
00230     func += ' ';
00231     func += KCalendarIface_ftable[i][2];
00232     funcs << func;
00233     }
00234     return funcs;
00235 }
00236 
00237 
KDE Home | KDE Accessibility Home | Description of Access Keys