interfaces Library API Documentation

viewstatusmsgdcopinterface_skel.cpp

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton created by dcopidl2cpp from viewstatusmsgdcopinterface.kidl 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 00006 ** 00007 *****************************************************************************/ 00008 00009 #include "./viewstatusmsgdcopinterface.h" 00010 00011 #include <kdatastream.h> 00012 00013 namespace KTextEditor { 00014 00015 static const char* const ViewStatusMsgDCOPInterface_ftable[3][3] = { 00016 { "uint", "viewStatusMsgInterfaceNumber()", "viewStatusMsgInterfaceNumber()" }, 00017 { "void", "viewStatusMsg(QString)", "viewStatusMsg(QString msg)" }, 00018 { 0, 0, 0 } 00019 }; 00020 static const int ViewStatusMsgDCOPInterface_ftable_hiddens[2] = { 00021 0, 00022 0, 00023 }; 00024 00025 bool ViewStatusMsgDCOPInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) 00026 { 00027 if ( fun == ViewStatusMsgDCOPInterface_ftable[0][1] ) { // uint viewStatusMsgInterfaceNumber() 00028 replyType = ViewStatusMsgDCOPInterface_ftable[0][0]; 00029 QDataStream _replyStream( replyData, IO_WriteOnly ); 00030 _replyStream << viewStatusMsgInterfaceNumber( ); 00031 } else if ( fun == ViewStatusMsgDCOPInterface_ftable[1][1] ) { // void viewStatusMsg(QString) 00032 QString arg0; 00033 QDataStream arg( data, IO_ReadOnly ); 00034 arg >> arg0; 00035 replyType = ViewStatusMsgDCOPInterface_ftable[1][0]; 00036 viewStatusMsg(arg0 ); 00037 } else { 00038 return DCOPObject::process( fun, data, replyType, replyData ); 00039 } 00040 return true; 00041 } 00042 00043 QCStringList ViewStatusMsgDCOPInterface::interfaces() 00044 { 00045 QCStringList ifaces = DCOPObject::interfaces(); 00046 ifaces += "KTextEditor::ViewStatusMsgDCOPInterface"; 00047 return ifaces; 00048 } 00049 00050 QCStringList ViewStatusMsgDCOPInterface::functions() 00051 { 00052 QCStringList funcs = DCOPObject::functions(); 00053 for ( int i = 0; ViewStatusMsgDCOPInterface_ftable[i][2]; i++ ) { 00054 if (ViewStatusMsgDCOPInterface_ftable_hiddens[i]) 00055 continue; 00056 QCString func = ViewStatusMsgDCOPInterface_ftable[i][0]; 00057 func += ' '; 00058 func += ViewStatusMsgDCOPInterface_ftable[i][2]; 00059 funcs << func; 00060 } 00061 return funcs; 00062 } 00063 00064 } // namespace 00065
KDE Logo
This file is part of the documentation for interfaces Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 10 18:55:49 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003