kmail

kmailicalIface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from kmailicalIface.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./kmailicalIface.h"
00010 
00011 #include <kdatastream.h>
00012 #include <qasciidict.h>
00013 
00014 
00015 static const int KMailICalIface_fhash = 17;
00016 static const char* const KMailICalIface_ftable[16][3] = {
00017     { "bool", "isWritableFolder(QString,QString)", "isWritableFolder(QString type,QString resource)" },
00018     { "KMailICalIface::StorageFormat", "storageFormat(QString)", "storageFormat(QString resource)" },
00019     { "KURL", "getAttachment(QString,Q_UINT32,QString)", "getAttachment(QString resource,Q_UINT32 sernum,QString filename)" },
00020     { "QString", "attachmentMimetype(QString,Q_UINT32,QString)", "attachmentMimetype(QString resource,Q_UINT32 sernum,QString filename)" },
00021     { "QStringList", "listAttachments(QString,Q_UINT32)", "listAttachments(QString resource,Q_UINT32 sernum)" },
00022     { "Q_UINT32", "update(QString,Q_UINT32,QString,QString,QMap<QCString,QString>,QStringList,QStringList,QStringList,QStringList)", "update(QString resource,Q_UINT32 sernum,QString subject,QString plainTextBody,QMap<QCString,QString> customHeaders,QStringList attachmentURLs,QStringList attachmentMimetypes,QStringList attachmentNames,QStringList deletedAttachments)" },
00023     { "bool", "deleteIncidenceKolab(QString,Q_UINT32)", "deleteIncidenceKolab(QString resource,Q_UINT32 sernum)" },
00024     { "int", "incidencesKolabCount(QString,QString)", "incidencesKolabCount(QString mimetype,QString resource)" },
00025     { "QMap<Q_UINT32, QString>", "incidencesKolab(QString,QString,int,int)", "incidencesKolab(QString mimetype,QString resource,int startIndex,int nbMessages)" },
00026     { "QValueList<KMailICalIface::SubResource>", "subresourcesKolab(QString)", "subresourcesKolab(QString contentsType)" },
00027     { "bool", "addSubresource(QString,QString,QString)", "addSubresource(QString resource,QString parent,QString contentsType)" },
00028     { "bool", "removeSubresource(QString)", "removeSubresource(QString resource)" },
00029     { "int", "dimapAccounts()", "dimapAccounts()" },
00030     { "bool", "triggerSync(QString)", "triggerSync(QString)" },
00031     { "void", "changeResourceUIName(QString,QString)", "changeResourceUIName(QString folderPath,QString newName)" },
00032     { 0, 0, 0 }
00033 };
00034 static const int KMailICalIface_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 KMailICalIface::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>( KMailICalIface_fhash, true, false );
00057     for ( int i = 0; KMailICalIface_ftable[i][1]; i++ )
00058         fdict->insert( KMailICalIface_ftable[i][1],  new int( i ) );
00059     }
00060     int* fp = fdict->find( fun );
00061     switch ( fp?*fp:-1) {
00062     case 0: { // bool isWritableFolder(QString,QString)
00063     QString arg0;
00064     QString arg1;
00065     QDataStream arg( data, IO_ReadOnly );
00066     if (arg.atEnd()) return false;
00067     arg >> arg0;
00068     if (arg.atEnd()) return false;
00069     arg >> arg1;
00070     replyType = KMailICalIface_ftable[0][0]; 
00071     QDataStream _replyStream( replyData, IO_WriteOnly );
00072     _replyStream << isWritableFolder(arg0, arg1 );
00073     } break;
00074     case 1: { // KMailICalIface::StorageFormat storageFormat(QString)
00075     QString arg0;
00076     QDataStream arg( data, IO_ReadOnly );
00077     if (arg.atEnd()) return false;
00078     arg >> arg0;
00079     replyType = KMailICalIface_ftable[1][0]; 
00080     QDataStream _replyStream( replyData, IO_WriteOnly );
00081     _replyStream << storageFormat(arg0 );
00082     } break;
00083     case 2: { // KURL getAttachment(QString,Q_UINT32,QString)
00084     QString arg0;
00085     Q_UINT32 arg1;
00086     QString arg2;
00087     QDataStream arg( data, IO_ReadOnly );
00088     if (arg.atEnd()) return false;
00089     arg >> arg0;
00090     if (arg.atEnd()) return false;
00091     arg >> arg1;
00092     if (arg.atEnd()) return false;
00093     arg >> arg2;
00094     replyType = KMailICalIface_ftable[2][0]; 
00095     QDataStream _replyStream( replyData, IO_WriteOnly );
00096     _replyStream << getAttachment(arg0, arg1, arg2 );
00097     } break;
00098     case 3: { // QString attachmentMimetype(QString,Q_UINT32,QString)
00099     QString arg0;
00100     Q_UINT32 arg1;
00101     QString arg2;
00102     QDataStream arg( data, IO_ReadOnly );
00103     if (arg.atEnd()) return false;
00104     arg >> arg0;
00105     if (arg.atEnd()) return false;
00106     arg >> arg1;
00107     if (arg.atEnd()) return false;
00108     arg >> arg2;
00109     replyType = KMailICalIface_ftable[3][0]; 
00110     QDataStream _replyStream( replyData, IO_WriteOnly );
00111     _replyStream << attachmentMimetype(arg0, arg1, arg2 );
00112     } break;
00113     case 4: { // QStringList listAttachments(QString,Q_UINT32)
00114     QString arg0;
00115     Q_UINT32 arg1;
00116     QDataStream arg( data, IO_ReadOnly );
00117     if (arg.atEnd()) return false;
00118     arg >> arg0;
00119     if (arg.atEnd()) return false;
00120     arg >> arg1;
00121     replyType = KMailICalIface_ftable[4][0]; 
00122     QDataStream _replyStream( replyData, IO_WriteOnly );
00123     _replyStream << listAttachments(arg0, arg1 );
00124     } break;
00125     case 5: { // Q_UINT32 update(QString,Q_UINT32,QString,QString,QMap<QCString,QString>,QStringList,QStringList,QStringList,QStringList)
00126     QString arg0;
00127     Q_UINT32 arg1;
00128     QString arg2;
00129     QString arg3;
00130     QMap<QCString,QString> arg4;
00131     QStringList arg5;
00132     QStringList arg6;
00133     QStringList arg7;
00134     QStringList arg8;
00135     QDataStream arg( data, IO_ReadOnly );
00136     if (arg.atEnd()) return false;
00137     arg >> arg0;
00138     if (arg.atEnd()) return false;
00139     arg >> arg1;
00140     if (arg.atEnd()) return false;
00141     arg >> arg2;
00142     if (arg.atEnd()) return false;
00143     arg >> arg3;
00144     if (arg.atEnd()) return false;
00145     arg >> arg4;
00146     if (arg.atEnd()) return false;
00147     arg >> arg5;
00148     if (arg.atEnd()) return false;
00149     arg >> arg6;
00150     if (arg.atEnd()) return false;
00151     arg >> arg7;
00152     if (arg.atEnd()) return false;
00153     arg >> arg8;
00154     replyType = KMailICalIface_ftable[5][0]; 
00155     QDataStream _replyStream( replyData, IO_WriteOnly );
00156     _replyStream << update(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 );
00157     } break;
00158     case 6: { // bool deleteIncidenceKolab(QString,Q_UINT32)
00159     QString arg0;
00160     Q_UINT32 arg1;
00161     QDataStream arg( data, IO_ReadOnly );
00162     if (arg.atEnd()) return false;
00163     arg >> arg0;
00164     if (arg.atEnd()) return false;
00165     arg >> arg1;
00166     replyType = KMailICalIface_ftable[6][0]; 
00167     QDataStream _replyStream( replyData, IO_WriteOnly );
00168     _replyStream << deleteIncidenceKolab(arg0, arg1 );
00169     } break;
00170     case 7: { // int incidencesKolabCount(QString,QString)
00171     QString arg0;
00172     QString arg1;
00173     QDataStream arg( data, IO_ReadOnly );
00174     if (arg.atEnd()) return false;
00175     arg >> arg0;
00176     if (arg.atEnd()) return false;
00177     arg >> arg1;
00178     replyType = KMailICalIface_ftable[7][0]; 
00179     QDataStream _replyStream( replyData, IO_WriteOnly );
00180     _replyStream << incidencesKolabCount(arg0, arg1 );
00181     } break;
00182     case 8: { // QMap<Q_UINT32, QString> incidencesKolab(QString,QString,int,int)
00183     QString arg0;
00184     QString arg1;
00185     int arg2;
00186     int arg3;
00187     QDataStream arg( data, IO_ReadOnly );
00188     if (arg.atEnd()) return false;
00189     arg >> arg0;
00190     if (arg.atEnd()) return false;
00191     arg >> arg1;
00192     if (arg.atEnd()) return false;
00193     arg >> arg2;
00194     if (arg.atEnd()) return false;
00195     arg >> arg3;
00196     replyType = KMailICalIface_ftable[8][0]; 
00197     QDataStream _replyStream( replyData, IO_WriteOnly );
00198     _replyStream << incidencesKolab(arg0, arg1, arg2, arg3 );
00199     } break;
00200     case 9: { // QValueList<KMailICalIface::SubResource> subresourcesKolab(QString)
00201     QString arg0;
00202     QDataStream arg( data, IO_ReadOnly );
00203     if (arg.atEnd()) return false;
00204     arg >> arg0;
00205     replyType = KMailICalIface_ftable[9][0]; 
00206     QDataStream _replyStream( replyData, IO_WriteOnly );
00207     _replyStream << subresourcesKolab(arg0 );
00208     } break;
00209     case 10: { // bool addSubresource(QString,QString,QString)
00210     QString arg0;
00211     QString arg1;
00212     QString arg2;
00213     QDataStream arg( data, IO_ReadOnly );
00214     if (arg.atEnd()) return false;
00215     arg >> arg0;
00216     if (arg.atEnd()) return false;
00217     arg >> arg1;
00218     if (arg.atEnd()) return false;
00219     arg >> arg2;
00220     replyType = KMailICalIface_ftable[10][0]; 
00221     QDataStream _replyStream( replyData, IO_WriteOnly );
00222     _replyStream << addSubresource(arg0, arg1, arg2 );
00223     } break;
00224     case 11: { // bool removeSubresource(QString)
00225     QString arg0;
00226     QDataStream arg( data, IO_ReadOnly );
00227     if (arg.atEnd()) return false;
00228     arg >> arg0;
00229     replyType = KMailICalIface_ftable[11][0]; 
00230     QDataStream _replyStream( replyData, IO_WriteOnly );
00231     _replyStream << removeSubresource(arg0 );
00232     } break;
00233     case 12: { // int dimapAccounts()
00234     replyType = KMailICalIface_ftable[12][0]; 
00235     QDataStream _replyStream( replyData, IO_WriteOnly );
00236     _replyStream << dimapAccounts( );
00237     } break;
00238     case 13: { // bool triggerSync(QString)
00239     QString arg0;
00240     QDataStream arg( data, IO_ReadOnly );
00241     if (arg.atEnd()) return false;
00242     arg >> arg0;
00243     replyType = KMailICalIface_ftable[13][0]; 
00244     QDataStream _replyStream( replyData, IO_WriteOnly );
00245     _replyStream << triggerSync(arg0 );
00246     } break;
00247     case 14: { // void changeResourceUIName(QString,QString)
00248     QString arg0;
00249     QString arg1;
00250     QDataStream arg( data, IO_ReadOnly );
00251     if (arg.atEnd()) return false;
00252     arg >> arg0;
00253     if (arg.atEnd()) return false;
00254     arg >> arg1;
00255     replyType = KMailICalIface_ftable[14][0]; 
00256     changeResourceUIName(arg0, arg1 );
00257     } break;
00258     default: 
00259     return DCOPObject::process( fun, data, replyType, replyData );
00260     }
00261     return true;
00262 }
00263 
00264 QCStringList KMailICalIface::interfaces()
00265 {
00266     QCStringList ifaces = DCOPObject::interfaces();
00267     ifaces += "KMailICalIface";
00268     return ifaces;
00269 }
00270 
00271 QCStringList KMailICalIface::functions()
00272 {
00273     QCStringList funcs = DCOPObject::functions();
00274     for ( int i = 0; KMailICalIface_ftable[i][2]; i++ ) {
00275     if (KMailICalIface_ftable_hiddens[i])
00276         continue;
00277     QCString func = KMailICalIface_ftable[i][0];
00278     func += ' ';
00279     func += KMailICalIface_ftable[i][2];
00280     funcs << func;
00281     }
00282     return funcs;
00283 }
00284 
00285 void KMailICalIface::incidenceAdded( const QString& arg0, const QString& arg1, Q_UINT32 arg2, int arg3, const QString& arg4 )
00286 {
00287     QByteArray data;
00288     QDataStream arg( data, IO_WriteOnly );
00289     arg << arg0;
00290     arg << arg1;
00291     arg << arg2;
00292     arg << arg3;
00293     arg << arg4;
00294     emitDCOPSignal( "incidenceAdded(QString,QString,Q_UINT32,int,QString)", data );
00295 }
00296 
00297 void KMailICalIface::asyncLoadResult( const QMap<Q_UINT32,QString> arg0, const QString& arg1, const QString& arg2 )
00298 {
00299     QByteArray data;
00300     QDataStream arg( data, IO_WriteOnly );
00301     arg << arg0;
00302     arg << arg1;
00303     arg << arg2;
00304     emitDCOPSignal( "asyncLoadResult(QMap<Q_UINT32,QString>,QString,QString)", data );
00305 }
00306 
00307 void KMailICalIface::incidenceDeleted( const QString& arg0, const QString& arg1, const QString& arg2 )
00308 {
00309     QByteArray data;
00310     QDataStream arg( data, IO_WriteOnly );
00311     arg << arg0;
00312     arg << arg1;
00313     arg << arg2;
00314     emitDCOPSignal( "incidenceDeleted(QString,QString,QString)", data );
00315 }
00316 
00317 void KMailICalIface::signalRefresh( const QString& arg0, const QString& arg1 )
00318 {
00319     QByteArray data;
00320     QDataStream arg( data, IO_WriteOnly );
00321     arg << arg0;
00322     arg << arg1;
00323     emitDCOPSignal( "signalRefresh(QString,QString)", data );
00324 }
00325 
00326 void KMailICalIface::subresourceAdded( const QString& arg0, const QString& arg1, const QString& arg2, bool arg3, bool arg4 )
00327 {
00328     QByteArray data;
00329     QDataStream arg( data, IO_WriteOnly );
00330     arg << arg0;
00331     arg << arg1;
00332     arg << arg2;
00333     arg << arg3;
00334     arg << arg4;
00335     emitDCOPSignal( "subresourceAdded(QString,QString,QString,bool,bool)", data );
00336 }
00337 
00338 void KMailICalIface::subresourceDeleted( const QString& arg0, const QString& arg1 )
00339 {
00340     QByteArray data;
00341     QDataStream arg( data, IO_WriteOnly );
00342     arg << arg0;
00343     arg << arg1;
00344     emitDCOPSignal( "subresourceDeleted(QString,QString)", data );
00345 }
00346 
00347 
KDE Home | KDE Accessibility Home | Description of Access Keys