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

#include "/tmp/buildd/tde-packaging/arch/tde-devel/tde-tdevelop/src/tdevelop-trinity-14.1.6/lib/interfaces/kdevprojectiface.h"

#include <kdatastream.h>
#include <tqasciidict.h>


static const int KDevProjectIface_fhash = 31;
static const char* const KDevProjectIface_ftable[31][3] = {
    { "void", "openProject(TQString,TQString)", "openProject(TQString dirName,TQString projectName)" },
    { "void", "closeProject()", "closeProject()" },
    { "uint", "options()", "options()" },
    { "TQString", "projectDirectory()", "projectDirectory()" },
    { "TQString", "projectName()", "projectName()" },
    { "TQString", "mainProgram()", "mainProgram()" },
    { "TQString", "runDirectory()", "runDirectory()" },
    { "TQString", "activeDirectory()", "activeDirectory()" },
    { "TQString", "buildDirectory()", "buildDirectory()" },
    { "TQStringList", "allFiles()", "allFiles()" },
    { "TQStringList", "distFiles()", "distFiles()" },
    { "void", "addFiles(TQStringList)", "addFiles(TQStringList fileList)" },
    { "void", "addFile(TQString)", "addFile(TQString fileName)" },
    { "void", "removeFiles(TQStringList)", "removeFiles(TQStringList fileList)" },
    { "void", "removeFile(TQString)", "removeFile(TQString fileName)" },
    { "void", "changedFiles(TQStringList)", "changedFiles(TQStringList fileList)" },
    { "void", "changedFile(TQString)", "changedFile(TQString fileName)" },
    { "bool", "isProjectFile(TQString)", "isProjectFile(TQString absFileName)" },
    { "TQString", "relativeProjectFile(TQString)", "relativeProjectFile(TQString absFileName)" },
    { "TQStringList", "symlinkProjectFiles()", "symlinkProjectFiles()" },
    { "TQString", "readEntry(TQString,TQString)", "readEntry(TQString path,TQString defaultEntry)" },
    { "int", "readIntEntry(TQString,int)", "readIntEntry(TQString path,int defaultEntry)" },
    { "bool", "readBoolEntry(TQString,bool)", "readBoolEntry(TQString path,bool defaultEntry)" },
    { "TQStringList", "readListEntry(TQString,TQString)", "readListEntry(TQString path,TQString tag)" },
    { "TQMap<TQString,TQString>", "readMapEntry(TQString)", "readMapEntry(TQString path)" },
    { "void", "writeEntry(TQString,TQString)", "writeEntry(TQString path,TQString value)" },
    { "void", "writeIntEntry(TQString,int)", "writeIntEntry(TQString path,int value)" },
    { "void", "writeBoolEntry(TQString,bool)", "writeBoolEntry(TQString path,bool value)" },
    { "void", "writeListEntry(TQString,TQString,TQStringList)", "writeListEntry(TQString path,TQString tag,TQStringList value)" },
    { "void", "writeMapEntry(TQString,TQMap<TQString,TQString>)", "writeMapEntry(TQString path,TQMap<TQString,TQString> map)" },
    { 0, 0, 0 }
};
static const int KDevProjectIface_ftable_hiddens[30] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KDevProjectIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KDevProjectIface_fhash, true, false );
	for ( int i = 0; KDevProjectIface_ftable[i][1]; i++ )
	    fdict->insert( KDevProjectIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void openProject(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KDevProjectIface_ftable[0][0]; 
	openProject(arg0, arg1 );
    } break;
    case 1: { // void closeProject()
	replyType = KDevProjectIface_ftable[1][0]; 
	closeProject( );
    } break;
    case 2: { // uint options()
	replyType = KDevProjectIface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << options( );
    } break;
    case 3: { // TQString projectDirectory()
	replyType = KDevProjectIface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << projectDirectory( );
    } break;
    case 4: { // TQString projectName()
	replyType = KDevProjectIface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << projectName( );
    } break;
    case 5: { // TQString mainProgram()
	replyType = KDevProjectIface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << mainProgram( );
    } break;
    case 6: { // TQString runDirectory()
	replyType = KDevProjectIface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << runDirectory( );
    } break;
    case 7: { // TQString activeDirectory()
	replyType = KDevProjectIface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << activeDirectory( );
    } break;
    case 8: { // TQString buildDirectory()
	replyType = KDevProjectIface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << buildDirectory( );
    } break;
    case 9: { // TQStringList allFiles()
	replyType = KDevProjectIface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << allFiles( );
    } break;
    case 10: { // TQStringList distFiles()
	replyType = KDevProjectIface_ftable[10][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << distFiles( );
    } break;
    case 11: { // void addFiles(TQStringList)
	TQStringList arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevProjectIface_ftable[11][0]; 
	addFiles(arg0 );
    } break;
    case 12: { // void addFile(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevProjectIface_ftable[12][0]; 
	addFile(arg0 );
    } break;
    case 13: { // void removeFiles(TQStringList)
	TQStringList arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevProjectIface_ftable[13][0]; 
	removeFiles(arg0 );
    } break;
    case 14: { // void removeFile(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevProjectIface_ftable[14][0]; 
	removeFile(arg0 );
    } break;
    case 15: { // void changedFiles(TQStringList)
	TQStringList arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevProjectIface_ftable[15][0]; 
	changedFiles(arg0 );
    } break;
    case 16: { // void changedFile(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevProjectIface_ftable[16][0]; 
	changedFile(arg0 );
    } break;
    case 17: { // bool isProjectFile(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevProjectIface_ftable[17][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isProjectFile(arg0 );
    } break;
    case 18: { // TQString relativeProjectFile(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevProjectIface_ftable[18][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << relativeProjectFile(arg0 );
    } break;
    case 19: { // TQStringList symlinkProjectFiles()
	replyType = KDevProjectIface_ftable[19][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << symlinkProjectFiles( );
    } break;
    case 20: { // TQString readEntry(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KDevProjectIface_ftable[20][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readEntry(arg0, arg1 );
    } break;
    case 21: { // int readIntEntry(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KDevProjectIface_ftable[21][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readIntEntry(arg0, arg1 );
    } break;
    case 22: { // bool readBoolEntry(TQString,bool)
	TQString arg0;
	bool arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KDevProjectIface_ftable[22][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readBoolEntry(arg0, arg1 );
    } break;
    case 23: { // TQStringList readListEntry(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KDevProjectIface_ftable[23][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readListEntry(arg0, arg1 );
    } break;
    case 24: { // TQMap<TQString,TQString> readMapEntry(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KDevProjectIface_ftable[24][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readMapEntry(arg0 );
    } break;
    case 25: { // void writeEntry(TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KDevProjectIface_ftable[25][0]; 
	writeEntry(arg0, arg1 );
    } break;
    case 26: { // void writeIntEntry(TQString,int)
	TQString arg0;
	int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KDevProjectIface_ftable[26][0]; 
	writeIntEntry(arg0, arg1 );
    } break;
    case 27: { // void writeBoolEntry(TQString,bool)
	TQString arg0;
	bool arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KDevProjectIface_ftable[27][0]; 
	writeBoolEntry(arg0, arg1 );
    } break;
    case 28: { // void writeListEntry(TQString,TQString,TQStringList)
	TQString arg0;
	TQString arg1;
	TQStringList arg2;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	if (arg.atEnd()) return false;
	arg >> arg2;
	replyType = KDevProjectIface_ftable[28][0]; 
	writeListEntry(arg0, arg1, arg2 );
    } break;
    case 29: { // void writeMapEntry(TQString,TQMap<TQString,TQString>)
	TQString arg0;
	TQMap<TQString,TQString> arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KDevProjectIface_ftable[29][0]; 
	writeMapEntry(arg0, arg1 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList KDevProjectIface::interfaces()
{
    QCStringList ifaces = DCOPObject::interfaces();
    ifaces += "KDevProjectIface";
    return ifaces;
}

QCStringList KDevProjectIface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; KDevProjectIface_ftable[i][2]; i++ ) {
	if (KDevProjectIface_ftable_hiddens[i])
	    continue;
	TQCString func = KDevProjectIface_ftable[i][0];
	func += ' ';
	func += KDevProjectIface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


