kandy

kandyiface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from kandyiface.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./kandyiface.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const KandyIface_ftable[3][3] = {
00015     { "void", "syncPhonebooks()", "syncPhonebooks()" },
00016     { "void", "exit()", "exit()" },
00017     { 0, 0, 0 }
00018 };
00019 static const int KandyIface_ftable_hiddens[2] = {
00020     0,
00021     0,
00022 };
00023 
00024 bool KandyIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00025 {
00026     if ( fun == KandyIface_ftable[0][1] ) { // void syncPhonebooks()
00027     replyType = KandyIface_ftable[0][0]; 
00028     syncPhonebooks( );
00029     } else if ( fun == KandyIface_ftable[1][1] ) { // void exit()
00030     replyType = KandyIface_ftable[1][0]; 
00031     exit( );
00032     } else {
00033     return DCOPObject::process( fun, data, replyType, replyData );
00034     }
00035     return true;
00036 }
00037 
00038 QCStringList KandyIface::interfaces()
00039 {
00040     QCStringList ifaces = DCOPObject::interfaces();
00041     ifaces += "KandyIface";
00042     return ifaces;
00043 }
00044 
00045 QCStringList KandyIface::functions()
00046 {
00047     QCStringList funcs = DCOPObject::functions();
00048     for ( int i = 0; KandyIface_ftable[i][2]; i++ ) {
00049     if (KandyIface_ftable_hiddens[i])
00050         continue;
00051     QCString func = KandyIface_ftable[i][0];
00052     func += ' ';
00053     func += KandyIface_ftable[i][2];
00054     funcs << func;
00055     }
00056     return funcs;
00057 }
00058 
00059 
KDE Home | KDE Accessibility Home | Description of Access Keys