/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from xine_part_iface.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/player-parts/xine-part/xine_part_iface.h"

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


static const int XinePartIface_fhash = 29;
static const char* const XinePartIface_ftable[28][3] = {
    { "int", "getContrast()", "getContrast()" },
    { "void", "setContrast(int)", "setContrast(int c)" },
    { "int", "getBrightness()", "getBrightness()" },
    { "void", "setBrightness(int)", "setBrightness(int b)" },
    { "void", "dvdMenuUp()", "dvdMenuUp()" },
    { "void", "dvdMenuDown()", "dvdMenuDown()" },
    { "void", "dvdMenuLeft()", "dvdMenuLeft()" },
    { "void", "dvdMenuRight()", "dvdMenuRight()" },
    { "void", "dvdMenuSelect()", "dvdMenuSelect()" },
    { "void", "dvdMenuToggle()", "dvdMenuToggle()" },
    { "void", "aspectRatioAuto()", "aspectRatioAuto()" },
    { "void", "aspectRatio4_3()", "aspectRatio4_3()" },
    { "void", "aspectRatioAnamorphic()", "aspectRatioAnamorphic()" },
    { "void", "aspectRatioSquare()", "aspectRatioSquare()" },
    { "void", "aspectRatioDVB()", "aspectRatioDVB()" },
    { "void", "zoomIn()", "zoomIn()" },
    { "void", "zoomOut()", "zoomOut()" },
    { "void", "zoomOff()", "zoomOff()" },
    { "void", "zoomInX()", "zoomInX()" },
    { "void", "zoomOutX()", "zoomOutX()" },
    { "void", "zoomInY()", "zoomInY()" },
    { "void", "zoomOutY()", "zoomOutY()" },
    { "TQString", "screenShot()", "screenShot()" },
    { "void", "nextAudioChannel()", "nextAudioChannel()" },
    { "void", "nextSubtitleChannel()", "nextSubtitleChannel()" },
    { "void", "speedFaster()", "speedFaster()" },
    { "void", "speedSlower()", "speedSlower()" },
    { 0, 0, 0 }
};
static const int XinePartIface_ftable_hiddens[27] = {
    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 XinePartIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( XinePartIface_fhash, true, false );
	for ( int i = 0; XinePartIface_ftable[i][1]; i++ )
	    fdict->insert( XinePartIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // int getContrast()
	replyType = XinePartIface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getContrast( );
    } break;
    case 1: { // void setContrast(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = XinePartIface_ftable[1][0]; 
	setContrast(arg0 );
    } break;
    case 2: { // int getBrightness()
	replyType = XinePartIface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getBrightness( );
    } break;
    case 3: { // void setBrightness(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = XinePartIface_ftable[3][0]; 
	setBrightness(arg0 );
    } break;
    case 4: { // void dvdMenuUp()
	replyType = XinePartIface_ftable[4][0]; 
	dvdMenuUp( );
    } break;
    case 5: { // void dvdMenuDown()
	replyType = XinePartIface_ftable[5][0]; 
	dvdMenuDown( );
    } break;
    case 6: { // void dvdMenuLeft()
	replyType = XinePartIface_ftable[6][0]; 
	dvdMenuLeft( );
    } break;
    case 7: { // void dvdMenuRight()
	replyType = XinePartIface_ftable[7][0]; 
	dvdMenuRight( );
    } break;
    case 8: { // void dvdMenuSelect()
	replyType = XinePartIface_ftable[8][0]; 
	dvdMenuSelect( );
    } break;
    case 9: { // void dvdMenuToggle()
	replyType = XinePartIface_ftable[9][0]; 
	dvdMenuToggle( );
    } break;
    case 10: { // void aspectRatioAuto()
	replyType = XinePartIface_ftable[10][0]; 
	aspectRatioAuto( );
    } break;
    case 11: { // void aspectRatio4_3()
	replyType = XinePartIface_ftable[11][0]; 
	aspectRatio4_3( );
    } break;
    case 12: { // void aspectRatioAnamorphic()
	replyType = XinePartIface_ftable[12][0]; 
	aspectRatioAnamorphic( );
    } break;
    case 13: { // void aspectRatioSquare()
	replyType = XinePartIface_ftable[13][0]; 
	aspectRatioSquare( );
    } break;
    case 14: { // void aspectRatioDVB()
	replyType = XinePartIface_ftable[14][0]; 
	aspectRatioDVB( );
    } break;
    case 15: { // void zoomIn()
	replyType = XinePartIface_ftable[15][0]; 
	zoomIn( );
    } break;
    case 16: { // void zoomOut()
	replyType = XinePartIface_ftable[16][0]; 
	zoomOut( );
    } break;
    case 17: { // void zoomOff()
	replyType = XinePartIface_ftable[17][0]; 
	zoomOff( );
    } break;
    case 18: { // void zoomInX()
	replyType = XinePartIface_ftable[18][0]; 
	zoomInX( );
    } break;
    case 19: { // void zoomOutX()
	replyType = XinePartIface_ftable[19][0]; 
	zoomOutX( );
    } break;
    case 20: { // void zoomInY()
	replyType = XinePartIface_ftable[20][0]; 
	zoomInY( );
    } break;
    case 21: { // void zoomOutY()
	replyType = XinePartIface_ftable[21][0]; 
	zoomOutY( );
    } break;
    case 22: { // TQString screenShot()
	replyType = XinePartIface_ftable[22][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << screenShot( );
    } break;
    case 23: { // void nextAudioChannel()
	replyType = XinePartIface_ftable[23][0]; 
	nextAudioChannel( );
    } break;
    case 24: { // void nextSubtitleChannel()
	replyType = XinePartIface_ftable[24][0]; 
	nextSubtitleChannel( );
    } break;
    case 25: { // void speedFaster()
	replyType = XinePartIface_ftable[25][0]; 
	speedFaster( );
    } break;
    case 26: { // void speedSlower()
	replyType = XinePartIface_ftable[26][0]; 
	speedSlower( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


