arts Library API Documentation

knotify_skel.cpp

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton created 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[6][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 { 0, 0, 0 } 00021 }; 00022 static const int KNotify_ftable_hiddens[5] = { 00023 0, 00024 0, 00025 0, 00026 0, 00027 0, 00028 }; 00029 00030 bool KNotify::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) 00031 { 00032 if ( fun == KNotify_ftable[0][1] ) { // void notify(QString,QString,QString,QString,QString,int,int) 00033 QString arg0; 00034 QString arg1; 00035 QString arg2; 00036 QString arg3; 00037 QString arg4; 00038 int arg5; 00039 int arg6; 00040 QDataStream arg( data, IO_ReadOnly ); 00041 arg >> arg0; 00042 arg >> arg1; 00043 arg >> arg2; 00044 arg >> arg3; 00045 arg >> arg4; 00046 arg >> arg5; 00047 arg >> arg6; 00048 replyType = KNotify_ftable[0][0]; 00049 notify(arg0, arg1, arg2, arg3, arg4, arg5, arg6 ); 00050 } else if ( fun == KNotify_ftable[1][1] ) { // void notify(QString,QString,QString,QString,QString,int,int,int) 00051 QString arg0; 00052 QString arg1; 00053 QString arg2; 00054 QString arg3; 00055 QString arg4; 00056 int arg5; 00057 int arg6; 00058 int arg7; 00059 QDataStream arg( data, IO_ReadOnly ); 00060 arg >> arg0; 00061 arg >> arg1; 00062 arg >> arg2; 00063 arg >> arg3; 00064 arg >> arg4; 00065 arg >> arg5; 00066 arg >> arg6; 00067 arg >> arg7; 00068 replyType = KNotify_ftable[1][0]; 00069 notify(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 ); 00070 } else if ( fun == KNotify_ftable[2][1] ) { // void notify(QString,QString,QString,QString,QString,int,int,int,int) 00071 QString arg0; 00072 QString arg1; 00073 QString arg2; 00074 QString arg3; 00075 QString arg4; 00076 int arg5; 00077 int arg6; 00078 int arg7; 00079 int arg8; 00080 QDataStream arg( data, IO_ReadOnly ); 00081 arg >> arg0; 00082 arg >> arg1; 00083 arg >> arg2; 00084 arg >> arg3; 00085 arg >> arg4; 00086 arg >> arg5; 00087 arg >> arg6; 00088 arg >> arg7; 00089 arg >> arg8; 00090 replyType = KNotify_ftable[2][0]; 00091 notify(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 ); 00092 } else if ( fun == KNotify_ftable[3][1] ) { // void reconfigure() 00093 replyType = KNotify_ftable[3][0]; 00094 reconfigure( ); 00095 } else if ( fun == KNotify_ftable[4][1] ) { // void setVolume(int) 00096 int arg0; 00097 QDataStream arg( data, IO_ReadOnly ); 00098 arg >> arg0; 00099 replyType = KNotify_ftable[4][0]; 00100 setVolume(arg0 ); 00101 } else { 00102 return DCOPObject::process( fun, data, replyType, replyData ); 00103 } 00104 return true; 00105 } 00106 00107 QCStringList KNotify::interfaces() 00108 { 00109 QCStringList ifaces = DCOPObject::interfaces(); 00110 ifaces += "KNotify"; 00111 return ifaces; 00112 } 00113 00114 QCStringList KNotify::functions() 00115 { 00116 QCStringList funcs = DCOPObject::functions(); 00117 for ( int i = 0; KNotify_ftable[i][2]; i++ ) { 00118 if (KNotify_ftable_hiddens[i]) 00119 continue; 00120 QCString func = KNotify_ftable[i][0]; 00121 func += ' '; 00122 func += KNotify_ftable[i][2]; 00123 funcs << func; 00124 } 00125 return funcs; 00126 } 00127 00128
KDE Logo
This file is part of the documentation for arts Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 8 11:15:11 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003