konq_undo_skel.cc

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated 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     if (arg.atEnd()) return false;
00036     arg >> arg0;
00037     replyType = KonqUndoManager_ftable[0][0]; 
00038     push(arg0 );
00039     } else if ( fun == KonqUndoManager_ftable[1][1] ) { // void pop()
00040     replyType = KonqUndoManager_ftable[1][0]; 
00041     pop( );
00042     } else if ( fun == KonqUndoManager_ftable[2][1] ) { // void lock()
00043     replyType = KonqUndoManager_ftable[2][0]; 
00044     lock( );
00045     } else if ( fun == KonqUndoManager_ftable[3][1] ) { // void unlock()
00046     replyType = KonqUndoManager_ftable[3][0]; 
00047     unlock( );
00048     } else if ( fun == KonqUndoManager_ftable[4][1] ) { // KonqCommand::Stack get()
00049     replyType = KonqUndoManager_ftable[4][0]; 
00050     QDataStream _replyStream( replyData, IO_WriteOnly );
00051     _replyStream << get( );
00052     } else {
00053     return DCOPObject::process( fun, data, replyType, replyData );
00054     }
00055     return true;
00056 }
00057 
00058 QCStringList KonqUndoManager::interfaces()
00059 {
00060     QCStringList ifaces = DCOPObject::interfaces();
00061     ifaces += "KonqUndoManager";
00062     return ifaces;
00063 }
00064 
00065 QCStringList KonqUndoManager::functions()
00066 {
00067     QCStringList funcs = DCOPObject::functions();
00068     for ( int i = 0; KonqUndoManager_ftable[i][2]; i++ ) {
00069     if (KonqUndoManager_ftable_hiddens[i])
00070         continue;
00071     QCString func = KonqUndoManager_ftable[i][0];
00072     func += ' ';
00073     func += KonqUndoManager_ftable[i][2];
00074     funcs << func;
00075     }
00076     return funcs;
00077 }
00078 
00079 
KDE Home | KDE Accessibility Home | Description of Access Keys