kmfactory_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from kmfactory.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./kmfactory.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const KMFactory_ftable[3][3] = {
00015     { "ASYNC", "slot_pluginChanged(pid_t)", "slot_pluginChanged(pid_t)" },
00016     { "ASYNC", "slot_configChanged()", "slot_configChanged()" },
00017     { 0, 0, 0 }
00018 };
00019 static const int KMFactory_ftable_hiddens[2] = {
00020     0,
00021     0,
00022 };
00023 
00024 bool KMFactory::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00025 {
00026     if ( fun == KMFactory_ftable[0][1] ) { // void slot_pluginChanged(pid_t)
00027     pid_t arg0;
00028     QDataStream arg( data, IO_ReadOnly );
00029     if (arg.atEnd()) return false;
00030     arg >> arg0;
00031     replyType = KMFactory_ftable[0][0]; 
00032     slot_pluginChanged(arg0 );
00033     } else if ( fun == KMFactory_ftable[1][1] ) { // void slot_configChanged()
00034     replyType = KMFactory_ftable[1][0]; 
00035     slot_configChanged( );
00036     } else {
00037     return DCOPObject::process( fun, data, replyType, replyData );
00038     }
00039     return true;
00040 }
00041 
00042 QCStringList KMFactory::interfaces()
00043 {
00044     QCStringList ifaces = DCOPObject::interfaces();
00045     ifaces += "KMFactory";
00046     return ifaces;
00047 }
00048 
00049 QCStringList KMFactory::functions()
00050 {
00051     QCStringList funcs = DCOPObject::functions();
00052     for ( int i = 0; KMFactory_ftable[i][2]; i++ ) {
00053     if (KMFactory_ftable_hiddens[i])
00054         continue;
00055     QCString func = KMFactory_ftable[i][0];
00056     func += ' ';
00057     func += KMFactory_ftable[i][2];
00058     funcs << func;
00059     }
00060     return funcs;
00061 }
00062 
00063 void KMFactory::pluginChanged( pid_t arg0 )
00064 {
00065     QByteArray data;
00066     QDataStream arg( data, IO_WriteOnly );
00067     arg << arg0;
00068     emitDCOPSignal( "pluginChanged(pid_t)", data );
00069 }
00070 
00071 void KMFactory::configChanged()
00072 {
00073     QByteArray data;
00074     emitDCOPSignal( "configChanged()", data );
00075 }
00076 
00077 
KDE Home | KDE Accessibility Home | Description of Access Keys