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