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