libkonq Library API Documentation

konq_historycomm_skel.cc

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created 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     arg >> arg0;
00041     arg >> arg1;
00042     replyType = KonqHistoryComm_ftable[0][0]; 
00043     notifyHistoryEntry(arg0, arg1 );
00044     } else if ( fun == KonqHistoryComm_ftable[1][1] ) { // void notifyMaxCount(Q_UINT32,QCString)
00045     Q_UINT32 arg0;
00046     QCString arg1;
00047     QDataStream arg( data, IO_ReadOnly );
00048     arg >> arg0;
00049     arg >> arg1;
00050     replyType = KonqHistoryComm_ftable[1][0]; 
00051     notifyMaxCount(arg0, arg1 );
00052     } else if ( fun == KonqHistoryComm_ftable[2][1] ) { // void notifyMaxAge(Q_UINT32,QCString)
00053     Q_UINT32 arg0;
00054     QCString arg1;
00055     QDataStream arg( data, IO_ReadOnly );
00056     arg >> arg0;
00057     arg >> arg1;
00058     replyType = KonqHistoryComm_ftable[2][0]; 
00059     notifyMaxAge(arg0, arg1 );
00060     } else if ( fun == KonqHistoryComm_ftable[3][1] ) { // void notifyClear(QCString)
00061     QCString arg0;
00062     QDataStream arg( data, IO_ReadOnly );
00063     arg >> arg0;
00064     replyType = KonqHistoryComm_ftable[3][0]; 
00065     notifyClear(arg0 );
00066     } else if ( fun == KonqHistoryComm_ftable[4][1] ) { // void notifyRemove(KURL,QCString)
00067     KURL arg0;
00068     QCString arg1;
00069     QDataStream arg( data, IO_ReadOnly );
00070     arg >> arg0;
00071     arg >> arg1;
00072     replyType = KonqHistoryComm_ftable[4][0]; 
00073     notifyRemove(arg0, arg1 );
00074     } else if ( fun == KonqHistoryComm_ftable[5][1] ) { // void notifyRemove(KURL::List,QCString)
00075     KURL::List arg0;
00076     QCString arg1;
00077     QDataStream arg( data, IO_ReadOnly );
00078     arg >> arg0;
00079     arg >> arg1;
00080     replyType = KonqHistoryComm_ftable[5][0]; 
00081     notifyRemove(arg0, arg1 );
00082     } else if ( fun == KonqHistoryComm_ftable[6][1] ) { // QStringList allURLs()
00083     replyType = KonqHistoryComm_ftable[6][0]; 
00084     QDataStream _replyStream( replyData, IO_WriteOnly );
00085     _replyStream << allURLs( );
00086     } else {
00087     return DCOPObject::process( fun, data, replyType, replyData );
00088     }
00089     return true;
00090 }
00091 
00092 QCStringList KonqHistoryComm::interfaces()
00093 {
00094     QCStringList ifaces = DCOPObject::interfaces();
00095     ifaces += "KonqHistoryComm";
00096     return ifaces;
00097 }
00098 
00099 QCStringList KonqHistoryComm::functions()
00100 {
00101     QCStringList funcs = DCOPObject::functions();
00102     for ( int i = 0; KonqHistoryComm_ftable[i][2]; i++ ) {
00103     if (KonqHistoryComm_ftable_hiddens[i])
00104         continue;
00105     QCString func = KonqHistoryComm_ftable[i][0];
00106     func += ' ';
00107     func += KonqHistoryComm_ftable[i][2];
00108     funcs << func;
00109     }
00110     return funcs;
00111 }
00112 
00113 
KDE Logo
This file is part of the documentation for libkonq Library Version 3.3.90.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Apr 5 03:59:19 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003