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 
00021 bool ViewStatusMsgDCOPInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00022 {
00023     if ( fun == ViewStatusMsgDCOPInterface_ftable[0][1] ) { // uint viewStatusMsgInterfaceNumber()
00024     replyType = ViewStatusMsgDCOPInterface_ftable[0][0]; 
00025     QDataStream _replyStream( replyData, IO_WriteOnly );
00026     _replyStream << viewStatusMsgInterfaceNumber( );
00027     } else if ( fun == ViewStatusMsgDCOPInterface_ftable[1][1] ) { // void viewStatusMsg(QString)
00028     QString arg0;
00029     QDataStream arg( data, IO_ReadOnly );
00030     arg >> arg0;
00031     replyType = ViewStatusMsgDCOPInterface_ftable[1][0]; 
00032     viewStatusMsg(arg0 );
00033     } else {
00034     return DCOPObject::process( fun, data, replyType, replyData );
00035     }
00036     return TRUE;
00037 }
00038 
00039 QCStringList ViewStatusMsgDCOPInterface::interfaces()
00040 {
00041     QCStringList ifaces = DCOPObject::interfaces();
00042     ifaces += "KTextEditor::ViewStatusMsgDCOPInterface";
00043     return ifaces;
00044 }
00045 
00046 QCStringList ViewStatusMsgDCOPInterface::functions()
00047 {
00048     QCStringList funcs = DCOPObject::functions();
00049     for ( int i = 0; ViewStatusMsgDCOPInterface_ftable[i][2]; i++ ) {
00050     QCString func = ViewStatusMsgDCOPInterface_ftable[i][0];
00051     func += ' ';
00052     func += ViewStatusMsgDCOPInterface_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.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:22:15 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001