interfaces Library API Documentation

clipboarddcopinterface_skel.cpp

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton generated 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 static const int ClipboardDCOPInterface_ftable_hiddens[3] = { 00022 0, 00023 0, 00024 0, 00025 }; 00026 00027 bool ClipboardDCOPInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) 00028 { 00029 if ( fun == ClipboardDCOPInterface_ftable[0][1] ) { // void copy() 00030 replyType = ClipboardDCOPInterface_ftable[0][0]; 00031 copy( ); 00032 } else if ( fun == ClipboardDCOPInterface_ftable[1][1] ) { // void cut() 00033 replyType = ClipboardDCOPInterface_ftable[1][0]; 00034 cut( ); 00035 } else if ( fun == ClipboardDCOPInterface_ftable[2][1] ) { // void paste() 00036 replyType = ClipboardDCOPInterface_ftable[2][0]; 00037 paste( ); 00038 } else { 00039 return DCOPObject::process( fun, data, replyType, replyData ); 00040 } 00041 return true; 00042 } 00043 00044 QCStringList ClipboardDCOPInterface::interfaces() 00045 { 00046 QCStringList ifaces = DCOPObject::interfaces(); 00047 ifaces += "KTextEditor::ClipboardDCOPInterface"; 00048 return ifaces; 00049 } 00050 00051 QCStringList ClipboardDCOPInterface::functions() 00052 { 00053 QCStringList funcs = DCOPObject::functions(); 00054 for ( int i = 0; ClipboardDCOPInterface_ftable[i][2]; i++ ) { 00055 if (ClipboardDCOPInterface_ftable_hiddens[i]) 00056 continue; 00057 QCString func = ClipboardDCOPInterface_ftable[i][0]; 00058 func += ' '; 00059 func += ClipboardDCOPInterface_ftable[i][2]; 00060 funcs << func; 00061 } 00062 return funcs; 00063 } 00064 00065 } // namespace 00066
KDE Logo
This file is part of the documentation for interfaces Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Apr 12 23:37:11 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003