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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-kaffeine/src/kaffeine-trinity-14.1.6/kaffeine/src/kaffeineiface.h"

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


static const int KaffeineIface_fhash = 41;
static const char* const KaffeineIface_ftable[40][3] = {
    { "void", "openURL(TQString)", "openURL(TQString url)" },
    { "void", "appendURL(TQString)", "appendURL(TQString url)" },
    { "void", "play()", "play()" },
    { "void", "playAudioCD()", "playAudioCD()" },
    { "void", "playVCD()", "playVCD()" },
    { "void", "playDVD()", "playDVD()" },
    { "void", "pause()", "pause()" },
    { "void", "stop()", "stop()" },
    { "void", "next()", "next()" },
    { "void", "previous()", "previous()" },
    { "void", "changePlaylist()", "changePlaylist()" },
    { "bool", "isPlaying()", "isPlaying()" },
    { "bool", "isVideo()", "isVideo()" },
    { "TQString", "title()", "title()" },
    { "TQString", "artist()", "artist()" },
    { "TQString", "album()", "album()" },
    { "TQString", "track()", "track()" },
    { "TQString", "getFileName()", "getFileName()" },
    { "void", "random()", "random()" },
    { "void", "fullscreen()", "fullscreen()" },
    { "void", "minimal()", "minimal()" },
    { "int", "getLength()", "getLength()" },
    { "int", "getTimePos()", "getTimePos()" },
    { "void", "posPlus()", "posPlus()" },
    { "void", "posMinus()", "posMinus()" },
    { "void", "volUp()", "volUp()" },
    { "void", "volDown()", "volDown()" },
    { "void", "mute()", "mute()" },
    { "void", "quit()", "quit()" },
    { "void", "setNumber(int)", "setNumber(int num)" },
    { "void", "dvbNewTimer(TQString,TQString,TQString,TQString)", "dvbNewTimer(TQString name,TQString channel,TQString datetime,TQString duration)" },
    { "int", "dvbSNR(int)", "dvbSNR(int device)" },
    { "void", "dvbOSD()", "dvbOSD()" },
    { "void", "dvbOSDNextChannel()", "dvbOSDNextChannel()" },
    { "void", "dvbOSDPreviousChannel()", "dvbOSDPreviousChannel()" },
    { "void", "dvbOSDNextProgram()", "dvbOSDNextProgram()" },
    { "void", "dvbOSDPreviousProgram()", "dvbOSDPreviousProgram()" },
    { "void", "dvbOSDZap()", "dvbOSDZap()" },
    { "void", "playDvb()", "playDvb()" },
    { 0, 0, 0 }
};
static const int KaffeineIface_ftable_hiddens[39] = {
    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 KaffeineIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( KaffeineIface_fhash, true, false );
	for ( int i = 0; KaffeineIface_ftable[i][1]; i++ )
	    fdict->insert( KaffeineIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void openURL(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KaffeineIface_ftable[0][0]; 
	openURL(arg0 );
    } break;
    case 1: { // void appendURL(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KaffeineIface_ftable[1][0]; 
	appendURL(arg0 );
    } break;
    case 2: { // void play()
	replyType = KaffeineIface_ftable[2][0]; 
	play( );
    } break;
    case 3: { // void playAudioCD()
	replyType = KaffeineIface_ftable[3][0]; 
	playAudioCD( );
    } break;
    case 4: { // void playVCD()
	replyType = KaffeineIface_ftable[4][0]; 
	playVCD( );
    } break;
    case 5: { // void playDVD()
	replyType = KaffeineIface_ftable[5][0]; 
	playDVD( );
    } break;
    case 6: { // void pause()
	replyType = KaffeineIface_ftable[6][0]; 
	pause( );
    } break;
    case 7: { // void stop()
	replyType = KaffeineIface_ftable[7][0]; 
	stop( );
    } break;
    case 8: { // void next()
	replyType = KaffeineIface_ftable[8][0]; 
	next( );
    } break;
    case 9: { // void previous()
	replyType = KaffeineIface_ftable[9][0]; 
	previous( );
    } break;
    case 10: { // void changePlaylist()
	replyType = KaffeineIface_ftable[10][0]; 
	changePlaylist( );
    } break;
    case 11: { // bool isPlaying()
	replyType = KaffeineIface_ftable[11][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isPlaying( );
    } break;
    case 12: { // bool isVideo()
	replyType = KaffeineIface_ftable[12][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isVideo( );
    } break;
    case 13: { // TQString title()
	replyType = KaffeineIface_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << title( );
    } break;
    case 14: { // TQString artist()
	replyType = KaffeineIface_ftable[14][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << artist( );
    } break;
    case 15: { // TQString album()
	replyType = KaffeineIface_ftable[15][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << album( );
    } break;
    case 16: { // TQString track()
	replyType = KaffeineIface_ftable[16][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << track( );
    } break;
    case 17: { // TQString getFileName()
	replyType = KaffeineIface_ftable[17][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getFileName( );
    } break;
    case 18: { // void random()
	replyType = KaffeineIface_ftable[18][0]; 
	random( );
    } break;
    case 19: { // void fullscreen()
	replyType = KaffeineIface_ftable[19][0]; 
	fullscreen( );
    } break;
    case 20: { // void minimal()
	replyType = KaffeineIface_ftable[20][0]; 
	minimal( );
    } break;
    case 21: { // int getLength()
	replyType = KaffeineIface_ftable[21][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getLength( );
    } break;
    case 22: { // int getTimePos()
	replyType = KaffeineIface_ftable[22][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getTimePos( );
    } break;
    case 23: { // void posPlus()
	replyType = KaffeineIface_ftable[23][0]; 
	posPlus( );
    } break;
    case 24: { // void posMinus()
	replyType = KaffeineIface_ftable[24][0]; 
	posMinus( );
    } break;
    case 25: { // void volUp()
	replyType = KaffeineIface_ftable[25][0]; 
	volUp( );
    } break;
    case 26: { // void volDown()
	replyType = KaffeineIface_ftable[26][0]; 
	volDown( );
    } break;
    case 27: { // void mute()
	replyType = KaffeineIface_ftable[27][0]; 
	mute( );
    } break;
    case 28: { // void quit()
	replyType = KaffeineIface_ftable[28][0]; 
	quit( );
    } break;
    case 29: { // void setNumber(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KaffeineIface_ftable[29][0]; 
	setNumber(arg0 );
    } break;
    case 30: { // void dvbNewTimer(TQString,TQString,TQString,TQString)
	TQString arg0;
	TQString arg1;
	TQString arg2;
	TQString arg3;
	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;
	replyType = KaffeineIface_ftable[30][0]; 
	dvbNewTimer(arg0, arg1, arg2, arg3 );
    } break;
    case 31: { // int dvbSNR(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KaffeineIface_ftable[31][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dvbSNR(arg0 );
    } break;
    case 32: { // void dvbOSD()
	replyType = KaffeineIface_ftable[32][0]; 
	dvbOSD( );
    } break;
    case 33: { // void dvbOSDNextChannel()
	replyType = KaffeineIface_ftable[33][0]; 
	dvbOSDNextChannel( );
    } break;
    case 34: { // void dvbOSDPreviousChannel()
	replyType = KaffeineIface_ftable[34][0]; 
	dvbOSDPreviousChannel( );
    } break;
    case 35: { // void dvbOSDNextProgram()
	replyType = KaffeineIface_ftable[35][0]; 
	dvbOSDNextProgram( );
    } break;
    case 36: { // void dvbOSDPreviousProgram()
	replyType = KaffeineIface_ftable[36][0]; 
	dvbOSDPreviousProgram( );
    } break;
    case 37: { // void dvbOSDZap()
	replyType = KaffeineIface_ftable[37][0]; 
	dvbOSDZap( );
    } break;
    case 38: { // void playDvb()
	replyType = KaffeineIface_ftable[38][0]; 
	playDvb( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


