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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-tdeedu/src/tdeedu-trinity-14.1.6/kstars/kstars/kstarsinterface.h"

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


static const int KStarsInterface_fhash = 41;
static const char* const KStarsInterface_ftable[41][3] = {
    { "ASYNC", "lookTowards(TQString)", "lookTowards(TQString direction)" },
    { "ASYNC", "zoom(double)", "zoom(double f)" },
    { "ASYNC", "zoomIn()", "zoomIn()" },
    { "ASYNC", "zoomOut()", "zoomOut()" },
    { "ASYNC", "defaultZoom()", "defaultZoom()" },
    { "ASYNC", "setRaDec(double,double)", "setRaDec(double ra,double dec)" },
    { "ASYNC", "setAltAz(double,double)", "setAltAz(double alt,double az)" },
    { "ASYNC", "setLocalTime(int,int,int,int,int,int)", "setLocalTime(int yr,int mth,int day,int hr,int min,int sec)" },
    { "ASYNC", "waitFor(double)", "waitFor(double t)" },
    { "ASYNC", "waitForKey(TQString)", "waitForKey(TQString k)" },
    { "ASYNC", "setTracking(bool)", "setTracking(bool track)" },
    { "ASYNC", "readConfig()", "readConfig()" },
    { "ASYNC", "writeConfig()", "writeConfig()" },
    { "TQString", "getOption(TQString)", "getOption(TQString name)" },
    { "ASYNC", "changeViewOption(TQString,TQString)", "changeViewOption(TQString option,TQString value)" },
    { "ASYNC", "popupMessage(int,int,TQString)", "popupMessage(int x,int y,TQString message)" },
    { "ASYNC", "drawLine(int,int,int,int,int)", "drawLine(int x1,int y1,int x2,int y2,int speed)" },
    { "ASYNC", "setGeoLocation(TQString,TQString,TQString)", "setGeoLocation(TQString city,TQString province,TQString country)" },
    { "ASYNC", "setColor(TQString,TQString)", "setColor(TQString colorName,TQString value)" },
    { "ASYNC", "loadColorScheme(TQString)", "loadColorScheme(TQString name)" },
    { "ASYNC", "exportImage(TQString,int,int)", "exportImage(TQString filename,int width,int height)" },
    { "ASYNC", "printImage(bool,bool)", "printImage(bool usePrintDialog,bool useChartColors)" },
    { "ASYNC", "startINDI(TQString,bool)", "startINDI(TQString deviceName,bool useLocal)" },
    { "ASYNC", "shutdownINDI(TQString)", "shutdownINDI(TQString deviceName)" },
    { "ASYNC", "switchINDI(TQString,bool)", "switchINDI(TQString deviceName,bool turnOn)" },
    { "ASYNC", "setINDIPort(TQString,TQString)", "setINDIPort(TQString deviceName,TQString port)" },
    { "ASYNC", "setINDIAction(TQString,TQString)", "setINDIAction(TQString deviceName,TQString action)" },
    { "ASYNC", "waitForINDIAction(TQString,TQString)", "waitForINDIAction(TQString deviceName,TQString action)" },
    { "ASYNC", "setINDITargetCoord(TQString,double,double)", "setINDITargetCoord(TQString deviceName,double RA,double DEC)" },
    { "ASYNC", "setINDITargetName(TQString,TQString)", "setINDITargetName(TQString deviceName,TQString objectName)" },
    { "ASYNC", "setINDIScopeAction(TQString,TQString)", "setINDIScopeAction(TQString deviceName,TQString action)" },
    { "ASYNC", "setINDIGeoLocation(TQString,double,double)", "setINDIGeoLocation(TQString deviceName,double longitude,double latitude)" },
    { "ASYNC", "setINDIUTC(TQString,TQString)", "setINDIUTC(TQString deviceName,TQString UTCDateTime)" },
    { "ASYNC", "setINDIFocusSpeed(TQString,unsigned int)", "setINDIFocusSpeed(TQString deviceName,unsigned int speed)" },
    { "ASYNC", "setINDIFocusTimeout(TQString,int)", "setINDIFocusTimeout(TQString deviceName,int timeout)" },
    { "ASYNC", "startINDIFocus(TQString,int)", "startINDIFocus(TQString deviceName,int focusDir)" },
    { "ASYNC", "setINDIFilterNum(TQString,int)", "setINDIFilterNum(TQString deviceName,int filter_num)" },
    { "ASYNC", "setINDIFrameType(TQString,TQString)", "setINDIFrameType(TQString deviceName,TQString type)" },
    { "ASYNC", "setINDICCDTemp(TQString,int)", "setINDICCDTemp(TQString deviceName,int temp)" },
    { "ASYNC", "startINDIExposure(TQString,int)", "startINDIExposure(TQString deviceName,int timeout)" },
    { 0, 0, 0 }
};
static const int KStarsInterface_ftable_hiddens[40] = {
    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,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool KStarsInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KStarsInterface_fhash, true, false );
	for ( int i = 0; KStarsInterface_ftable[i][1]; i++ )
	    fdict->insert( KStarsInterface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void lookTowards(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KStarsInterface_ftable[0][0]; 
	lookTowards(arg0 );
    } break;
    case 1: { // void zoom(double)
	double arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KStarsInterface_ftable[1][0]; 
	zoom(arg0 );
    } break;
    case 2: { // void zoomIn()
	replyType = KStarsInterface_ftable[2][0]; 
	zoomIn( );
    } break;
    case 3: { // void zoomOut()
	replyType = KStarsInterface_ftable[3][0]; 
	zoomOut( );
    } break;
    case 4: { // void defaultZoom()
	replyType = KStarsInterface_ftable[4][0]; 
	defaultZoom( );
    } break;
    case 5: { // void setRaDec(double,double)
	double arg0;
	double arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KStarsInterface_ftable[5][0]; 
	setRaDec(arg0, arg1 );
    } break;
    case 6: { // void setAltAz(double,double)
	double arg0;
	double arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KStarsInterface_ftable[6][0]; 
	setAltAz(arg0, arg1 );
    } break;
    case 7: { // void setLocalTime(int,int,int,int,int,int)
	int arg0;
	int arg1;
	int arg2;
	int arg3;
	int arg4;
	int arg5;
	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;
	if (arg.atEnd()) return false;
	arg >> arg3;
	if (arg.atEnd()) return false;
	arg >> arg4;
	if (arg.atEnd()) return false;
	arg >> arg5;
	replyType = KStarsInterface_ftable[7][0]; 
	setLocalTime(arg0, arg1, arg2, arg3, arg4, arg5 );
    } break;
    case 8: { // void waitFor(double)
	double arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KStarsInterface_ftable[8][0]; 
	waitFor(arg0 );
    } break;
    case 9: { // void waitForKey(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KStarsInterface_ftable[9][0]; 
	waitForKey(arg0 );
    } break;
    case 10: { // void setTracking(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KStarsInterface_ftable[10][0]; 
	setTracking(arg0 );
    } break;
    case 11: { // void readConfig()
	replyType = KStarsInterface_ftable[11][0]; 
	readConfig( );
    } break;
    case 12: { // void writeConfig()
	replyType = KStarsInterface_ftable[12][0]; 
	writeConfig( );
    } break;
    case 13: { // TQString getOption(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KStarsInterface_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getOption(arg0 );
    } break;
    case 14: { // void changeViewOption(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 = KStarsInterface_ftable[14][0]; 
	changeViewOption(arg0, arg1 );
    } break;
    case 15: { // void popupMessage(int,int,TQString)
	int arg0;
	int arg1;
	TQString 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 = KStarsInterface_ftable[15][0]; 
	popupMessage(arg0, arg1, arg2 );
    } break;
    case 16: { // void drawLine(int,int,int,int,int)
	int arg0;
	int arg1;
	int arg2;
	int arg3;
	int arg4;
	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;
	if (arg.atEnd()) return false;
	arg >> arg3;
	if (arg.atEnd()) return false;
	arg >> arg4;
	replyType = KStarsInterface_ftable[16][0]; 
	drawLine(arg0, arg1, arg2, arg3, arg4 );
    } break;
    case 17: { // void setGeoLocation(TQString,TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQString 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 = KStarsInterface_ftable[17][0]; 
	setGeoLocation(arg0, arg1, arg2 );
    } break;
    case 18: { // void setColor(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 = KStarsInterface_ftable[18][0]; 
	setColor(arg0, arg1 );
    } break;
    case 19: { // void loadColorScheme(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KStarsInterface_ftable[19][0]; 
	loadColorScheme(arg0 );
    } break;
    case 20: { // void exportImage(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 = KStarsInterface_ftable[20][0]; 
	exportImage(arg0, arg1, arg2 );
    } break;
    case 21: { // void printImage(bool,bool)
	bool arg0;
	bool arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KStarsInterface_ftable[21][0]; 
	printImage(arg0, arg1 );
    } break;
    case 22: { // void startINDI(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 = KStarsInterface_ftable[22][0]; 
	startINDI(arg0, arg1 );
    } break;
    case 23: { // void shutdownINDI(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KStarsInterface_ftable[23][0]; 
	shutdownINDI(arg0 );
    } break;
    case 24: { // void switchINDI(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 = KStarsInterface_ftable[24][0]; 
	switchINDI(arg0, arg1 );
    } break;
    case 25: { // void setINDIPort(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 = KStarsInterface_ftable[25][0]; 
	setINDIPort(arg0, arg1 );
    } break;
    case 26: { // void setINDIAction(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 = KStarsInterface_ftable[26][0]; 
	setINDIAction(arg0, arg1 );
    } break;
    case 27: { // void waitForINDIAction(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 = KStarsInterface_ftable[27][0]; 
	waitForINDIAction(arg0, arg1 );
    } break;
    case 28: { // void setINDITargetCoord(TQString,double,double)
	TQString arg0;
	double arg1;
	double 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 = KStarsInterface_ftable[28][0]; 
	setINDITargetCoord(arg0, arg1, arg2 );
    } break;
    case 29: { // void setINDITargetName(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 = KStarsInterface_ftable[29][0]; 
	setINDITargetName(arg0, arg1 );
    } break;
    case 30: { // void setINDIScopeAction(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 = KStarsInterface_ftable[30][0]; 
	setINDIScopeAction(arg0, arg1 );
    } break;
    case 31: { // void setINDIGeoLocation(TQString,double,double)
	TQString arg0;
	double arg1;
	double 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 = KStarsInterface_ftable[31][0]; 
	setINDIGeoLocation(arg0, arg1, arg2 );
    } break;
    case 32: { // void setINDIUTC(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 = KStarsInterface_ftable[32][0]; 
	setINDIUTC(arg0, arg1 );
    } break;
    case 33: { // void setINDIFocusSpeed(TQString,unsigned int)
	TQString arg0;
	unsigned int arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = KStarsInterface_ftable[33][0]; 
	setINDIFocusSpeed(arg0, arg1 );
    } break;
    case 34: { // void setINDIFocusTimeout(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 = KStarsInterface_ftable[34][0]; 
	setINDIFocusTimeout(arg0, arg1 );
    } break;
    case 35: { // void startINDIFocus(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 = KStarsInterface_ftable[35][0]; 
	startINDIFocus(arg0, arg1 );
    } break;
    case 36: { // void setINDIFilterNum(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 = KStarsInterface_ftable[36][0]; 
	setINDIFilterNum(arg0, arg1 );
    } break;
    case 37: { // void setINDIFrameType(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 = KStarsInterface_ftable[37][0]; 
	setINDIFrameType(arg0, arg1 );
    } break;
    case 38: { // void setINDICCDTemp(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 = KStarsInterface_ftable[38][0]; 
	setINDICCDTemp(arg0, arg1 );
    } break;
    case 39: { // void startINDIExposure(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 = KStarsInterface_ftable[39][0]; 
	startINDIExposure(arg0, arg1 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


