kresources Library API Documentation

manageriface_skel.cpp

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton generated by dcopidl2cpp from manageriface.kidl 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 00006 ** 00007 *****************************************************************************/ 00008 00009 #include "./manageriface.h" 00010 00011 #include <kdatastream.h> 00012 00013 namespace KRES { 00014 00015 static const char* const ManagerIface_ftable[4][3] = { 00016 { "ASYNC", "dcopKResourceAdded(QString,QString)", "dcopKResourceAdded(QString managerId,QString resourceId)" }, 00017 { "ASYNC", "dcopKResourceModified(QString,QString)", "dcopKResourceModified(QString managerId,QString resourceId)" }, 00018 { "ASYNC", "dcopKResourceDeleted(QString,QString)", "dcopKResourceDeleted(QString managerId,QString resourceId)" }, 00019 { 0, 0, 0 } 00020 }; 00021 static const int ManagerIface_ftable_hiddens[3] = { 00022 0, 00023 0, 00024 0, 00025 }; 00026 00027 bool ManagerIface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) 00028 { 00029 if ( fun == ManagerIface_ftable[0][1] ) { // void dcopKResourceAdded(QString,QString) 00030 QString arg0; 00031 QString arg1; 00032 QDataStream arg( data, IO_ReadOnly ); 00033 if (arg.atEnd()) return false; 00034 arg >> arg0; 00035 if (arg.atEnd()) return false; 00036 arg >> arg1; 00037 replyType = ManagerIface_ftable[0][0]; 00038 dcopKResourceAdded(arg0, arg1 ); 00039 } else if ( fun == ManagerIface_ftable[1][1] ) { // void dcopKResourceModified(QString,QString) 00040 QString arg0; 00041 QString arg1; 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 replyType = ManagerIface_ftable[1][0]; 00048 dcopKResourceModified(arg0, arg1 ); 00049 } else if ( fun == ManagerIface_ftable[2][1] ) { // void dcopKResourceDeleted(QString,QString) 00050 QString arg0; 00051 QString arg1; 00052 QDataStream arg( data, IO_ReadOnly ); 00053 if (arg.atEnd()) return false; 00054 arg >> arg0; 00055 if (arg.atEnd()) return false; 00056 arg >> arg1; 00057 replyType = ManagerIface_ftable[2][0]; 00058 dcopKResourceDeleted(arg0, arg1 ); 00059 } else { 00060 return DCOPObject::process( fun, data, replyType, replyData ); 00061 } 00062 return true; 00063 } 00064 00065 QCStringList ManagerIface::interfaces() 00066 { 00067 QCStringList ifaces = DCOPObject::interfaces(); 00068 ifaces += "KRES::ManagerIface"; 00069 return ifaces; 00070 } 00071 00072 QCStringList ManagerIface::functions() 00073 { 00074 QCStringList funcs = DCOPObject::functions(); 00075 for ( int i = 0; ManagerIface_ftable[i][2]; i++ ) { 00076 if (ManagerIface_ftable_hiddens[i]) 00077 continue; 00078 QCString func = ManagerIface_ftable[i][0]; 00079 func += ' '; 00080 func += ManagerIface_ftable[i][2]; 00081 funcs << func; 00082 } 00083 return funcs; 00084 } 00085 00086 void ManagerIface::signalKResourceAdded( QString arg0, QString arg1 ) 00087 { 00088 QByteArray data; 00089 QDataStream arg( data, IO_WriteOnly ); 00090 arg << arg0; 00091 arg << arg1; 00092 emitDCOPSignal( "signalKResourceAdded(QString,QString)", data ); 00093 } 00094 00095 void ManagerIface::signalKResourceModified( QString arg0, QString arg1 ) 00096 { 00097 QByteArray data; 00098 QDataStream arg( data, IO_WriteOnly ); 00099 arg << arg0; 00100 arg << arg1; 00101 emitDCOPSignal( "signalKResourceModified(QString,QString)", data ); 00102 } 00103 00104 void ManagerIface::signalKResourceDeleted( QString arg0, QString arg1 ) 00105 { 00106 QByteArray data; 00107 QDataStream arg( data, IO_WriteOnly ); 00108 arg << arg0; 00109 arg << arg1; 00110 emitDCOPSignal( "signalKResourceDeleted(QString,QString)", data ); 00111 } 00112 00113 } // namespace 00114
KDE Logo
This file is part of the documentation for kresources Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 14 00:32:35 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003