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

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

#include <kdatastream.h>

namespace KMPlayer {

static const char* const PartBase_ftable[4][3] = {
    { "void", "toggleFullScreen()", "toggleFullScreen()" },
    { "bool", "isPlaying()", "isPlaying()" },
    { "bool", "isPaused()", "isPaused()" },
    { 0, 0, 0 }
};
static const int PartBase_ftable_hiddens[3] = {
    0,
    0,
    0,
};

bool PartBase::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == PartBase_ftable[0][1] ) { // void toggleFullScreen()
	replyType = PartBase_ftable[0][0]; 
	toggleFullScreen( );
    } else if ( fun == PartBase_ftable[1][1] ) { // bool isPlaying()
	replyType = PartBase_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isPlaying( );
    } else if ( fun == PartBase_ftable[2][1] ) { // bool isPaused()
	replyType = PartBase_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isPaused( );
    } else {
	return KMediaPlayer::Player::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList PartBase::interfaces()
{
    QCStringList ifaces = KMediaPlayer::Player::interfaces();
    ifaces += "KMPlayer::PartBase";
    return ifaces;
}

QCStringList PartBase::functions()
{
    QCStringList funcs = KMediaPlayer::Player::functions();
    for ( int i = 0; PartBase_ftable[i][2]; i++ ) {
	if (PartBase_ftable_hiddens[i])
	    continue;
	TQCString func = PartBase_ftable[i][0];
	func += ' ';
	func += PartBase_ftable[i][2];
	funcs << func;
    }
    return funcs;
}

} // namespace

