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

#include "/tmp/buildd/tde-packaging/arch/tde-devel/tde-tdewebdev/src/tdewebdev-trinity-14.1.6/quanta/src/dcopwindowmanagerif.h"

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


static const int DCOPWindowManagerIf_fhash = 17;
static const char* const DCOPWindowManagerIf_ftable[16][3] = {
    { "int", "currentEditorIfNum()", "currentEditorIfNum()" },
    { "TQString", "currentURL()", "currentURL()" },
    { "TQString", "projectURL()", "projectURL()" },
    { "TQStringList", "openedURLs()", "openedURLs()" },
    { "TQStringList", "tagAreas(TQString,bool,bool)", "tagAreas(TQString tag,bool includeCoordinates,bool skipFoundContent)" },
    { "void", "newCursorPosition(TQString,int,int)", "newCursorPosition(TQString file,int lineNumber,int columnNumber)" },
    { "void", "newDebuggerPosition(TQString,int)", "newDebuggerPosition(TQString file,int lineNumber)" },
    { "void", "openFile(TQString,int,int)", "openFile(TQString file,int lineNumber,int columnNumber)" },
    { "TQString", "saveCurrentFile()", "saveCurrentFile()" },
    { "void", "setDtep(TQString,bool)", "setDtep(TQString dtepName,bool convert)" },
    { "TQString", "documentFolderForURL(TQString)", "documentFolderForURL(TQString url)" },
    { "TQString", "urlWithPreviewPrefix(TQString)", "urlWithPreviewPrefix(TQString url)" },
    { "void", "addFileToProject(TQString)", "addFileToProject(TQString url)" },
    { "void", "addFolderToProject(TQString)", "addFolderToProject(TQString url)" },
    { "void", "uploadURL(TQString,TQString,bool)", "uploadURL(TQString url,TQString profile,bool markOnly)" },
    { 0, 0, 0 }
};
static const int DCOPWindowManagerIf_ftable_hiddens[15] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool DCOPWindowManagerIf::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( DCOPWindowManagerIf_fhash, true, false );
	for ( int i = 0; DCOPWindowManagerIf_ftable[i][1]; i++ )
	    fdict->insert( DCOPWindowManagerIf_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // int currentEditorIfNum()
	replyType = DCOPWindowManagerIf_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << currentEditorIfNum( );
    } break;
    case 1: { // TQString currentURL()
	replyType = DCOPWindowManagerIf_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << currentURL( );
    } break;
    case 2: { // TQString projectURL()
	replyType = DCOPWindowManagerIf_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << projectURL( );
    } break;
    case 3: { // TQStringList openedURLs()
	replyType = DCOPWindowManagerIf_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << openedURLs( );
    } break;
    case 4: { // TQStringList tagAreas(TQString,bool,bool)
	TQString arg0;
	bool arg1;
	bool 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 = DCOPWindowManagerIf_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << tagAreas(arg0, arg1, arg2 );
    } break;
    case 5: { // void newCursorPosition(TQString,int,int)
	TQString arg0;
	int arg1;
	int 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 = DCOPWindowManagerIf_ftable[5][0]; 
	newCursorPosition(arg0, arg1, arg2 );
    } break;
    case 6: { // void newDebuggerPosition(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 = DCOPWindowManagerIf_ftable[6][0]; 
	newDebuggerPosition(arg0, arg1 );
    } break;
    case 7: { // void openFile(TQString,int,int)
	TQString arg0;
	int arg1;
	int 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 = DCOPWindowManagerIf_ftable[7][0]; 
	openFile(arg0, arg1, arg2 );
    } break;
    case 8: { // TQString saveCurrentFile()
	replyType = DCOPWindowManagerIf_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << saveCurrentFile( );
    } break;
    case 9: { // void setDtep(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 = DCOPWindowManagerIf_ftable[9][0]; 
	setDtep(arg0, arg1 );
    } break;
    case 10: { // TQString documentFolderForURL(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPWindowManagerIf_ftable[10][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << documentFolderForURL(arg0 );
    } break;
    case 11: { // TQString urlWithPreviewPrefix(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPWindowManagerIf_ftable[11][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << urlWithPreviewPrefix(arg0 );
    } break;
    case 12: { // void addFileToProject(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPWindowManagerIf_ftable[12][0]; 
	addFileToProject(arg0 );
    } break;
    case 13: { // void addFolderToProject(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = DCOPWindowManagerIf_ftable[13][0]; 
	addFolderToProject(arg0 );
    } break;
    case 14: { // void uploadURL(TQString,TQString,bool)
	TQString arg0;
	TQString arg1;
	bool 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 = DCOPWindowManagerIf_ftable[14][0]; 
	uploadURL(arg0, arg1, arg2 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


