kio Library API Documentation

kdirnotify_skel.cpp

00001 /**************************************************************************** 00002 ** 00003 ** DCOP Skeleton created by dcopidl2cpp from kdirnotify.kidl 00004 ** 00005 ** WARNING! All changes made in this file will be lost! 00006 ** 00007 *****************************************************************************/ 00008 00009 #include "./kdirnotify.h" 00010 00011 #include <kdatastream.h> 00012 00013 00014 static const char* const KDirNotify_ftable[5][3] = { 00015 { "ASYNC", "FilesAdded(KURL)", "FilesAdded(KURL directory)" }, 00016 { "ASYNC", "FilesRemoved(KURL::List)", "FilesRemoved(KURL::List fileList)" }, 00017 { "ASYNC", "FilesChanged(KURL::List)", "FilesChanged(KURL::List fileList)" }, 00018 { "ASYNC", "FileRenamed(KURL,KURL)", "FileRenamed(KURL src,KURL dst)" }, 00019 { 0, 0, 0 } 00020 }; 00021 static const int KDirNotify_ftable_hiddens[4] = { 00022 0, 00023 0, 00024 0, 00025 0, 00026 }; 00027 00028 bool KDirNotify::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) 00029 { 00030 if ( fun == KDirNotify_ftable[0][1] ) { // void FilesAdded(KURL) 00031 KURL arg0; 00032 QDataStream arg( data, IO_ReadOnly ); 00033 arg >> arg0; 00034 replyType = KDirNotify_ftable[0][0]; 00035 FilesAdded(arg0 ); 00036 } else if ( fun == KDirNotify_ftable[1][1] ) { // void FilesRemoved(KURL::List) 00037 KURL::List arg0; 00038 QDataStream arg( data, IO_ReadOnly ); 00039 arg >> arg0; 00040 replyType = KDirNotify_ftable[1][0]; 00041 FilesRemoved(arg0 ); 00042 } else if ( fun == KDirNotify_ftable[2][1] ) { // void FilesChanged(KURL::List) 00043 KURL::List arg0; 00044 QDataStream arg( data, IO_ReadOnly ); 00045 arg >> arg0; 00046 replyType = KDirNotify_ftable[2][0]; 00047 FilesChanged(arg0 ); 00048 } else if ( fun == KDirNotify_ftable[3][1] ) { // void FileRenamed(KURL,KURL) 00049 KURL arg0; 00050 KURL arg1; 00051 QDataStream arg( data, IO_ReadOnly ); 00052 arg >> arg0; 00053 arg >> arg1; 00054 replyType = KDirNotify_ftable[3][0]; 00055 FileRenamed(arg0, arg1 ); 00056 } else { 00057 return DCOPObject::process( fun, data, replyType, replyData ); 00058 } 00059 return true; 00060 } 00061 00062 QCStringList KDirNotify::interfaces() 00063 { 00064 QCStringList ifaces = DCOPObject::interfaces(); 00065 ifaces += "KDirNotify"; 00066 return ifaces; 00067 } 00068 00069 QCStringList KDirNotify::functions() 00070 { 00071 QCStringList funcs = DCOPObject::functions(); 00072 for ( int i = 0; KDirNotify_ftable[i][2]; i++ ) { 00073 if (KDirNotify_ftable_hiddens[i]) 00074 continue; 00075 QCString func = KDirNotify_ftable[i][0]; 00076 func += ' '; 00077 func += KDirNotify_ftable[i][2]; 00078 funcs << func; 00079 } 00080 return funcs; 00081 } 00082 00083
KDE Logo
This file is part of the documentation for kio Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 8 11:14:56 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003