akregator/src

akregator_partiface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from akregator_partiface.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./akregator_partiface.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 namespace Akregator {
00014 
00015 static const char* const AkregatorPartIface_ftable[8][3] = {
00016     { "void", "openStandardFeedList()", "openStandardFeedList()" },
00017     { "void", "fetchFeedUrl(QString)", "fetchFeedUrl(QString)" },
00018     { "void", "fetchAllFeeds()", "fetchAllFeeds()" },
00019     { "void", "saveSettings()", "saveSettings()" },
00020     { "void", "addFeedsToGroup(QStringList,QString)", "addFeedsToGroup(QStringList,QString)" },
00021     { "void", "exportFile(KURL)", "exportFile(KURL url)" },
00022     { "void", "addFeed()", "addFeed()" },
00023     { 0, 0, 0 }
00024 };
00025 static const int AkregatorPartIface_ftable_hiddens[7] = {
00026     0,
00027     0,
00028     0,
00029     0,
00030     0,
00031     0,
00032     0,
00033 };
00034 
00035 bool AkregatorPartIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00036 {
00037     if ( fun == AkregatorPartIface_ftable[0][1] ) { // void openStandardFeedList()
00038     replyType = AkregatorPartIface_ftable[0][0]; 
00039     openStandardFeedList( );
00040     } else if ( fun == AkregatorPartIface_ftable[1][1] ) { // void fetchFeedUrl(QString)
00041     QString arg0;
00042     QDataStream arg( data, IO_ReadOnly );
00043     if (arg.atEnd()) return false;
00044     arg >> arg0;
00045     replyType = AkregatorPartIface_ftable[1][0]; 
00046     fetchFeedUrl(arg0 );
00047     } else if ( fun == AkregatorPartIface_ftable[2][1] ) { // void fetchAllFeeds()
00048     replyType = AkregatorPartIface_ftable[2][0]; 
00049     fetchAllFeeds( );
00050     } else if ( fun == AkregatorPartIface_ftable[3][1] ) { // void saveSettings()
00051     replyType = AkregatorPartIface_ftable[3][0]; 
00052     saveSettings( );
00053     } else if ( fun == AkregatorPartIface_ftable[4][1] ) { // void addFeedsToGroup(QStringList,QString)
00054     QStringList arg0;
00055     QString arg1;
00056     QDataStream arg( data, IO_ReadOnly );
00057     if (arg.atEnd()) return false;
00058     arg >> arg0;
00059     if (arg.atEnd()) return false;
00060     arg >> arg1;
00061     replyType = AkregatorPartIface_ftable[4][0]; 
00062     addFeedsToGroup(arg0, arg1 );
00063     } else if ( fun == AkregatorPartIface_ftable[5][1] ) { // void exportFile(KURL)
00064     KURL arg0;
00065     QDataStream arg( data, IO_ReadOnly );
00066     if (arg.atEnd()) return false;
00067     arg >> arg0;
00068     replyType = AkregatorPartIface_ftable[5][0]; 
00069     exportFile(arg0 );
00070     } else if ( fun == AkregatorPartIface_ftable[6][1] ) { // void addFeed()
00071     replyType = AkregatorPartIface_ftable[6][0]; 
00072     addFeed( );
00073     } else {
00074     return DCOPObject::process( fun, data, replyType, replyData );
00075     }
00076     return true;
00077 }
00078 
00079 QCStringList AkregatorPartIface::interfaces()
00080 {
00081     QCStringList ifaces = DCOPObject::interfaces();
00082     ifaces += "Akregator::AkregatorPartIface";
00083     return ifaces;
00084 }
00085 
00086 QCStringList AkregatorPartIface::functions()
00087 {
00088     QCStringList funcs = DCOPObject::functions();
00089     for ( int i = 0; AkregatorPartIface_ftable[i][2]; i++ ) {
00090     if (AkregatorPartIface_ftable_hiddens[i])
00091         continue;
00092     QCString func = AkregatorPartIface_ftable[i][0];
00093     func += ' ';
00094     func += AkregatorPartIface_ftable[i][2];
00095     funcs << func;
00096     }
00097     return funcs;
00098 }
00099 
00100 } // namespace
00101 
KDE Home | KDE Accessibility Home | Description of Access Keys