kitchensync

pluckerinterface_skel.cpp

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