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

arts

knotify_skel.cpp

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

arts

Skip menu "arts"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

@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