/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from homedirnotify.kidl
**
** WARNING! All changes made in this file will be lost!
**
*****************************************************************************/

#include "/usr/src/ports/kdebase3/kdebase3-3.5.10-11.i686/src/kdebase-3.5.10/kioslave/home/kdedmodule/homedirnotify.h"

#include <kdatastream.h>


static const char* const HomeDirNotify_ftable[4][3] = {
    { "ASYNC", "FilesAdded(KURL)", "FilesAdded(KURL directory)" },
    { "ASYNC", "FilesRemoved(KURL::List)", "FilesRemoved(KURL::List fileList)" },
    { "ASYNC", "FilesChanged(KURL::List)", "FilesChanged(KURL::List fileList)" },
    { 0, 0, 0 }
};
static const int HomeDirNotify_ftable_hiddens[3] = {
    0,
    0,
    0,
};

bool HomeDirNotify::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == HomeDirNotify_ftable[0][1] ) { // void FilesAdded(KURL)
	KURL arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = HomeDirNotify_ftable[0][0]; 
	FilesAdded(arg0 );
    } else if ( fun == HomeDirNotify_ftable[1][1] ) { // void FilesRemoved(KURL::List)
	KURL::List arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = HomeDirNotify_ftable[1][0]; 
	FilesRemoved(arg0 );
    } else if ( fun == HomeDirNotify_ftable[2][1] ) { // void FilesChanged(KURL::List)
	KURL::List arg0;
	QDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = HomeDirNotify_ftable[2][0]; 
	FilesChanged(arg0 );
    } else {
	return KDirNotify::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList HomeDirNotify::interfaces()
{
    QCStringList ifaces = KDirNotify::interfaces();
    ifaces += "HomeDirNotify";
    return ifaces;
}

QCStringList HomeDirNotify::functions()
{
    QCStringList funcs = KDirNotify::functions();
    for ( int i = 0; HomeDirNotify_ftable[i][2]; i++ ) {
	if (HomeDirNotify_ftable_hiddens[i])
	    continue;
	QCString func = HomeDirNotify_ftable[i][0];
	func += ' ';
	func += HomeDirNotify_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


