interfaces Library API Documentation

clipboarddcopinterface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created by dcopidl2cpp from clipboarddcopinterface.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./clipboarddcopinterface.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 namespace KTextEditor {
00014 
00015 static const char* const ClipboardDCOPInterface_ftable[4][3] = {
00016     { "void", "copy()", "copy()" },
00017     { "void", "cut()", "cut()" },
00018     { "void", "paste()", "paste()" },
00019     { 0, 0, 0 }
00020 };
00021 
00022 bool ClipboardDCOPInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00023 {
00024     if ( fun == ClipboardDCOPInterface_ftable[0][1] ) { // void copy()
00025     replyType = ClipboardDCOPInterface_ftable[0][0]; 
00026     copy( );
00027     } else if ( fun == ClipboardDCOPInterface_ftable[1][1] ) { // void cut()
00028     replyType = ClipboardDCOPInterface_ftable[1][0]; 
00029     cut( );
00030     } else if ( fun == ClipboardDCOPInterface_ftable[2][1] ) { // void paste()
00031     replyType = ClipboardDCOPInterface_ftable[2][0]; 
00032     paste( );
00033     } else {
00034     return DCOPObject::process( fun, data, replyType, replyData );
00035     }
00036     return TRUE;
00037 }
00038 
00039 QCStringList ClipboardDCOPInterface::interfaces()
00040 {
00041     QCStringList ifaces = DCOPObject::interfaces();
00042     ifaces += "KTextEditor::ClipboardDCOPInterface";
00043     return ifaces;
00044 }
00045 
00046 QCStringList ClipboardDCOPInterface::functions()
00047 {
00048     QCStringList funcs = DCOPObject::functions();
00049     for ( int i = 0; ClipboardDCOPInterface_ftable[i][2]; i++ ) {
00050     QCString func = ClipboardDCOPInterface_ftable[i][0];
00051     func += ' ';
00052     func += ClipboardDCOPInterface_ftable[i][2];
00053     funcs << func;
00054     }
00055     return funcs;
00056 }
00057 
00058 } // namespace
00059 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 27 22:16:14 2005 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001