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