• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kutils

kcmoduleproxyIface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton generated by dcopidl2cpp from kcmoduleproxyIface.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./kcmoduleproxyIface.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const KCModuleProxyIface_ftable[7][3] = {
00015     { "QString", "applicationName()", "applicationName()" },
00016     { "void", "save()", "save()" },
00017     { "void", "load()", "load()" },
00018     { "void", "defaults()", "defaults()" },
00019     { "QString", "quickHelp()", "quickHelp()" },
00020     { "bool", "changed()", "changed()" },
00021     { 0, 0, 0 }
00022 };
00023 static const int KCModuleProxyIface_ftable_hiddens[6] = {
00024     0,
00025     0,
00026     0,
00027     0,
00028     0,
00029     0,
00030 };
00031 
00032 bool KCModuleProxyIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00033 {
00034     if ( fun == KCModuleProxyIface_ftable[0][1] ) { // QString applicationName()
00035     replyType = KCModuleProxyIface_ftable[0][0]; 
00036     QDataStream _replyStream( replyData, IO_WriteOnly );
00037     _replyStream << applicationName( );
00038     } else if ( fun == KCModuleProxyIface_ftable[1][1] ) { // void save()
00039     replyType = KCModuleProxyIface_ftable[1][0]; 
00040     save( );
00041     } else if ( fun == KCModuleProxyIface_ftable[2][1] ) { // void load()
00042     replyType = KCModuleProxyIface_ftable[2][0]; 
00043     load( );
00044     } else if ( fun == KCModuleProxyIface_ftable[3][1] ) { // void defaults()
00045     replyType = KCModuleProxyIface_ftable[3][0]; 
00046     defaults( );
00047     } else if ( fun == KCModuleProxyIface_ftable[4][1] ) { // QString quickHelp()
00048     replyType = KCModuleProxyIface_ftable[4][0]; 
00049     QDataStream _replyStream( replyData, IO_WriteOnly );
00050     _replyStream << quickHelp( );
00051     } else if ( fun == KCModuleProxyIface_ftable[5][1] ) { // bool changed()
00052     replyType = KCModuleProxyIface_ftable[5][0]; 
00053     QDataStream _replyStream( replyData, IO_WriteOnly );
00054     _replyStream << changed( );
00055     } else {
00056     return DCOPObject::process( fun, data, replyType, replyData );
00057     }
00058     return true;
00059 }
00060 
00061 QCStringList KCModuleProxyIface::interfaces()
00062 {
00063     QCStringList ifaces = DCOPObject::interfaces();
00064     ifaces += "KCModuleProxyIface";
00065     return ifaces;
00066 }
00067 
00068 QCStringList KCModuleProxyIface::functions()
00069 {
00070     QCStringList funcs = DCOPObject::functions();
00071     for ( int i = 0; KCModuleProxyIface_ftable[i][2]; i++ ) {
00072     if (KCModuleProxyIface_ftable_hiddens[i])
00073         continue;
00074     QCString func = KCModuleProxyIface_ftable[i][0];
00075     func += ' ';
00076     func += KCModuleProxyIface_ftable[i][2];
00077     funcs << func;
00078     }
00079     return funcs;
00080 }
00081 
00082 void KCModuleProxyIface::changed( bool arg0 )
00083 {
00084     QByteArray data;
00085     QDataStream arg( data, IO_WriteOnly );
00086     arg << arg0;
00087     emitDCOPSignal( "changed(bool)", data );
00088 }
00089 
00090 void KCModuleProxyIface::quickHelpChanged()
00091 {
00092     QByteArray data;
00093     emitDCOPSignal( "quickHelpChanged()", data );
00094 }
00095 
00096 
00097 #include <kdatastream.h>
00098 
00099 
00100 static const char* const KCModuleProxyRootDispatcher_ftable[3][3] = {
00101     { "void", "changed(bool)", "changed(bool c)" },
00102     { "void", "quickHelpChanged()", "quickHelpChanged()" },
00103     { 0, 0, 0 }
00104 };
00105 static const int KCModuleProxyRootDispatcher_ftable_hiddens[2] = {
00106     0,
00107     0,
00108 };
00109 
00110 bool KCModuleProxyRootDispatcher::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00111 {
00112     if ( fun == KCModuleProxyRootDispatcher_ftable[0][1] ) { // void changed(bool)
00113     bool arg0;
00114     QDataStream arg( data, IO_ReadOnly );
00115     if (arg.atEnd()) return false;
00116     arg >> arg0;
00117     replyType = KCModuleProxyRootDispatcher_ftable[0][0]; 
00118     changed(arg0 );
00119     } else if ( fun == KCModuleProxyRootDispatcher_ftable[1][1] ) { // void quickHelpChanged()
00120     replyType = KCModuleProxyRootDispatcher_ftable[1][0]; 
00121     quickHelpChanged( );
00122     } else {
00123     return DCOPObject::process( fun, data, replyType, replyData );
00124     }
00125     return true;
00126 }
00127 
00128 QCStringList KCModuleProxyRootDispatcher::interfaces()
00129 {
00130     QCStringList ifaces = DCOPObject::interfaces();
00131     ifaces += "KCModuleProxyRootDispatcher";
00132     return ifaces;
00133 }
00134 
00135 QCStringList KCModuleProxyRootDispatcher::functions()
00136 {
00137     QCStringList funcs = DCOPObject::functions();
00138     for ( int i = 0; KCModuleProxyRootDispatcher_ftable[i][2]; i++ ) {
00139     if (KCModuleProxyRootDispatcher_ftable_hiddens[i])
00140         continue;
00141     QCString func = KCModuleProxyRootDispatcher_ftable[i][0];
00142     func += ' ';
00143     func += KCModuleProxyRootDispatcher_ftable[i][2];
00144     funcs << func;
00145     }
00146     return funcs;
00147 }
00148 
00149 

kutils

Skip menu "kutils"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal