kpilot/kpilot

pilotDaemonDCOP_skel.cc

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from pilotDaemonDCOP.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./pilotDaemonDCOP.h"
00010 
00011 #include <kdatastream.h>
00012 #include <qasciidict.h>
00013 
00014 
00015 static const int PilotDaemonDCOP_fhash = 23;
00016 static const char* const PilotDaemonDCOP_ftable[22][3] = {
00017     { "ASYNC", "requestSync(int)", "requestSync(int)" },
00018     { "ASYNC", "requestSyncType(QString)", "requestSyncType(QString)" },
00019     { "ASYNC", "requestFastSyncNext()", "requestFastSyncNext()" },
00020     { "ASYNC", "requestRegularSyncNext()", "requestRegularSyncNext()" },
00021     { "int", "nextSyncType()", "nextSyncType()" },
00022     { "ASYNC", "requestSyncOptions(bool,bool)", "requestSyncOptions(bool test,bool local)" },
00023     { "ASYNC", "quitNow()", "quitNow()" },
00024     { "ASYNC", "reloadSettings()", "reloadSettings()" },
00025     { "ASYNC", "setTempDevice(QString)", "setTempDevice(QString d)" },
00026     { "void", "stopListening()", "stopListening()" },
00027     { "void", "startListening()", "startListening()" },
00028     { "bool", "isListening()", "isListening()" },
00029     { "QString", "statusString()", "statusString()" },
00030     { "QString", "shortStatusString()", "shortStatusString()" },
00031     { "QDateTime", "lastSyncDate()", "lastSyncDate()" },
00032     { "QStringList", "configuredConduitList()", "configuredConduitList()" },
00033     { "QString", "logFileName()", "logFileName()" },
00034     { "QString", "userName()", "userName()" },
00035     { "QString", "pilotDevice()", "pilotDevice()" },
00036     { "bool", "killDaemonOnExit()", "killDaemonOnExit()" },
00037     { "void", "addInstallFiles(QStringList)", "addInstallFiles(QStringList)" },
00038     { 0, 0, 0 }
00039 };
00040 static const int PilotDaemonDCOP_ftable_hiddens[21] = {
00041     0,
00042     0,
00043     0,
00044     0,
00045     0,
00046     0,
00047     0,
00048     0,
00049     0,
00050     0,
00051     0,
00052     0,
00053     0,
00054     0,
00055     0,
00056     0,
00057     0,
00058     0,
00059     0,
00060     0,
00061     0,
00062 };
00063 
00064 bool PilotDaemonDCOP::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00065 {
00066     static QAsciiDict<int>* fdict = 0;
00067     if ( !fdict ) {
00068     fdict = new QAsciiDict<int>( PilotDaemonDCOP_fhash, true, false );
00069     for ( int i = 0; PilotDaemonDCOP_ftable[i][1]; i++ )
00070         fdict->insert( PilotDaemonDCOP_ftable[i][1],  new int( i ) );
00071     }
00072     int* fp = fdict->find( fun );
00073     switch ( fp?*fp:-1) {
00074     case 0: { // void requestSync(int)
00075     int arg0;
00076     QDataStream arg( data, IO_ReadOnly );
00077     if (arg.atEnd()) return false;
00078     arg >> arg0;
00079     replyType = PilotDaemonDCOP_ftable[0][0]; 
00080     requestSync(arg0 );
00081     } break;
00082     case 1: { // void requestSyncType(QString)
00083     QString arg0;
00084     QDataStream arg( data, IO_ReadOnly );
00085     if (arg.atEnd()) return false;
00086     arg >> arg0;
00087     replyType = PilotDaemonDCOP_ftable[1][0]; 
00088     requestSyncType(arg0 );
00089     } break;
00090     case 2: { // void requestFastSyncNext()
00091     replyType = PilotDaemonDCOP_ftable[2][0]; 
00092     requestFastSyncNext( );
00093     } break;
00094     case 3: { // void requestRegularSyncNext()
00095     replyType = PilotDaemonDCOP_ftable[3][0]; 
00096     requestRegularSyncNext( );
00097     } break;
00098     case 4: { // int nextSyncType()
00099     replyType = PilotDaemonDCOP_ftable[4][0]; 
00100     QDataStream _replyStream( replyData, IO_WriteOnly );
00101     _replyStream << nextSyncType( );
00102     } break;
00103     case 5: { // void requestSyncOptions(bool,bool)
00104     bool arg0;
00105     bool arg1;
00106     QDataStream arg( data, IO_ReadOnly );
00107     if (arg.atEnd()) return false;
00108     arg >> arg0;
00109     if (arg.atEnd()) return false;
00110     arg >> arg1;
00111     replyType = PilotDaemonDCOP_ftable[5][0]; 
00112     requestSyncOptions(arg0, arg1 );
00113     } break;
00114     case 6: { // void quitNow()
00115     replyType = PilotDaemonDCOP_ftable[6][0]; 
00116     quitNow( );
00117     } break;
00118     case 7: { // void reloadSettings()
00119     replyType = PilotDaemonDCOP_ftable[7][0]; 
00120     reloadSettings( );
00121     } break;
00122     case 8: { // void setTempDevice(QString)
00123     QString arg0;
00124     QDataStream arg( data, IO_ReadOnly );
00125     if (arg.atEnd()) return false;
00126     arg >> arg0;
00127     replyType = PilotDaemonDCOP_ftable[8][0]; 
00128     setTempDevice(arg0 );
00129     } break;
00130     case 9: { // void stopListening()
00131     replyType = PilotDaemonDCOP_ftable[9][0]; 
00132     stopListening( );
00133     } break;
00134     case 10: { // void startListening()
00135     replyType = PilotDaemonDCOP_ftable[10][0]; 
00136     startListening( );
00137     } break;
00138     case 11: { // bool isListening()
00139     replyType = PilotDaemonDCOP_ftable[11][0]; 
00140     QDataStream _replyStream( replyData, IO_WriteOnly );
00141     _replyStream << isListening( );
00142     } break;
00143     case 12: { // QString statusString()
00144     replyType = PilotDaemonDCOP_ftable[12][0]; 
00145     QDataStream _replyStream( replyData, IO_WriteOnly );
00146     _replyStream << statusString( );
00147     } break;
00148     case 13: { // QString shortStatusString()
00149     replyType = PilotDaemonDCOP_ftable[13][0]; 
00150     QDataStream _replyStream( replyData, IO_WriteOnly );
00151     _replyStream << shortStatusString( );
00152     } break;
00153     case 14: { // QDateTime lastSyncDate()
00154     replyType = PilotDaemonDCOP_ftable[14][0]; 
00155     QDataStream _replyStream( replyData, IO_WriteOnly );
00156     _replyStream << lastSyncDate( );
00157     } break;
00158     case 15: { // QStringList configuredConduitList()
00159     replyType = PilotDaemonDCOP_ftable[15][0]; 
00160     QDataStream _replyStream( replyData, IO_WriteOnly );
00161     _replyStream << configuredConduitList( );
00162     } break;
00163     case 16: { // QString logFileName()
00164     replyType = PilotDaemonDCOP_ftable[16][0]; 
00165     QDataStream _replyStream( replyData, IO_WriteOnly );
00166     _replyStream << logFileName( );
00167     } break;
00168     case 17: { // QString userName()
00169     replyType = PilotDaemonDCOP_ftable[17][0]; 
00170     QDataStream _replyStream( replyData, IO_WriteOnly );
00171     _replyStream << userName( );
00172     } break;
00173     case 18: { // QString pilotDevice()
00174     replyType = PilotDaemonDCOP_ftable[18][0]; 
00175     QDataStream _replyStream( replyData, IO_WriteOnly );
00176     _replyStream << pilotDevice( );
00177     } break;
00178     case 19: { // bool killDaemonOnExit()
00179     replyType = PilotDaemonDCOP_ftable[19][0]; 
00180     QDataStream _replyStream( replyData, IO_WriteOnly );
00181     _replyStream << killDaemonOnExit( );
00182     } break;
00183     case 20: { // void addInstallFiles(QStringList)
00184     QStringList arg0;
00185     QDataStream arg( data, IO_ReadOnly );
00186     if (arg.atEnd()) return false;
00187     arg >> arg0;
00188     replyType = PilotDaemonDCOP_ftable[20][0]; 
00189     addInstallFiles(arg0 );
00190     } break;
00191     default: 
00192     return DCOPObject::process( fun, data, replyType, replyData );
00193     }
00194     return true;
00195 }
00196 
00197 QCStringList PilotDaemonDCOP::interfaces()
00198 {
00199     QCStringList ifaces = DCOPObject::interfaces();
00200     ifaces += "PilotDaemonDCOP";
00201     return ifaces;
00202 }
00203 
00204 QCStringList PilotDaemonDCOP::functions()
00205 {
00206     QCStringList funcs = DCOPObject::functions();
00207     for ( int i = 0; PilotDaemonDCOP_ftable[i][2]; i++ ) {
00208     if (PilotDaemonDCOP_ftable_hiddens[i])
00209         continue;
00210     QCString func = PilotDaemonDCOP_ftable[i][0];
00211     func += ' ';
00212     func += PilotDaemonDCOP_ftable[i][2];
00213     funcs << func;
00214     }
00215     return funcs;
00216 }
00217 
00218 void PilotDaemonDCOP::kpilotDaemonStatusChanged()
00219 {
00220     QByteArray data;
00221     emitDCOPSignal( "kpilotDaemonStatusChanged()", data );
00222 }
00223 
00224 void PilotDaemonDCOP::kpilotDaemonStatusDetails( QDateTime arg0, QString arg1, QStringList arg2, QString arg3, QString arg4, QString arg5, bool arg6 )
00225 {
00226     QByteArray data;
00227     QDataStream arg( data, IO_WriteOnly );
00228     arg << arg0;
00229     arg << arg1;
00230     arg << arg2;
00231     arg << arg3;
00232     arg << arg4;
00233     arg << arg5;
00234     arg << arg6;
00235     emitDCOPSignal( "kpilotDaemonStatusDetails(QDateTime,QString,QStringList,QString,QString,QString,bool)", data );
00236 }
00237 
00238 
KDE Home | KDE Accessibility Home | Description of Access Keys