00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "./kmailIface.h"
00010
00011 #include <kdatastream.h>
00012 #include <qasciidict.h>
00013
00014
00015 static const int KMailIface_fhash = 41;
00016 static const char* const KMailIface_ftable[39][3] = {
00017 { "void", "checkMail()", "checkMail()" },
00018 { "QStringList", "accounts()", "accounts()" },
00019 { "void", "checkAccount(QString)", "checkAccount(QString account)" },
00020 { "void", "openReader()", "openReader()" },
00021 { "int", "openComposer(QString,QString,QString,QString,QString,int,KURL)", "openComposer(QString to,QString cc,QString bcc,QString subject,QString body,int hidden,KURL messageFile)" },
00022 { "int", "openComposer(QString,QString,QString,QString,QString,int,KURL,KURL)", "openComposer(QString to,QString cc,QString bcc,QString subject,QString body,int hidden,KURL messageFile,KURL attachURL)" },
00023 { "int", "openComposer(QString,QString,QString,QString,QString,int,KURL,KURL::List)", "openComposer(QString to,QString cc,QString bcc,QString subject,QString body,int hidden,KURL messageFile,KURL::List attachURLs)" },
00024 { "int", "openComposer(QString,QString,QString,QString,QString,int,QString,QCString,QCString,QCString,QCString,QCString,QString,QCString)", "openComposer(QString to,QString cc,QString bcc,QString subject,QString body,int hidden,QString attachName,QCString attachCte,QCString attachData,QCString attachType,QCString attachSubType,QCString attachParamAttr,QString attachParamValue,QCString attachContDisp)" },
00025 { "int", "openComposer(QString,QString,QString,QString,QString,int,QString,QCString,QCString,QCString,QCString,QCString,QString,QCString,QCString)", "openComposer(QString to,QString cc,QString bcc,QString subject,QString body,int hidden,QString attachName,QCString attachCte,QCString attachData,QCString attachType,QCString attachSubType,QCString attachParamAttr,QString attachParamValue,QCString attachContDisp,QCString attachCharset)" },
00026 { "int", "openComposer(QString,QString,QString,QString,QString,int,QString,QCString,QCString,QCString,QCString,QCString,QString,QCString,QCString,uint)", "openComposer(QString to,QString cc,QString bcc,QString subject,QString body,int hidden,QString attachName,QCString attachCte,QCString attachData,QCString attachType,QCString attachSubType,QCString attachParamAttr,QString attachParamValue,QCString attachContDisp,QCString attachCharset,uint identity)" },
00027 { "DCOPRef", "openComposer(QString,QString,QString,QString,QString,bool)", "openComposer(QString to,QString cc,QString bcc,QString subject,QString body,bool hidden)" },
00028 { "int", "sendCertificate(QString,QByteArray)", "sendCertificate(QString to,QByteArray certData)" },
00029 { "void", "compactAllFolders()", "compactAllFolders()" },
00030 { "int", "dcopAddMessage(QString,QString,QString)", "dcopAddMessage(QString foldername,QString messagefile,QString MsgStatusFlags)" },
00031 { "int", "dcopAddMessage(QString,KURL,QString)", "dcopAddMessage(QString foldername,KURL messagefile,QString MsgStatusFlags)" },
00032 { "void", "showImportArchiveDialog()", "showImportArchiveDialog()" },
00033 { "QStringList", "folderList()", "folderList()" },
00034 { "DCOPRef", "getFolder(QString)", "getFolder(QString vpath)" },
00035 { "void", "selectFolder(QString)", "selectFolder(QString folder)" },
00036 { "bool", "canQueryClose()", "canQueryClose()" },
00037 { "void", "setDefaultTransport(QString)", "setDefaultTransport(QString transport)" },
00038 { "int", "timeOfLastMessageCountChange()", "timeOfLastMessageCountChange()" },
00039 { "void", "pauseBackgroundJobs()", "pauseBackgroundJobs()" },
00040 { "void", "resumeBackgroundJobs()", "resumeBackgroundJobs()" },
00041 { "void", "stopNetworkJobs()", "stopNetworkJobs()" },
00042 { "void", "resumeNetworkJobs()", "resumeNetworkJobs()" },
00043 { "DCOPRef", "newMessage(QString,QString,QString,bool,bool,KURL,KURL)", "newMessage(QString to,QString cc,QString bcc,bool hidden,bool useFolderId,KURL messageFile,KURL attachURL)" },
00044 { "bool", "showMail(Q_UINT32,QString)", "showMail(Q_UINT32 serialNumber,QString messageId)" },
00045 { "bool", "handleCommandLine(bool)", "handleCommandLine(bool noArgsOpensReader)" },
00046 { "bool", "firstStart()", "firstStart()" },
00047 { "QString", "getFrom(Q_UINT32)", "getFrom(Q_UINT32 serialNumber)" },
00048 { "QString", "debugScheduler()", "debugScheduler()" },
00049 { "QString", "debugSernum(Q_UINT32)", "debugSernum(Q_UINT32 serialNumber)" },
00050 { "int", "dcopAddMessage_fastImport(QString,QString,QString)", "dcopAddMessage_fastImport(QString foldername,QString messagefile,QString MsgStatusFlags)" },
00051 { "int", "dcopAddMessage_fastImport(QString,KURL,QString)", "dcopAddMessage_fastImport(QString foldername,KURL messagefile,QString MsgStatusFlags)" },
00052 { "void", "dcopResetAddMessage()", "dcopResetAddMessage()" },
00053 { "void", "loadProfile(QString)", "loadProfile(QString path)" },
00054 { "void", "saveToProfile(QString)", "saveToProfile(QString path)" },
00055 { 0, 0, 0 }
00056 };
00057 static const int KMailIface_ftable_hiddens[38] = {
00058 0,
00059 0,
00060 0,
00061 0,
00062 0,
00063 0,
00064 0,
00065 0,
00066 0,
00067 0,
00068 0,
00069 0,
00070 0,
00071 0,
00072 0,
00073 0,
00074 0,
00075 0,
00076 0,
00077 0,
00078 0,
00079 0,
00080 0,
00081 0,
00082 0,
00083 0,
00084 1,
00085 1,
00086 1,
00087 1,
00088 1,
00089 1,
00090 1,
00091 1,
00092 1,
00093 1,
00094 1,
00095 1,
00096 };
00097
00098 bool KMailIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00099 {
00100 static QAsciiDict<int>* fdict = 0;
00101 if ( !fdict ) {
00102 fdict = new QAsciiDict<int>( KMailIface_fhash, true, false );
00103 for ( int i = 0; KMailIface_ftable[i][1]; i++ )
00104 fdict->insert( KMailIface_ftable[i][1], new int( i ) );
00105 }
00106 int* fp = fdict->find( fun );
00107 switch ( fp?*fp:-1) {
00108 case 0: {
00109 replyType = KMailIface_ftable[0][0];
00110 checkMail( );
00111 } break;
00112 case 1: {
00113 replyType = KMailIface_ftable[1][0];
00114 QDataStream _replyStream( replyData, IO_WriteOnly );
00115 _replyStream << accounts( );
00116 } break;
00117 case 2: {
00118 QString arg0;
00119 QDataStream arg( data, IO_ReadOnly );
00120 if (arg.atEnd()) return false;
00121 arg >> arg0;
00122 replyType = KMailIface_ftable[2][0];
00123 checkAccount(arg0 );
00124 } break;
00125 case 3: {
00126 replyType = KMailIface_ftable[3][0];
00127 openReader( );
00128 } break;
00129 case 4: {
00130 QString arg0;
00131 QString arg1;
00132 QString arg2;
00133 QString arg3;
00134 QString arg4;
00135 int arg5;
00136 KURL arg6;
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 replyType = KMailIface_ftable[4][0];
00153 QDataStream _replyStream( replyData, IO_WriteOnly );
00154 _replyStream << openComposer(arg0, arg1, arg2, arg3, arg4, arg5, arg6 );
00155 } break;
00156 case 5: {
00157 QString arg0;
00158 QString arg1;
00159 QString arg2;
00160 QString arg3;
00161 QString arg4;
00162 int arg5;
00163 KURL arg6;
00164 KURL arg7;
00165 QDataStream arg( data, IO_ReadOnly );
00166 if (arg.atEnd()) return false;
00167 arg >> arg0;
00168 if (arg.atEnd()) return false;
00169 arg >> arg1;
00170 if (arg.atEnd()) return false;
00171 arg >> arg2;
00172 if (arg.atEnd()) return false;
00173 arg >> arg3;
00174 if (arg.atEnd()) return false;
00175 arg >> arg4;
00176 if (arg.atEnd()) return false;
00177 arg >> arg5;
00178 if (arg.atEnd()) return false;
00179 arg >> arg6;
00180 if (arg.atEnd()) return false;
00181 arg >> arg7;
00182 replyType = KMailIface_ftable[5][0];
00183 QDataStream _replyStream( replyData, IO_WriteOnly );
00184 _replyStream << openComposer(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 );
00185 } break;
00186 case 6: {
00187 QString arg0;
00188 QString arg1;
00189 QString arg2;
00190 QString arg3;
00191 QString arg4;
00192 int arg5;
00193 KURL arg6;
00194 KURL::List arg7;
00195 QDataStream arg( data, IO_ReadOnly );
00196 if (arg.atEnd()) return false;
00197 arg >> arg0;
00198 if (arg.atEnd()) return false;
00199 arg >> arg1;
00200 if (arg.atEnd()) return false;
00201 arg >> arg2;
00202 if (arg.atEnd()) return false;
00203 arg >> arg3;
00204 if (arg.atEnd()) return false;
00205 arg >> arg4;
00206 if (arg.atEnd()) return false;
00207 arg >> arg5;
00208 if (arg.atEnd()) return false;
00209 arg >> arg6;
00210 if (arg.atEnd()) return false;
00211 arg >> arg7;
00212 replyType = KMailIface_ftable[6][0];
00213 QDataStream _replyStream( replyData, IO_WriteOnly );
00214 _replyStream << openComposer(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 );
00215 } break;
00216 case 7: {
00217 QString arg0;
00218 QString arg1;
00219 QString arg2;
00220 QString arg3;
00221 QString arg4;
00222 int arg5;
00223 QString arg6;
00224 QCString arg7;
00225 QCString arg8;
00226 QCString arg9;
00227 QCString arg10;
00228 QCString arg11;
00229 QString arg12;
00230 QCString arg13;
00231 QDataStream arg( data, IO_ReadOnly );
00232 if (arg.atEnd()) return false;
00233 arg >> arg0;
00234 if (arg.atEnd()) return false;
00235 arg >> arg1;
00236 if (arg.atEnd()) return false;
00237 arg >> arg2;
00238 if (arg.atEnd()) return false;
00239 arg >> arg3;
00240 if (arg.atEnd()) return false;
00241 arg >> arg4;
00242 if (arg.atEnd()) return false;
00243 arg >> arg5;
00244 if (arg.atEnd()) return false;
00245 arg >> arg6;
00246 if (arg.atEnd()) return false;
00247 arg >> arg7;
00248 if (arg.atEnd()) return false;
00249 arg >> arg8;
00250 if (arg.atEnd()) return false;
00251 arg >> arg9;
00252 if (arg.atEnd()) return false;
00253 arg >> arg10;
00254 if (arg.atEnd()) return false;
00255 arg >> arg11;
00256 if (arg.atEnd()) return false;
00257 arg >> arg12;
00258 if (arg.atEnd()) return false;
00259 arg >> arg13;
00260 replyType = KMailIface_ftable[7][0];
00261 QDataStream _replyStream( replyData, IO_WriteOnly );
00262 _replyStream << openComposer(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13 );
00263 } break;
00264 case 8: {
00265 QString arg0;
00266 QString arg1;
00267 QString arg2;
00268 QString arg3;
00269 QString arg4;
00270 int arg5;
00271 QString arg6;
00272 QCString arg7;
00273 QCString arg8;
00274 QCString arg9;
00275 QCString arg10;
00276 QCString arg11;
00277 QString arg12;
00278 QCString arg13;
00279 QCString arg14;
00280 QDataStream arg( data, IO_ReadOnly );
00281 if (arg.atEnd()) return false;
00282 arg >> arg0;
00283 if (arg.atEnd()) return false;
00284 arg >> arg1;
00285 if (arg.atEnd()) return false;
00286 arg >> arg2;
00287 if (arg.atEnd()) return false;
00288 arg >> arg3;
00289 if (arg.atEnd()) return false;
00290 arg >> arg4;
00291 if (arg.atEnd()) return false;
00292 arg >> arg5;
00293 if (arg.atEnd()) return false;
00294 arg >> arg6;
00295 if (arg.atEnd()) return false;
00296 arg >> arg7;
00297 if (arg.atEnd()) return false;
00298 arg >> arg8;
00299 if (arg.atEnd()) return false;
00300 arg >> arg9;
00301 if (arg.atEnd()) return false;
00302 arg >> arg10;
00303 if (arg.atEnd()) return false;
00304 arg >> arg11;
00305 if (arg.atEnd()) return false;
00306 arg >> arg12;
00307 if (arg.atEnd()) return false;
00308 arg >> arg13;
00309 if (arg.atEnd()) return false;
00310 arg >> arg14;
00311 replyType = KMailIface_ftable[8][0];
00312 QDataStream _replyStream( replyData, IO_WriteOnly );
00313 _replyStream << openComposer(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14 );
00314 } break;
00315 case 9: {
00316 QString arg0;
00317 QString arg1;
00318 QString arg2;
00319 QString arg3;
00320 QString arg4;
00321 int arg5;
00322 QString arg6;
00323 QCString arg7;
00324 QCString arg8;
00325 QCString arg9;
00326 QCString arg10;
00327 QCString arg11;
00328 QString arg12;
00329 QCString arg13;
00330 QCString arg14;
00331 uint arg15;
00332 QDataStream arg( data, IO_ReadOnly );
00333 if (arg.atEnd()) return false;
00334 arg >> arg0;
00335 if (arg.atEnd()) return false;
00336 arg >> arg1;
00337 if (arg.atEnd()) return false;
00338 arg >> arg2;
00339 if (arg.atEnd()) return false;
00340 arg >> arg3;
00341 if (arg.atEnd()) return false;
00342 arg >> arg4;
00343 if (arg.atEnd()) return false;
00344 arg >> arg5;
00345 if (arg.atEnd()) return false;
00346 arg >> arg6;
00347 if (arg.atEnd()) return false;
00348 arg >> arg7;
00349 if (arg.atEnd()) return false;
00350 arg >> arg8;
00351 if (arg.atEnd()) return false;
00352 arg >> arg9;
00353 if (arg.atEnd()) return false;
00354 arg >> arg10;
00355 if (arg.atEnd()) return false;
00356 arg >> arg11;
00357 if (arg.atEnd()) return false;
00358 arg >> arg12;
00359 if (arg.atEnd()) return false;
00360 arg >> arg13;
00361 if (arg.atEnd()) return false;
00362 arg >> arg14;
00363 if (arg.atEnd()) return false;
00364 arg >> arg15;
00365 replyType = KMailIface_ftable[9][0];
00366 QDataStream _replyStream( replyData, IO_WriteOnly );
00367 _replyStream << openComposer(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15 );
00368 } break;
00369 case 10: {
00370 QString arg0;
00371 QString arg1;
00372 QString arg2;
00373 QString arg3;
00374 QString arg4;
00375 bool arg5;
00376 QDataStream arg( data, IO_ReadOnly );
00377 if (arg.atEnd()) return false;
00378 arg >> arg0;
00379 if (arg.atEnd()) return false;
00380 arg >> arg1;
00381 if (arg.atEnd()) return false;
00382 arg >> arg2;
00383 if (arg.atEnd()) return false;
00384 arg >> arg3;
00385 if (arg.atEnd()) return false;
00386 arg >> arg4;
00387 if (arg.atEnd()) return false;
00388 arg >> arg5;
00389 replyType = KMailIface_ftable[10][0];
00390 QDataStream _replyStream( replyData, IO_WriteOnly );
00391 _replyStream << openComposer(arg0, arg1, arg2, arg3, arg4, arg5 );
00392 } break;
00393 case 11: {
00394 QString arg0;
00395 QByteArray arg1;
00396 QDataStream arg( data, IO_ReadOnly );
00397 if (arg.atEnd()) return false;
00398 arg >> arg0;
00399 if (arg.atEnd()) return false;
00400 arg >> arg1;
00401 replyType = KMailIface_ftable[11][0];
00402 QDataStream _replyStream( replyData, IO_WriteOnly );
00403 _replyStream << sendCertificate(arg0, arg1 );
00404 } break;
00405 case 12: {
00406 replyType = KMailIface_ftable[12][0];
00407 compactAllFolders( );
00408 } break;
00409 case 13: {
00410 QString arg0;
00411 QString arg1;
00412 QString arg2;
00413 QDataStream arg( data, IO_ReadOnly );
00414 if (arg.atEnd()) return false;
00415 arg >> arg0;
00416 if (arg.atEnd()) return false;
00417 arg >> arg1;
00418 if (arg.atEnd()) return false;
00419 arg >> arg2;
00420 replyType = KMailIface_ftable[13][0];
00421 QDataStream _replyStream( replyData, IO_WriteOnly );
00422 _replyStream << dcopAddMessage(arg0, arg1, arg2 );
00423 } break;
00424 case 14: {
00425 QString arg0;
00426 KURL arg1;
00427 QString arg2;
00428 QDataStream arg( data, IO_ReadOnly );
00429 if (arg.atEnd()) return false;
00430 arg >> arg0;
00431 if (arg.atEnd()) return false;
00432 arg >> arg1;
00433 if (arg.atEnd()) return false;
00434 arg >> arg2;
00435 replyType = KMailIface_ftable[14][0];
00436 QDataStream _replyStream( replyData, IO_WriteOnly );
00437 _replyStream << dcopAddMessage(arg0, arg1, arg2 );
00438 } break;
00439 case 15: {
00440 replyType = KMailIface_ftable[15][0];
00441 showImportArchiveDialog( );
00442 } break;
00443 case 16: {
00444 replyType = KMailIface_ftable[16][0];
00445 QDataStream _replyStream( replyData, IO_WriteOnly );
00446 _replyStream << folderList( );
00447 } break;
00448 case 17: {
00449 QString arg0;
00450 QDataStream arg( data, IO_ReadOnly );
00451 if (arg.atEnd()) return false;
00452 arg >> arg0;
00453 replyType = KMailIface_ftable[17][0];
00454 QDataStream _replyStream( replyData, IO_WriteOnly );
00455 _replyStream << getFolder(arg0 );
00456 } break;
00457 case 18: {
00458 QString arg0;
00459 QDataStream arg( data, IO_ReadOnly );
00460 if (arg.atEnd()) return false;
00461 arg >> arg0;
00462 replyType = KMailIface_ftable[18][0];
00463 selectFolder(arg0 );
00464 } break;
00465 case 19: {
00466 replyType = KMailIface_ftable[19][0];
00467 QDataStream _replyStream( replyData, IO_WriteOnly );
00468 _replyStream << canQueryClose( );
00469 } break;
00470 case 20: {
00471 QString arg0;
00472 QDataStream arg( data, IO_ReadOnly );
00473 if (arg.atEnd()) return false;
00474 arg >> arg0;
00475 replyType = KMailIface_ftable[20][0];
00476 setDefaultTransport(arg0 );
00477 } break;
00478 case 21: {
00479 replyType = KMailIface_ftable[21][0];
00480 QDataStream _replyStream( replyData, IO_WriteOnly );
00481 _replyStream << timeOfLastMessageCountChange( );
00482 } break;
00483 case 22: {
00484 replyType = KMailIface_ftable[22][0];
00485 pauseBackgroundJobs( );
00486 } break;
00487 case 23: {
00488 replyType = KMailIface_ftable[23][0];
00489 resumeBackgroundJobs( );
00490 } break;
00491 case 24: {
00492 replyType = KMailIface_ftable[24][0];
00493 stopNetworkJobs( );
00494 } break;
00495 case 25: {
00496 replyType = KMailIface_ftable[25][0];
00497 resumeNetworkJobs( );
00498 } break;
00499 case 26: {
00500 QString arg0;
00501 QString arg1;
00502 QString arg2;
00503 bool arg3;
00504 bool arg4;
00505 KURL arg5;
00506 KURL arg6;
00507 QDataStream arg( data, IO_ReadOnly );
00508 if (arg.atEnd()) return false;
00509 arg >> arg0;
00510 if (arg.atEnd()) return false;
00511 arg >> arg1;
00512 if (arg.atEnd()) return false;
00513 arg >> arg2;
00514 if (arg.atEnd()) return false;
00515 arg >> arg3;
00516 if (arg.atEnd()) return false;
00517 arg >> arg4;
00518 if (arg.atEnd()) return false;
00519 arg >> arg5;
00520 if (arg.atEnd()) return false;
00521 arg >> arg6;
00522 replyType = KMailIface_ftable[26][0];
00523 QDataStream _replyStream( replyData, IO_WriteOnly );
00524 _replyStream << newMessage(arg0, arg1, arg2, arg3, arg4, arg5, arg6 );
00525 } break;
00526 case 27: {
00527 Q_UINT32 arg0;
00528 QString arg1;
00529 QDataStream arg( data, IO_ReadOnly );
00530 if (arg.atEnd()) return false;
00531 arg >> arg0;
00532 if (arg.atEnd()) return false;
00533 arg >> arg1;
00534 replyType = KMailIface_ftable[27][0];
00535 QDataStream _replyStream( replyData, IO_WriteOnly );
00536 _replyStream << showMail(arg0, arg1 );
00537 } break;
00538 case 28: {
00539 bool arg0;
00540 QDataStream arg( data, IO_ReadOnly );
00541 if (arg.atEnd()) return false;
00542 arg >> arg0;
00543 replyType = KMailIface_ftable[28][0];
00544 QDataStream _replyStream( replyData, IO_WriteOnly );
00545 _replyStream << handleCommandLine(arg0 );
00546 } break;
00547 case 29: {
00548 replyType = KMailIface_ftable[29][0];
00549 QDataStream _replyStream( replyData, IO_WriteOnly );
00550 _replyStream << firstStart( );
00551 } break;
00552 case 30: {
00553 Q_UINT32 arg0;
00554 QDataStream arg( data, IO_ReadOnly );
00555 if (arg.atEnd()) return false;
00556 arg >> arg0;
00557 replyType = KMailIface_ftable[30][0];
00558 QDataStream _replyStream( replyData, IO_WriteOnly );
00559 _replyStream << getFrom(arg0 );
00560 } break;
00561 case 31: {
00562 replyType = KMailIface_ftable[31][0];
00563 QDataStream _replyStream( replyData, IO_WriteOnly );
00564 _replyStream << debugScheduler( );
00565 } break;
00566 case 32: {
00567 Q_UINT32 arg0;
00568 QDataStream arg( data, IO_ReadOnly );
00569 if (arg.atEnd()) return false;
00570 arg >> arg0;
00571 replyType = KMailIface_ftable[32][0];
00572 QDataStream _replyStream( replyData, IO_WriteOnly );
00573 _replyStream << debugSernum(arg0 );
00574 } break;
00575 case 33: {
00576 QString arg0;
00577 QString arg1;
00578 QString arg2;
00579 QDataStream arg( data, IO_ReadOnly );
00580 if (arg.atEnd()) return false;
00581 arg >> arg0;
00582 if (arg.atEnd()) return false;
00583 arg >> arg1;
00584 if (arg.atEnd()) return false;
00585 arg >> arg2;
00586 replyType = KMailIface_ftable[33][0];
00587 QDataStream _replyStream( replyData, IO_WriteOnly );
00588 _replyStream << dcopAddMessage_fastImport(arg0, arg1, arg2 );
00589 } break;
00590 case 34: {
00591 QString arg0;
00592 KURL arg1;
00593 QString arg2;
00594 QDataStream arg( data, IO_ReadOnly );
00595 if (arg.atEnd()) return false;
00596 arg >> arg0;
00597 if (arg.atEnd()) return false;
00598 arg >> arg1;
00599 if (arg.atEnd()) return false;
00600 arg >> arg2;
00601 replyType = KMailIface_ftable[34][0];
00602 QDataStream _replyStream( replyData, IO_WriteOnly );
00603 _replyStream << dcopAddMessage_fastImport(arg0, arg1, arg2 );
00604 } break;
00605 case 35: {
00606 replyType = KMailIface_ftable[35][0];
00607 dcopResetAddMessage( );
00608 } break;
00609 case 36: {
00610 QString arg0;
00611 QDataStream arg( data, IO_ReadOnly );
00612 if (arg.atEnd()) return false;
00613 arg >> arg0;
00614 replyType = KMailIface_ftable[36][0];
00615 loadProfile(arg0 );
00616 } break;
00617 case 37: {
00618 QString arg0;
00619 QDataStream arg( data, IO_ReadOnly );
00620 if (arg.atEnd()) return false;
00621 arg >> arg0;
00622 replyType = KMailIface_ftable[37][0];
00623 saveToProfile(arg0 );
00624 } break;
00625 default:
00626 return DCOPObject::process( fun, data, replyType, replyData );
00627 }
00628 return true;
00629 }
00630
00631 QCStringList KMailIface::interfaces()
00632 {
00633 QCStringList ifaces = DCOPObject::interfaces();
00634 ifaces += "KMailIface";
00635 return ifaces;
00636 }
00637
00638 QCStringList KMailIface::functions()
00639 {
00640 QCStringList funcs = DCOPObject::functions();
00641 for ( int i = 0; KMailIface_ftable[i][2]; i++ ) {
00642 if (KMailIface_ftable_hiddens[i])
00643 continue;
00644 QCString func = KMailIface_ftable[i][0];
00645 func += ' ';
00646 func += KMailIface_ftable[i][2];
00647 funcs << func;
00648 }
00649 return funcs;
00650 }
00651
00652 void KMailIface::unreadCountChanged()
00653 {
00654 QByteArray data;
00655 emitDCOPSignal( "unreadCountChanged()", data );
00656 }
00657
00658 void KMailIface::unreadCountChanged( const QString& arg0, int arg1 )
00659 {
00660 QByteArray data;
00661 QDataStream arg( data, IO_WriteOnly );
00662 arg << arg0;
00663 arg << arg1;
00664 emitDCOPSignal( "unreadCountChanged(QString,int)", data );
00665 }
00666
00667