kitchensync Library API Documentation

kdedsharedfile_skel.cpp

00001 /****************************************************************************
00002 **
00003 ** DCOP Skeleton created by dcopidl2cpp from kdedsharedfile.kidl
00004 **
00005 ** WARNING! All changes made in this file will be lost!
00006 **
00007 *****************************************************************************/
00008 
00009 #include "./kdedsharedfile.h"
00010 
00011 #include <kdatastream.h>
00012 
00013 
00014 static const char* const KShareFileModule_ftable[7][3] = {
00015     { "ASYNC", "interestedIn(QString)", "interestedIn(QString resource)" },
00016     { "ASYNC", "removeInterestIn(QString)", "removeInterestIn(QString resource)" },
00017     { "bool", "readShareFile(QString)", "readShareFile(QString resource)" },
00018     { "bool", "readUnshareFile(QString)", "readUnshareFile(QString resource)" },
00019     { "bool", "writeLockFile(QString)", "writeLockFile(QString resource)" },
00020     { "bool", "writeUnlockFile(QString)", "writeUnlockFile(QString resource)" },
00021     { 0, 0, 0 }
00022 };
00023 static const int KShareFileModule_ftable_hiddens[6] = {
00024     0,
00025     0,
00026     0,
00027     0,
00028     0,
00029     0,
00030 };
00031 
00032 bool KShareFileModule::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
00033 {
00034     if ( fun == KShareFileModule_ftable[0][1] ) { // void interestedIn(QString)
00035     QString arg0;
00036     QDataStream arg( data, IO_ReadOnly );
00037     arg >> arg0;
00038     replyType = KShareFileModule_ftable[0][0]; 
00039     interestedIn(arg0 );
00040     } else if ( fun == KShareFileModule_ftable[1][1] ) { // void removeInterestIn(QString)
00041     QString arg0;
00042     QDataStream arg( data, IO_ReadOnly );
00043     arg >> arg0;
00044     replyType = KShareFileModule_ftable[1][0]; 
00045     removeInterestIn(arg0 );
00046     } else if ( fun == KShareFileModule_ftable[2][1] ) { // bool readShareFile(QString)
00047     QString arg0;
00048     QDataStream arg( data, IO_ReadOnly );
00049     arg >> arg0;
00050     replyType = KShareFileModule_ftable[2][0]; 
00051     QDataStream _replyStream( replyData, IO_WriteOnly );
00052     _replyStream << readShareFile(arg0 );
00053     } else if ( fun == KShareFileModule_ftable[3][1] ) { // bool readUnshareFile(QString)
00054     QString arg0;
00055     QDataStream arg( data, IO_ReadOnly );
00056     arg >> arg0;
00057     replyType = KShareFileModule_ftable[3][0]; 
00058     QDataStream _replyStream( replyData, IO_WriteOnly );
00059     _replyStream << readUnshareFile(arg0 );
00060     } else if ( fun == KShareFileModule_ftable[4][1] ) { // bool writeLockFile(QString)
00061     QString arg0;
00062     QDataStream arg( data, IO_ReadOnly );
00063     arg >> arg0;
00064     replyType = KShareFileModule_ftable[4][0]; 
00065     QDataStream _replyStream( replyData, IO_WriteOnly );
00066     _replyStream << writeLockFile(arg0 );
00067     } else if ( fun == KShareFileModule_ftable[5][1] ) { // bool writeUnlockFile(QString)
00068     QString arg0;
00069     QDataStream arg( data, IO_ReadOnly );
00070     arg >> arg0;
00071     replyType = KShareFileModule_ftable[5][0]; 
00072     QDataStream _replyStream( replyData, IO_WriteOnly );
00073     _replyStream << writeUnlockFile(arg0 );
00074     } else {
00075     return KDEDModule::process( fun, data, replyType, replyData );
00076     }
00077     return true;
00078 }
00079 
00080 QCStringList KShareFileModule::interfaces()
00081 {
00082     QCStringList ifaces = KDEDModule::interfaces();
00083     ifaces += "KShareFileModule";
00084     return ifaces;
00085 }
00086 
00087 QCStringList KShareFileModule::functions()
00088 {
00089     QCStringList funcs = KDEDModule::functions();
00090     for ( int i = 0; KShareFileModule_ftable[i][2]; i++ ) {
00091     if (KShareFileModule_ftable_hiddens[i])
00092         continue;
00093     QCString func = KShareFileModule_ftable[i][0];
00094     func += ' ';
00095     func += KShareFileModule_ftable[i][2];
00096     funcs << func;
00097     }
00098     return funcs;
00099 }
00100 
00101 
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 22:41:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003