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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-tdemultimedia/src/tdemultimedia-trinity-14.1.6/juk/jukIface.h"

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


static const int CollectionIface_fhash = 17;
static const char* const CollectionIface_ftable[16][3] = {
    { "void", "openFile(TQString)", "openFile(TQString file)" },
    { "void", "openFile(TQStringList)", "openFile(TQStringList files)" },
    { "void", "openFile(TQString,TQString)", "openFile(TQString playlist,TQString file)" },
    { "void", "openFile(TQString,TQStringList)", "openFile(TQString playlist,TQStringList files)" },
    { "TQStringList", "playlists()", "playlists()" },
    { "void", "createPlaylist(TQString)", "createPlaylist(TQString)" },
    { "void", "remove()", "remove()" },
    { "void", "removeTrack(TQString,TQString)", "removeTrack(TQString playlist,TQString file)" },
    { "void", "removeTrack(TQString,TQStringList)", "removeTrack(TQString playlist,TQStringList files)" },
    { "TQString", "playlist()", "playlist()" },
    { "TQString", "playingPlaylist()", "playingPlaylist()" },
    { "void", "setPlaylist(TQString)", "setPlaylist(TQString playlist)" },
    { "TQStringList", "playlistTracks(TQString)", "playlistTracks(TQString playlist)" },
    { "TQString", "trackProperty(TQString,TQString)", "trackProperty(TQString file,TQString property)" },
    { "TQPixmap", "trackCover(TQString,TQString)", "trackCover(TQString file,TQString size)" },
    { 0, 0, 0 }
};
static const int CollectionIface_ftable_hiddens[15] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool CollectionIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( CollectionIface_fhash, true, false );
	for ( int i = 0; CollectionIface_ftable[i][1]; i++ )
	    fdict->insert( CollectionIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void openFile(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = CollectionIface_ftable[0][0]; 
	openFile(arg0 );
    } break;
    case 1: { // void openFile(TQStringList)
	TQStringList arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = CollectionIface_ftable[1][0]; 
	openFile(arg0 );
    } break;
    case 2: { // void openFile(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 = CollectionIface_ftable[2][0]; 
	openFile(arg0, arg1 );
    } break;
    case 3: { // void openFile(TQString,TQStringList)
	TQString arg0;
	TQStringList arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = CollectionIface_ftable[3][0]; 
	openFile(arg0, arg1 );
    } break;
    case 4: { // TQStringList playlists()
	replyType = CollectionIface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << playlists( );
    } break;
    case 5: { // void createPlaylist(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = CollectionIface_ftable[5][0]; 
	createPlaylist(arg0 );
    } break;
    case 6: { // void remove()
	replyType = CollectionIface_ftable[6][0]; 
	remove( );
    } break;
    case 7: { // void removeTrack(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 = CollectionIface_ftable[7][0]; 
	removeTrack(arg0, arg1 );
    } break;
    case 8: { // void removeTrack(TQString,TQStringList)
	TQString arg0;
	TQStringList arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = CollectionIface_ftable[8][0]; 
	removeTrack(arg0, arg1 );
    } break;
    case 9: { // TQString playlist()
	replyType = CollectionIface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << playlist( );
    } break;
    case 10: { // TQString playingPlaylist()
	replyType = CollectionIface_ftable[10][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << playingPlaylist( );
    } break;
    case 11: { // void setPlaylist(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = CollectionIface_ftable[11][0]; 
	setPlaylist(arg0 );
    } break;
    case 12: { // TQStringList playlistTracks(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = CollectionIface_ftable[12][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << playlistTracks(arg0 );
    } break;
    case 13: { // TQString trackProperty(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 = CollectionIface_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << trackProperty(arg0, arg1 );
    } break;
    case 14: { // TQPixmap trackCover(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 = CollectionIface_ftable[14][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << trackCover(arg0, arg1 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


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


static const int PlayerIface_fhash = 29;
static const char* const PlayerIface_ftable[29][3] = {
    { "bool", "playing()", "playing()" },
    { "bool", "paused()", "paused()" },
    { "float", "volume()", "volume()" },
    { "int", "status()", "status()" },
    { "TQStringList", "trackProperties()", "trackProperties()" },
    { "TQString", "trackProperty(TQString)", "trackProperty(TQString property)" },
    { "TQPixmap", "trackCover(TQString)", "trackCover(TQString size)" },
    { "TQString", "currentFile()", "currentFile()" },
    { "void", "play()", "play()" },
    { "void", "play(TQString)", "play(TQString file)" },
    { "void", "pause()", "pause()" },
    { "void", "stop()", "stop()" },
    { "void", "playPause()", "playPause()" },
    { "void", "back()", "back()" },
    { "void", "forward()", "forward()" },
    { "void", "seekBack()", "seekBack()" },
    { "void", "seekForward()", "seekForward()" },
    { "void", "forwardAlbum()", "forwardAlbum()" },
    { "void", "volumeUp()", "volumeUp()" },
    { "void", "volumeDown()", "volumeDown()" },
    { "void", "mute()", "mute()" },
    { "void", "setVolume(float)", "setVolume(float volume)" },
    { "void", "seek(int)", "seek(int time)" },
    { "TQString", "playingString()", "playingString()" },
    { "int", "currentTime()", "currentTime()" },
    { "int", "totalTime()", "totalTime()" },
    { "TQString", "randomPlayMode()", "randomPlayMode()" },
    { "void", "setRandomPlayMode(TQString)", "setRandomPlayMode(TQString randomMode)" },
    { 0, 0, 0 }
};
static const int PlayerIface_ftable_hiddens[28] = {
    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 PlayerIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( PlayerIface_fhash, true, false );
	for ( int i = 0; PlayerIface_ftable[i][1]; i++ )
	    fdict->insert( PlayerIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // bool playing()
	replyType = PlayerIface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << playing( );
    } break;
    case 1: { // bool paused()
	replyType = PlayerIface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << paused( );
    } break;
    case 2: { // float volume()
	replyType = PlayerIface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << volume( );
    } break;
    case 3: { // int status()
	replyType = PlayerIface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << status( );
    } break;
    case 4: { // TQStringList trackProperties()
	replyType = PlayerIface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << trackProperties( );
    } break;
    case 5: { // TQString trackProperty(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PlayerIface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << trackProperty(arg0 );
    } break;
    case 6: { // TQPixmap trackCover(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PlayerIface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << trackCover(arg0 );
    } break;
    case 7: { // TQString currentFile()
	replyType = PlayerIface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << currentFile( );
    } break;
    case 8: { // void play()
	replyType = PlayerIface_ftable[8][0]; 
	play( );
    } break;
    case 9: { // void play(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PlayerIface_ftable[9][0]; 
	play(arg0 );
    } break;
    case 10: { // void pause()
	replyType = PlayerIface_ftable[10][0]; 
	pause( );
    } break;
    case 11: { // void stop()
	replyType = PlayerIface_ftable[11][0]; 
	stop( );
    } break;
    case 12: { // void playPause()
	replyType = PlayerIface_ftable[12][0]; 
	playPause( );
    } break;
    case 13: { // void back()
	replyType = PlayerIface_ftable[13][0]; 
	back( );
    } break;
    case 14: { // void forward()
	replyType = PlayerIface_ftable[14][0]; 
	forward( );
    } break;
    case 15: { // void seekBack()
	replyType = PlayerIface_ftable[15][0]; 
	seekBack( );
    } break;
    case 16: { // void seekForward()
	replyType = PlayerIface_ftable[16][0]; 
	seekForward( );
    } break;
    case 17: { // void forwardAlbum()
	replyType = PlayerIface_ftable[17][0]; 
	forwardAlbum( );
    } break;
    case 18: { // void volumeUp()
	replyType = PlayerIface_ftable[18][0]; 
	volumeUp( );
    } break;
    case 19: { // void volumeDown()
	replyType = PlayerIface_ftable[19][0]; 
	volumeDown( );
    } break;
    case 20: { // void mute()
	replyType = PlayerIface_ftable[20][0]; 
	mute( );
    } break;
    case 21: { // void setVolume(float)
	float arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PlayerIface_ftable[21][0]; 
	setVolume(arg0 );
    } break;
    case 22: { // void seek(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PlayerIface_ftable[22][0]; 
	seek(arg0 );
    } break;
    case 23: { // TQString playingString()
	replyType = PlayerIface_ftable[23][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << playingString( );
    } break;
    case 24: { // int currentTime()
	replyType = PlayerIface_ftable[24][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << currentTime( );
    } break;
    case 25: { // int totalTime()
	replyType = PlayerIface_ftable[25][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << totalTime( );
    } break;
    case 26: { // TQString randomPlayMode()
	replyType = PlayerIface_ftable[26][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << randomPlayMode( );
    } break;
    case 27: { // void setRandomPlayMode(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = PlayerIface_ftable[27][0]; 
	setRandomPlayMode(arg0 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


#include <kdatastream.h>


static const char* const SearchIface_ftable[3][3] = {
    { "TQString", "searchText()", "searchText()" },
    { "void", "setSearchText(TQString)", "setSearchText(TQString text)" },
    { 0, 0, 0 }
};
static const int SearchIface_ftable_hiddens[2] = {
    0,
    0,
};

bool SearchIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == SearchIface_ftable[0][1] ) { // TQString searchText()
	replyType = SearchIface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << searchText( );
    } else if ( fun == SearchIface_ftable[1][1] ) { // void setSearchText(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = SearchIface_ftable[1][0]; 
	setSearchText(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


