konq_historycomm_skel.cc

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from konq_historycomm.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./konq_historycomm.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const KonqHistoryComm_ftable[8][3] = {
00015     { "ASYNC", "notifyHistoryEntry(KonqHistoryEntry,QCString)", "notifyHistoryEntry(KonqHistoryEntry e,QCString saveId)" },
00016     { "ASYNC", "notifyMaxCount(Q_UINT32,QCString)", "notifyMaxCount(Q_UINT32 count,QCString saveId)" },
00017     { "ASYNC", "notifyMaxAge(Q_UINT32,QCString)", "notifyMaxAge(Q_UINT32 days,QCString saveId)" },
00018     { "ASYNC", "notifyClear(QCString)", "notifyClear(QCString saveId)" },
00019     { "ASYNC", "notifyRemove(KURL,QCString)", "notifyRemove(KURL url,QCString saveId)" },
00020     { "ASYNC", "notifyRemove(KURL::List,QCString)", "notifyRemove(KURL::List url,QCString saveId)" },
00021     { "QStringList", "allURLs()", "allURLs()" },
00022     { 0, 0, 0 }
00023 };
00024 static const int KonqHistoryComm_ftable_hiddens[7] = {
00025     0,
00026     0,
00027     0,
00028     0,
00029     0,
00030     0,
00031     0,
00032 };
00033 
00034 bool KonqHistoryComm::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00035 {
00036     if ( fun == KonqHistoryComm_ftable[0][1] ) { // void notifyHistoryEntry(KonqHistoryEntry,QCString)
00037     KonqHistoryEntry arg0;
00038     QCString arg1;
00039     QDataStream arg( data, IO_ReadOnly );
00040     if (arg.atEnd()) return false;
00041     arg >> arg0;
00042     if (arg.atEnd()) return false;
00043     arg >> arg1;
00044     replyType = KonqHistoryComm_ftable[0][0]; 
00045     notifyHistoryEntry(arg0, arg1 );
00046     } else if ( fun == KonqHistoryComm_ftable[1][1] ) { // void notifyMaxCount(Q_UINT32,QCString)
00047     Q_UINT32 arg0;
00048     QCString arg1;
00049     QDataStream arg( data, IO_ReadOnly );
00050     if (arg.atEnd()) return false;
00051     arg >> arg0;
00052     if (arg.atEnd()) return false;
00053     arg >> arg1;
00054     replyType = KonqHistoryComm_ftable[1][0]; 
00055     notifyMaxCount(arg0, arg1 );
00056     } else if ( fun == KonqHistoryComm_ftable[2][1] ) { // void notifyMaxAge(Q_UINT32,QCString)
00057     Q_UINT32 arg0;
00058     QCString arg1;
00059     QDataStream arg( data, IO_ReadOnly );
00060     if (arg.atEnd()) return false;
00061     arg >> arg0;
00062     if (arg.atEnd()) return false;
00063     arg >> arg1;
00064     replyType = KonqHistoryComm_ftable[2][0]; 
00065     notifyMaxAge(arg0, arg1 );
00066     } else if ( fun == KonqHistoryComm_ftable[3][1] ) { // void notifyClear(QCString)
00067     QCString arg0;
00068     QDataStream arg( data, IO_ReadOnly );
00069     if (arg.atEnd()) return false;
00070     arg >> arg0;
00071     replyType = KonqHistoryComm_ftable[3][0]; 
00072     notifyClear(arg0 );
00073     } else if ( fun == KonqHistoryComm_ftable[4][1] ) { // void notifyRemove(KURL,QCString)
00074     KURL arg0;
00075     QCString arg1;
00076     QDataStream arg( data, IO_ReadOnly );
00077     if (arg.atEnd()) return false;
00078     arg >> arg0;
00079     if (arg.atEnd()) return false;
00080     arg >> arg1;
00081     replyType = KonqHistoryComm_ftable[4][0]; 
00082     notifyRemove(arg0, arg1 );
00083     } else if ( fun == KonqHistoryComm_ftable[5][1] ) { // void notifyRemove(KURL::List,QCString)
00084     KURL::List arg0;
00085     QCString arg1;
00086     QDataStream arg( data, IO_ReadOnly );
00087     if (arg.atEnd()) return false;
00088     arg >> arg0;
00089     if (arg.atEnd()) return false;
00090     arg >> arg1;
00091     replyType = KonqHistoryComm_ftable[5][0]; 
00092     notifyRemove(arg0, arg1 );
00093     } else if ( fun == KonqHistoryComm_ftable[6][1] ) { // QStringList allURLs()
00094     replyType = KonqHistoryComm_ftable[6][0]; 
00095     QDataStream _replyStream( replyData, IO_WriteOnly );
00096     _replyStream << allURLs( );
00097     } else {
00098     return DCOPObject::process( fun, data, replyType, replyData );
00099     }
00100     return true;
00101 }
00102 
00103 QCStringList KonqHistoryComm::interfaces()
00104 {
00105     QCStringList ifaces = DCOPObject::interfaces();
00106     ifaces += "KonqHistoryComm";
00107     return ifaces;
00108 }
00109 
00110 QCStringList KonqHistoryComm::functions()
00111 {
00112     QCStringList funcs = DCOPObject::functions();
00113     for ( int i = 0; KonqHistoryComm_ftable[i][2]; i++ ) {
00114     if (KonqHistoryComm_ftable_hiddens[i])
00115         continue;
00116     QCString func = KonqHistoryComm_ftable[i][0];
00117     func += ' ';
00118     func += KonqHistoryComm_ftable[i][2];
00119     funcs << func;
00120     }
00121     return funcs;
00122 }
00123 
00124 
KDE Home | KDE Accessibility Home | Description of Access Keys