lib Library API Documentation

KoViewIface_skel.cc

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created by dcopidl2cpp from KoViewIface.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./KoViewIface.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const KoViewIface_ftable[4][3] = {
00015     { "DCOPRef", "action(QCString)", "action(QCString name)" },
00016     { "QCStringList", "actions()", "actions()" },
00017     { "QMap<QCString,DCOPRef>", "actionMap()", "actionMap()" },
00018     { 0, 0, 0 }
00019 };
00020 static const int KoViewIface_ftable_hiddens[3] = {
00021     0,
00022     0,
00023     0,
00024 };
00025 
00026 bool KoViewIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00027 {
00028     if ( fun == KoViewIface_ftable[0][1] ) { // DCOPRef action(QCString)
00029     QCString arg0;
00030     QDataStream arg( data, IO_ReadOnly );
00031     arg >> arg0;
00032     replyType = KoViewIface_ftable[0][0]; 
00033     QDataStream _replyStream( replyData, IO_WriteOnly );
00034     _replyStream << action(arg0 );
00035     } else if ( fun == KoViewIface_ftable[1][1] ) { // QCStringList actions()
00036     replyType = KoViewIface_ftable[1][0]; 
00037     QDataStream _replyStream( replyData, IO_WriteOnly );
00038     _replyStream << actions( );
00039     } else if ( fun == KoViewIface_ftable[2][1] ) { // QMap<QCString,DCOPRef> actionMap()
00040     replyType = KoViewIface_ftable[2][0]; 
00041     QDataStream _replyStream( replyData, IO_WriteOnly );
00042     _replyStream << actionMap( );
00043     } else {
00044     return DCOPObject::process( fun, data, replyType, replyData );
00045     }
00046     return true;
00047 }
00048 
00049 QCStringList KoViewIface::interfaces()
00050 {
00051     QCStringList ifaces = DCOPObject::interfaces();
00052     ifaces += "KoViewIface";
00053     return ifaces;
00054 }
00055 
00056 QCStringList KoViewIface::functions()
00057 {
00058     QCStringList funcs = DCOPObject::functions();
00059     for ( int i = 0; KoViewIface_ftable[i][2]; i++ ) {
00060     if (KoViewIface_ftable_hiddens[i])
00061         continue;
00062     QCString func = KoViewIface_ftable[i][0];
00063     func += ' ';
00064     func += KoViewIface_ftable[i][2];
00065     funcs << func;
00066     }
00067     return funcs;
00068 }
00069 
00070 
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Mar 11 11:47:45 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003