kresources Library API Documentation

manageriface_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created 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     arg >> arg0;
00034     arg >> arg1;
00035     replyType = ManagerIface_ftable[0][0]; 
00036     dcopKResourceAdded(arg0, arg1 );
00037     } else if ( fun == ManagerIface_ftable[1][1] ) { // void dcopKResourceModified(QString,QString)
00038     QString arg0;
00039     QString arg1;
00040     QDataStream arg( data, IO_ReadOnly );
00041     arg >> arg0;
00042     arg >> arg1;
00043     replyType = ManagerIface_ftable[1][0]; 
00044     dcopKResourceModified(arg0, arg1 );
00045     } else if ( fun == ManagerIface_ftable[2][1] ) { // void dcopKResourceDeleted(QString,QString)
00046     QString arg0;
00047     QString arg1;
00048     QDataStream arg( data, IO_ReadOnly );
00049     arg >> arg0;
00050     arg >> arg1;
00051     replyType = ManagerIface_ftable[2][0]; 
00052     dcopKResourceDeleted(arg0, arg1 );
00053     } else {
00054     return DCOPObject::process( fun, data, replyType, replyData );
00055     }
00056     return true;
00057 }
00058 
00059 QCStringList ManagerIface::interfaces()
00060 {
00061     QCStringList ifaces = DCOPObject::interfaces();
00062     ifaces += "KRES::ManagerIface";
00063     return ifaces;
00064 }
00065 
00066 QCStringList ManagerIface::functions()
00067 {
00068     QCStringList funcs = DCOPObject::functions();
00069     for ( int i = 0; ManagerIface_ftable[i][2]; i++ ) {
00070     if (ManagerIface_ftable_hiddens[i])
00071         continue;
00072     QCString func = ManagerIface_ftable[i][0];
00073     func += ' ';
00074     func += ManagerIface_ftable[i][2];
00075     funcs << func;
00076     }
00077     return funcs;
00078 }
00079 
00080 void ManagerIface::signalKResourceAdded( QString arg0, QString arg1 )
00081 {
00082     QByteArray data;
00083     QDataStream arg( data, IO_WriteOnly );
00084     arg << arg0;
00085     arg << arg1;
00086     emitDCOPSignal( "signalKResourceAdded(QString,QString)", data );
00087 }
00088 
00089 void ManagerIface::signalKResourceModified( QString arg0, QString arg1 )
00090 {
00091     QByteArray data;
00092     QDataStream arg( data, IO_WriteOnly );
00093     arg << arg0;
00094     arg << arg1;
00095     emitDCOPSignal( "signalKResourceModified(QString,QString)", data );
00096 }
00097 
00098 void ManagerIface::signalKResourceDeleted( QString arg0, QString arg1 )
00099 {
00100     QByteArray data;
00101     QDataStream arg( data, IO_WriteOnly );
00102     arg << arg0;
00103     arg << arg1;
00104     emitDCOPSignal( "signalKResourceDeleted(QString,QString)", data );
00105 }
00106 
00107 } // namespace
00108 
KDE Logo
This file is part of the documentation for kresources Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Jan 21 09:58:13 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003