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