libkonq Library API Documentation

konq_undo_skel.cc

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created by dcopidl2cpp from konq_undo.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./konq_undo.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const KonqUndoManager_ftable[6][3] = {
00015     { "ASYNC", "push(KonqCommand)", "push(KonqCommand cmd)" },
00016     { "ASYNC", "pop()", "pop()" },
00017     { "ASYNC", "lock()", "lock()" },
00018     { "ASYNC", "unlock()", "unlock()" },
00019     { "KonqCommand::Stack", "get()", "get()" },
00020     { 0, 0, 0 }
00021 };
00022 static const int KonqUndoManager_ftable_hiddens[5] = {
00023     0,
00024     0,
00025     0,
00026     0,
00027     0,
00028 };
00029 
00030 bool KonqUndoManager::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00031 {
00032     if ( fun == KonqUndoManager_ftable[0][1] ) { // void push(KonqCommand)
00033     KonqCommand arg0;
00034     QDataStream arg( data, IO_ReadOnly );
00035     arg >> arg0;
00036     replyType = KonqUndoManager_ftable[0][0]; 
00037     push(arg0 );
00038     } else if ( fun == KonqUndoManager_ftable[1][1] ) { // void pop()
00039     replyType = KonqUndoManager_ftable[1][0]; 
00040     pop( );
00041     } else if ( fun == KonqUndoManager_ftable[2][1] ) { // void lock()
00042     replyType = KonqUndoManager_ftable[2][0]; 
00043     lock( );
00044     } else if ( fun == KonqUndoManager_ftable[3][1] ) { // void unlock()
00045     replyType = KonqUndoManager_ftable[3][0]; 
00046     unlock( );
00047     } else if ( fun == KonqUndoManager_ftable[4][1] ) { // KonqCommand::Stack get()
00048     replyType = KonqUndoManager_ftable[4][0]; 
00049     QDataStream _replyStream( replyData, IO_WriteOnly );
00050     _replyStream << get( );
00051     } else {
00052     return DCOPObject::process( fun, data, replyType, replyData );
00053     }
00054     return true;
00055 }
00056 
00057 QCStringList KonqUndoManager::interfaces()
00058 {
00059     QCStringList ifaces = DCOPObject::interfaces();
00060     ifaces += "KonqUndoManager";
00061     return ifaces;
00062 }
00063 
00064 QCStringList KonqUndoManager::functions()
00065 {
00066     QCStringList funcs = DCOPObject::functions();
00067     for ( int i = 0; KonqUndoManager_ftable[i][2]; i++ ) {
00068     if (KonqUndoManager_ftable_hiddens[i])
00069         continue;
00070     QCString func = KonqUndoManager_ftable[i][0];
00071     func += ' ';
00072     func += KonqUndoManager_ftable[i][2];
00073     funcs << func;
00074     }
00075     return funcs;
00076 }
00077 
00078 
KDE Logo
This file is part of the documentation for libkonq Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Sep 8 02:43:06 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003