viewstatusmsgdcopinterface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated 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     if (arg.atEnd()) return false;
00035     arg >> arg0;
00036     replyType = ViewStatusMsgDCOPInterface_ftable[1][0]; 
00037     viewStatusMsg(arg0 );
00038     } else {
00039     return DCOPObject::process( fun, data, replyType, replyData );
00040     }
00041     return true;
00042 }
00043 
00044 QCStringList ViewStatusMsgDCOPInterface::interfaces()
00045 {
00046     QCStringList ifaces = DCOPObject::interfaces();
00047     ifaces += "KTextEditor::ViewStatusMsgDCOPInterface";
00048     return ifaces;
00049 }
00050 
00051 QCStringList ViewStatusMsgDCOPInterface::functions()
00052 {
00053     QCStringList funcs = DCOPObject::functions();
00054     for ( int i = 0; ViewStatusMsgDCOPInterface_ftable[i][2]; i++ ) {
00055     if (ViewStatusMsgDCOPInterface_ftable_hiddens[i])
00056         continue;
00057     QCString func = ViewStatusMsgDCOPInterface_ftable[i][0];
00058     func += ' ';
00059     func += ViewStatusMsgDCOPInterface_ftable[i][2];
00060     funcs << func;
00061     }
00062     return funcs;
00063 }
00064 
00065 } // namespace
00066 
KDE Home | KDE Accessibility Home | Description of Access Keys