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

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-amarok/src/amarok-trinity-14.1.6/amarok/src/amarokcore/amarokdcopiface.h"

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


static const int AmarokCollectionInterface_fhash = 23;
static const char* const AmarokCollectionInterface_ftable[23][3] = {
    { "int", "totalAlbums()", "totalAlbums()" },
    { "int", "totalArtists()", "totalArtists()" },
    { "int", "totalComposers()", "totalComposers()" },
    { "int", "totalCompilations()", "totalCompilations()" },
    { "int", "totalGenres()", "totalGenres()" },
    { "int", "totalTracks()", "totalTracks()" },
    { "bool", "isDirInCollection(TQString)", "isDirInCollection(TQString)" },
    { "bool", "moveFile(TQString,TQString,bool)", "moveFile(TQString oldURL,TQString newURL,bool overwrite)" },
    { "TQStringList", "query(TQString)", "query(TQString sql)" },
    { "TQStringList", "similarArtists(int)", "similarArtists(int artists)" },
    { "void", "migrateFile(TQString,TQString)", "migrateFile(TQString oldURL,TQString newURL)" },
    { "void", "scanCollection()", "scanCollection()" },
    { "void", "scanCollectionChanges()", "scanCollectionChanges()" },
    { "void", "disableAutoScoring(bool)", "disableAutoScoring(bool disable)" },
    { "void", "scanPause()", "scanPause()" },
    { "void", "scanUnpause()", "scanUnpause()" },
    { "void", "scannerAcknowledged()", "scannerAcknowledged()" },
    { "int", "addLabels(TQString,TQStringList)", "addLabels(TQString url,TQStringList labels)" },
    { "void", "removeLabels(TQString,TQStringList)", "removeLabels(TQString url,TQStringList oldLabels)" },
    { "int", "deviceId(TQString)", "deviceId(TQString url)" },
    { "TQString", "relativePath(TQString)", "relativePath(TQString url)" },
    { "TQString", "absolutePath(int,TQString)", "absolutePath(int deviceid,TQString relativePath)" },
    { 0, 0, 0 }
};
static const int AmarokCollectionInterface_ftable_hiddens[22] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool AmarokCollectionInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( AmarokCollectionInterface_fhash, true, false );
	for ( int i = 0; AmarokCollectionInterface_ftable[i][1]; i++ )
	    fdict->insert( AmarokCollectionInterface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // int totalAlbums()
	replyType = AmarokCollectionInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << totalAlbums( );
    } break;
    case 1: { // int totalArtists()
	replyType = AmarokCollectionInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << totalArtists( );
    } break;
    case 2: { // int totalComposers()
	replyType = AmarokCollectionInterface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << totalComposers( );
    } break;
    case 3: { // int totalCompilations()
	replyType = AmarokCollectionInterface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << totalCompilations( );
    } break;
    case 4: { // int totalGenres()
	replyType = AmarokCollectionInterface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << totalGenres( );
    } break;
    case 5: { // int totalTracks()
	replyType = AmarokCollectionInterface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << totalTracks( );
    } break;
    case 6: { // bool isDirInCollection(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokCollectionInterface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isDirInCollection(arg0 );
    } break;
    case 7: { // bool moveFile(TQString,TQString,bool)
	TQString arg0;
	TQString arg1;
	bool 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 = AmarokCollectionInterface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << moveFile(arg0, arg1, arg2 );
    } break;
    case 8: { // TQStringList query(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokCollectionInterface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << query(arg0 );
    } break;
    case 9: { // TQStringList similarArtists(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokCollectionInterface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << similarArtists(arg0 );
    } break;
    case 10: { // void migrateFile(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 = AmarokCollectionInterface_ftable[10][0]; 
	migrateFile(arg0, arg1 );
    } break;
    case 11: { // void scanCollection()
	replyType = AmarokCollectionInterface_ftable[11][0]; 
	scanCollection( );
    } break;
    case 12: { // void scanCollectionChanges()
	replyType = AmarokCollectionInterface_ftable[12][0]; 
	scanCollectionChanges( );
    } break;
    case 13: { // void disableAutoScoring(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokCollectionInterface_ftable[13][0]; 
	disableAutoScoring(arg0 );
    } break;
    case 14: { // void scanPause()
	replyType = AmarokCollectionInterface_ftable[14][0]; 
	scanPause( );
    } break;
    case 15: { // void scanUnpause()
	replyType = AmarokCollectionInterface_ftable[15][0]; 
	scanUnpause( );
    } break;
    case 16: { // void scannerAcknowledged()
	replyType = AmarokCollectionInterface_ftable[16][0]; 
	scannerAcknowledged( );
    } break;
    case 17: { // int addLabels(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 = AmarokCollectionInterface_ftable[17][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << addLabels(arg0, arg1 );
    } break;
    case 18: { // void removeLabels(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 = AmarokCollectionInterface_ftable[18][0]; 
	removeLabels(arg0, arg1 );
    } break;
    case 19: { // int deviceId(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokCollectionInterface_ftable[19][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << deviceId(arg0 );
    } break;
    case 20: { // TQString relativePath(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokCollectionInterface_ftable[20][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << relativePath(arg0 );
    } break;
    case 21: { // TQString absolutePath(int,TQString)
	int arg0;
	TQString arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = AmarokCollectionInterface_ftable[21][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << absolutePath(arg0, arg1 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


#include <kdatastream.h>


static const char* const AmarokContextBrowserInterface_ftable[5][3] = {
    { "void", "showCurrentTrack()", "showCurrentTrack()" },
    { "void", "showLyrics()", "showLyrics()" },
    { "void", "showWiki()", "showWiki()" },
    { "void", "showLyrics(TQCString)", "showLyrics(TQCString lyrics)" },
    { 0, 0, 0 }
};
static const int AmarokContextBrowserInterface_ftable_hiddens[4] = {
    0,
    0,
    0,
    0,
};

bool AmarokContextBrowserInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == AmarokContextBrowserInterface_ftable[0][1] ) { // void showCurrentTrack()
	replyType = AmarokContextBrowserInterface_ftable[0][0]; 
	showCurrentTrack( );
    } else if ( fun == AmarokContextBrowserInterface_ftable[1][1] ) { // void showLyrics()
	replyType = AmarokContextBrowserInterface_ftable[1][0]; 
	showLyrics( );
    } else if ( fun == AmarokContextBrowserInterface_ftable[2][1] ) { // void showWiki()
	replyType = AmarokContextBrowserInterface_ftable[2][0]; 
	showWiki( );
    } else if ( fun == AmarokContextBrowserInterface_ftable[3][1] ) { // void showLyrics(TQCString)
	TQCString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokContextBrowserInterface_ftable[3][0]; 
	showLyrics(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


#include <kdatastream.h>


static const char* const AmarokDevicesInterface_ftable[5][3] = {
    { "void", "mediumAdded(TQString)", "mediumAdded(TQString name)" },
    { "void", "mediumRemoved(TQString)", "mediumRemoved(TQString name)" },
    { "void", "mediumChanged(TQString)", "mediumChanged(TQString name)" },
    { "TQStringList", "showDeviceList()", "showDeviceList()" },
    { 0, 0, 0 }
};
static const int AmarokDevicesInterface_ftable_hiddens[4] = {
    0,
    0,
    0,
    0,
};

bool AmarokDevicesInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == AmarokDevicesInterface_ftable[0][1] ) { // void mediumAdded(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokDevicesInterface_ftable[0][0]; 
	mediumAdded(arg0 );
    } else if ( fun == AmarokDevicesInterface_ftable[1][1] ) { // void mediumRemoved(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokDevicesInterface_ftable[1][0]; 
	mediumRemoved(arg0 );
    } else if ( fun == AmarokDevicesInterface_ftable[2][1] ) { // void mediumChanged(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokDevicesInterface_ftable[2][0]; 
	mediumChanged(arg0 );
    } else if ( fun == AmarokDevicesInterface_ftable[3][1] ) { // TQStringList showDeviceList()
	replyType = AmarokDevicesInterface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << showDeviceList( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


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


static const int AmarokMediaBrowserInterface_fhash = 11;
static const char* const AmarokMediaBrowserInterface_ftable[9][3] = {
    { "void", "deviceConnect()", "deviceConnect()" },
    { "void", "deviceDisconnect()", "deviceDisconnect()" },
    { "void", "deviceSwitch(TQString)", "deviceSwitch(TQString name)" },
    { "TQStringList", "deviceList()", "deviceList()" },
    { "void", "queue(KURL)", "queue(KURL url)" },
    { "void", "queueList(KURL::List)", "queueList(KURL::List url)" },
    { "void", "transfer()", "transfer()" },
    { "void", "transcodingFinished(TQString,TQString)", "transcodingFinished(TQString src,TQString dest)" },
    { 0, 0, 0 }
};
static const int AmarokMediaBrowserInterface_ftable_hiddens[8] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool AmarokMediaBrowserInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( AmarokMediaBrowserInterface_fhash, true, false );
	for ( int i = 0; AmarokMediaBrowserInterface_ftable[i][1]; i++ )
	    fdict->insert( AmarokMediaBrowserInterface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // void deviceConnect()
	replyType = AmarokMediaBrowserInterface_ftable[0][0]; 
	deviceConnect( );
    } break;
    case 1: { // void deviceDisconnect()
	replyType = AmarokMediaBrowserInterface_ftable[1][0]; 
	deviceDisconnect( );
    } break;
    case 2: { // void deviceSwitch(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokMediaBrowserInterface_ftable[2][0]; 
	deviceSwitch(arg0 );
    } break;
    case 3: { // TQStringList deviceList()
	replyType = AmarokMediaBrowserInterface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << deviceList( );
    } break;
    case 4: { // void queue(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokMediaBrowserInterface_ftable[4][0]; 
	queue(arg0 );
    } break;
    case 5: { // void queueList(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokMediaBrowserInterface_ftable[5][0]; 
	queueList(arg0 );
    } break;
    case 6: { // void transfer()
	replyType = AmarokMediaBrowserInterface_ftable[6][0]; 
	transfer( );
    } break;
    case 7: { // void transcodingFinished(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 = AmarokMediaBrowserInterface_ftable[7][0]; 
	transcodingFinished(arg0, arg1 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


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


static const int AmarokPlayerInterface_fhash = 79;
static const char* const AmarokPlayerInterface_ftable[74][3] = {
    { "TQString", "version()", "version()" },
    { "bool", "dynamicModeStatus()", "dynamicModeStatus()" },
    { "bool", "equalizerEnabled()", "equalizerEnabled()" },
    { "bool", "osdEnabled()", "osdEnabled()" },
    { "bool", "isPlaying()", "isPlaying()" },
    { "bool", "randomModeStatus()", "randomModeStatus()" },
    { "bool", "repeatPlaylistStatus()", "repeatPlaylistStatus()" },
    { "bool", "repeatTrackStatus()", "repeatTrackStatus()" },
    { "int", "getVolume()", "getVolume()" },
    { "int", "sampleRate()", "sampleRate()" },
    { "float", "score()", "score()" },
    { "int", "rating()", "rating()" },
    { "int", "status()", "status()" },
    { "int", "trackCurrentTime()", "trackCurrentTime()" },
    { "int", "trackCurrentTimeMs()", "trackCurrentTimeMs()" },
    { "int", "trackPlayCounter()", "trackPlayCounter()" },
    { "int", "trackTotalTime()", "trackTotalTime()" },
    { "TQStringList", "labels()", "labels()" },
    { "TQString", "album()", "album()" },
    { "TQString", "artist()", "artist()" },
    { "TQString", "bitrate()", "bitrate()" },
    { "TQString", "comment()", "comment()" },
    { "TQString", "coverImage()", "coverImage()" },
    { "TQString", "currentTime()", "currentTime()" },
    { "TQString", "encodedURL()", "encodedURL()" },
    { "TQString", "engine()", "engine()" },
    { "TQString", "genre()", "genre()" },
    { "TQString", "lyrics()", "lyrics()" },
    { "TQString", "lyricsByPath(TQString)", "lyricsByPath(TQString path)" },
    { "TQString", "lastfmStation()", "lastfmStation()" },
    { "TQString", "nowPlaying()", "nowPlaying()" },
    { "TQString", "path()", "path()" },
    { "TQString", "setContextStyle(TQString)", "setContextStyle(TQString)" },
    { "TQString", "title()", "title()" },
    { "TQString", "totalTime()", "totalTime()" },
    { "TQString", "track()", "track()" },
    { "TQString", "type()", "type()" },
    { "TQString", "year()", "year()" },
    { "void", "configEqualizer()", "configEqualizer()" },
    { "void", "enableOSD(bool)", "enableOSD(bool enable)" },
    { "void", "enableRandomMode(bool)", "enableRandomMode(bool enable)" },
    { "void", "enableRepeatPlaylist(bool)", "enableRepeatPlaylist(bool enable)" },
    { "void", "enableRepeatTrack(bool)", "enableRepeatTrack(bool enable)" },
    { "void", "mediaDeviceMount()", "mediaDeviceMount()" },
    { "void", "mediaDeviceUmount()", "mediaDeviceUmount()" },
    { "void", "mute()", "mute()" },
    { "void", "next()", "next()" },
    { "void", "pause()", "pause()" },
    { "void", "play()", "play()" },
    { "void", "playPause()", "playPause()" },
    { "void", "prev()", "prev()" },
    { "void", "queueForTransfer(KURL)", "queueForTransfer(KURL url)" },
    { "void", "seek(int)", "seek(int s)" },
    { "void", "seekRelative(int)", "seekRelative(int s)" },
    { "void", "setEqualizer(int,int,int,int,int,int,int,int,int,int,int)", "setEqualizer(int,int,int,int,int,int,int,int,int,int,int)" },
    { "void", "setEqualizerEnabled(bool)", "setEqualizerEnabled(bool active)" },
    { "void", "setEqualizerPreset(TQString)", "setEqualizerPreset(TQString name)" },
    { "void", "setLyricsByPath(TQString,TQString)", "setLyricsByPath(TQString url,TQString lyrics)" },
    { "void", "setBpm(float)", "setBpm(float bpm)" },
    { "void", "setBpmByPath(TQString,float)", "setBpmByPath(TQString url,float bpm)" },
    { "void", "setScore(float)", "setScore(float score)" },
    { "void", "setScoreByPath(TQString,float)", "setScoreByPath(TQString url,float score)" },
    { "void", "setRating(int)", "setRating(int rating)" },
    { "void", "setRatingByPath(TQString,int)", "setRatingByPath(TQString url,int rating)" },
    { "void", "setVolume(int)", "setVolume(int volume)" },
    { "void", "setVolumeRelative(int)", "setVolumeRelative(int ticks)" },
    { "void", "showBrowser(TQString)", "showBrowser(TQString browser)" },
    { "void", "showOSD()", "showOSD()" },
    { "void", "stop()", "stop()" },
    { "void", "transferDeviceFiles()", "transferDeviceFiles()" },
    { "void", "volumeDown()", "volumeDown()" },
    { "void", "volumeUp()", "volumeUp()" },
    { "void", "transferCliArgs(TQStringList)", "transferCliArgs(TQStringList args)" },
    { 0, 0, 0 }
};
static const int AmarokPlayerInterface_ftable_hiddens[73] = {
    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,
    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 AmarokPlayerInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( AmarokPlayerInterface_fhash, true, false );
	for ( int i = 0; AmarokPlayerInterface_ftable[i][1]; i++ )
	    fdict->insert( AmarokPlayerInterface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // TQString version()
	replyType = AmarokPlayerInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << version( );
    } break;
    case 1: { // bool dynamicModeStatus()
	replyType = AmarokPlayerInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << dynamicModeStatus( );
    } break;
    case 2: { // bool equalizerEnabled()
	replyType = AmarokPlayerInterface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << equalizerEnabled( );
    } break;
    case 3: { // bool osdEnabled()
	replyType = AmarokPlayerInterface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << osdEnabled( );
    } break;
    case 4: { // bool isPlaying()
	replyType = AmarokPlayerInterface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isPlaying( );
    } break;
    case 5: { // bool randomModeStatus()
	replyType = AmarokPlayerInterface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << randomModeStatus( );
    } break;
    case 6: { // bool repeatPlaylistStatus()
	replyType = AmarokPlayerInterface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << repeatPlaylistStatus( );
    } break;
    case 7: { // bool repeatTrackStatus()
	replyType = AmarokPlayerInterface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << repeatTrackStatus( );
    } break;
    case 8: { // int getVolume()
	replyType = AmarokPlayerInterface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getVolume( );
    } break;
    case 9: { // int sampleRate()
	replyType = AmarokPlayerInterface_ftable[9][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << sampleRate( );
    } break;
    case 10: { // float score()
	replyType = AmarokPlayerInterface_ftable[10][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << score( );
    } break;
    case 11: { // int rating()
	replyType = AmarokPlayerInterface_ftable[11][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << rating( );
    } break;
    case 12: { // int status()
	replyType = AmarokPlayerInterface_ftable[12][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << status( );
    } break;
    case 13: { // int trackCurrentTime()
	replyType = AmarokPlayerInterface_ftable[13][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << trackCurrentTime( );
    } break;
    case 14: { // int trackCurrentTimeMs()
	replyType = AmarokPlayerInterface_ftable[14][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << trackCurrentTimeMs( );
    } break;
    case 15: { // int trackPlayCounter()
	replyType = AmarokPlayerInterface_ftable[15][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << trackPlayCounter( );
    } break;
    case 16: { // int trackTotalTime()
	replyType = AmarokPlayerInterface_ftable[16][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << trackTotalTime( );
    } break;
    case 17: { // TQStringList labels()
	replyType = AmarokPlayerInterface_ftable[17][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << labels( );
    } break;
    case 18: { // TQString album()
	replyType = AmarokPlayerInterface_ftable[18][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << album( );
    } break;
    case 19: { // TQString artist()
	replyType = AmarokPlayerInterface_ftable[19][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << artist( );
    } break;
    case 20: { // TQString bitrate()
	replyType = AmarokPlayerInterface_ftable[20][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << bitrate( );
    } break;
    case 21: { // TQString comment()
	replyType = AmarokPlayerInterface_ftable[21][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << comment( );
    } break;
    case 22: { // TQString coverImage()
	replyType = AmarokPlayerInterface_ftable[22][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << coverImage( );
    } break;
    case 23: { // TQString currentTime()
	replyType = AmarokPlayerInterface_ftable[23][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << currentTime( );
    } break;
    case 24: { // TQString encodedURL()
	replyType = AmarokPlayerInterface_ftable[24][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << encodedURL( );
    } break;
    case 25: { // TQString engine()
	replyType = AmarokPlayerInterface_ftable[25][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << engine( );
    } break;
    case 26: { // TQString genre()
	replyType = AmarokPlayerInterface_ftable[26][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << genre( );
    } break;
    case 27: { // TQString lyrics()
	replyType = AmarokPlayerInterface_ftable[27][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << lyrics( );
    } break;
    case 28: { // TQString lyricsByPath(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[28][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << lyricsByPath(arg0 );
    } break;
    case 29: { // TQString lastfmStation()
	replyType = AmarokPlayerInterface_ftable[29][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << lastfmStation( );
    } break;
    case 30: { // TQString nowPlaying()
	replyType = AmarokPlayerInterface_ftable[30][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << nowPlaying( );
    } break;
    case 31: { // TQString path()
	replyType = AmarokPlayerInterface_ftable[31][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << path( );
    } break;
    case 32: { // TQString setContextStyle(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[32][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << setContextStyle(arg0 );
    } break;
    case 33: { // TQString title()
	replyType = AmarokPlayerInterface_ftable[33][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << title( );
    } break;
    case 34: { // TQString totalTime()
	replyType = AmarokPlayerInterface_ftable[34][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << totalTime( );
    } break;
    case 35: { // TQString track()
	replyType = AmarokPlayerInterface_ftable[35][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << track( );
    } break;
    case 36: { // TQString type()
	replyType = AmarokPlayerInterface_ftable[36][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << type( );
    } break;
    case 37: { // TQString year()
	replyType = AmarokPlayerInterface_ftable[37][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << year( );
    } break;
    case 38: { // void configEqualizer()
	replyType = AmarokPlayerInterface_ftable[38][0]; 
	configEqualizer( );
    } break;
    case 39: { // void enableOSD(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[39][0]; 
	enableOSD(arg0 );
    } break;
    case 40: { // void enableRandomMode(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[40][0]; 
	enableRandomMode(arg0 );
    } break;
    case 41: { // void enableRepeatPlaylist(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[41][0]; 
	enableRepeatPlaylist(arg0 );
    } break;
    case 42: { // void enableRepeatTrack(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[42][0]; 
	enableRepeatTrack(arg0 );
    } break;
    case 43: { // void mediaDeviceMount()
	replyType = AmarokPlayerInterface_ftable[43][0]; 
	mediaDeviceMount( );
    } break;
    case 44: { // void mediaDeviceUmount()
	replyType = AmarokPlayerInterface_ftable[44][0]; 
	mediaDeviceUmount( );
    } break;
    case 45: { // void mute()
	replyType = AmarokPlayerInterface_ftable[45][0]; 
	mute( );
    } break;
    case 46: { // void next()
	replyType = AmarokPlayerInterface_ftable[46][0]; 
	next( );
    } break;
    case 47: { // void pause()
	replyType = AmarokPlayerInterface_ftable[47][0]; 
	pause( );
    } break;
    case 48: { // void play()
	replyType = AmarokPlayerInterface_ftable[48][0]; 
	play( );
    } break;
    case 49: { // void playPause()
	replyType = AmarokPlayerInterface_ftable[49][0]; 
	playPause( );
    } break;
    case 50: { // void prev()
	replyType = AmarokPlayerInterface_ftable[50][0]; 
	prev( );
    } break;
    case 51: { // void queueForTransfer(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[51][0]; 
	queueForTransfer(arg0 );
    } break;
    case 52: { // void seek(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[52][0]; 
	seek(arg0 );
    } break;
    case 53: { // void seekRelative(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[53][0]; 
	seekRelative(arg0 );
    } break;
    case 54: { // void setEqualizer(int,int,int,int,int,int,int,int,int,int,int)
	int arg0;
	int arg1;
	int arg2;
	int arg3;
	int arg4;
	int arg5;
	int arg6;
	int arg7;
	int arg8;
	int arg9;
	int arg10;
	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;
	if (arg.atEnd()) return false;
	arg >> arg6;
	if (arg.atEnd()) return false;
	arg >> arg7;
	if (arg.atEnd()) return false;
	arg >> arg8;
	if (arg.atEnd()) return false;
	arg >> arg9;
	if (arg.atEnd()) return false;
	arg >> arg10;
	replyType = AmarokPlayerInterface_ftable[54][0]; 
	setEqualizer(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10 );
    } break;
    case 55: { // void setEqualizerEnabled(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[55][0]; 
	setEqualizerEnabled(arg0 );
    } break;
    case 56: { // void setEqualizerPreset(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[56][0]; 
	setEqualizerPreset(arg0 );
    } break;
    case 57: { // void setLyricsByPath(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 = AmarokPlayerInterface_ftable[57][0]; 
	setLyricsByPath(arg0, arg1 );
    } break;
    case 58: { // void setBpm(float)
	float arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[58][0]; 
	setBpm(arg0 );
    } break;
    case 59: { // void setBpmByPath(TQString,float)
	TQString arg0;
	float arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = AmarokPlayerInterface_ftable[59][0]; 
	setBpmByPath(arg0, arg1 );
    } break;
    case 60: { // void setScore(float)
	float arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[60][0]; 
	setScore(arg0 );
    } break;
    case 61: { // void setScoreByPath(TQString,float)
	TQString arg0;
	float arg1;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	if (arg.atEnd()) return false;
	arg >> arg1;
	replyType = AmarokPlayerInterface_ftable[61][0]; 
	setScoreByPath(arg0, arg1 );
    } break;
    case 62: { // void setRating(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[62][0]; 
	setRating(arg0 );
    } break;
    case 63: { // void setRatingByPath(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 = AmarokPlayerInterface_ftable[63][0]; 
	setRatingByPath(arg0, arg1 );
    } break;
    case 64: { // void setVolume(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[64][0]; 
	setVolume(arg0 );
    } break;
    case 65: { // void setVolumeRelative(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[65][0]; 
	setVolumeRelative(arg0 );
    } break;
    case 66: { // void showBrowser(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[66][0]; 
	showBrowser(arg0 );
    } break;
    case 67: { // void showOSD()
	replyType = AmarokPlayerInterface_ftable[67][0]; 
	showOSD( );
    } break;
    case 68: { // void stop()
	replyType = AmarokPlayerInterface_ftable[68][0]; 
	stop( );
    } break;
    case 69: { // void transferDeviceFiles()
	replyType = AmarokPlayerInterface_ftable[69][0]; 
	transferDeviceFiles( );
    } break;
    case 70: { // void volumeDown()
	replyType = AmarokPlayerInterface_ftable[70][0]; 
	volumeDown( );
    } break;
    case 71: { // void volumeUp()
	replyType = AmarokPlayerInterface_ftable[71][0]; 
	volumeUp( );
    } break;
    case 72: { // void transferCliArgs(TQStringList)
	TQStringList arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlayerInterface_ftable[72][0]; 
	transferCliArgs(arg0 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


#include <kdatastream.h>


static const char* const AmarokPlaylistBrowserInterface_ftable[5][3] = {
    { "void", "addPodcast(TQString)", "addPodcast(TQString)" },
    { "void", "scanPodcasts()", "scanPodcasts()" },
    { "void", "addPlaylist(TQString)", "addPlaylist(TQString)" },
    { "int", "loadPlaylist(TQString)", "loadPlaylist(TQString)" },
    { 0, 0, 0 }
};
static const int AmarokPlaylistBrowserInterface_ftable_hiddens[4] = {
    0,
    0,
    0,
    0,
};

bool AmarokPlaylistBrowserInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == AmarokPlaylistBrowserInterface_ftable[0][1] ) { // void addPodcast(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistBrowserInterface_ftable[0][0]; 
	addPodcast(arg0 );
    } else if ( fun == AmarokPlaylistBrowserInterface_ftable[1][1] ) { // void scanPodcasts()
	replyType = AmarokPlaylistBrowserInterface_ftable[1][0]; 
	scanPodcasts( );
    } else if ( fun == AmarokPlaylistBrowserInterface_ftable[2][1] ) { // void addPlaylist(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistBrowserInterface_ftable[2][0]; 
	addPlaylist(arg0 );
    } else if ( fun == AmarokPlaylistBrowserInterface_ftable[3][1] ) { // int loadPlaylist(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistBrowserInterface_ftable[3][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << loadPlaylist(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


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


static const int AmarokPlaylistInterface_fhash = 23;
static const char* const AmarokPlaylistInterface_ftable[21][3] = {
    { "int", "getActiveIndex()", "getActiveIndex()" },
    { "int", "getTotalTrackCount()", "getTotalTrackCount()" },
    { "TQString", "saveCurrentPlaylist()", "saveCurrentPlaylist()" },
    { "void", "addMedia(KURL)", "addMedia(KURL)" },
    { "void", "queueMedia(KURL)", "queueMedia(KURL)" },
    { "void", "addMediaList(KURL::List)", "addMediaList(KURL::List)" },
    { "void", "clearPlaylist()", "clearPlaylist()" },
    { "TQString", "currentTrackUniqueId()", "currentTrackUniqueId()" },
    { "void", "playByIndex(int)", "playByIndex(int)" },
    { "void", "playMedia(KURL)", "playMedia(KURL)" },
    { "void", "popupMessage(TQString)", "popupMessage(TQString)" },
    { "void", "removeCurrentTrack()", "removeCurrentTrack()" },
    { "void", "removeByIndex(int)", "removeByIndex(int)" },
    { "void", "repopulate()", "repopulate()" },
    { "void", "saveM3u(TQString,bool)", "saveM3u(TQString path,bool relativePaths)" },
    { "void", "setStopAfterCurrent(bool)", "setStopAfterCurrent(bool)" },
    { "void", "shortStatusMessage(TQString)", "shortStatusMessage(TQString)" },
    { "void", "shufflePlaylist()", "shufflePlaylist()" },
    { "void", "togglePlaylist()", "togglePlaylist()" },
    { "TQStringList", "filenames()", "filenames()" },
    { 0, 0, 0 }
};
static const int AmarokPlaylistInterface_ftable_hiddens[20] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool AmarokPlaylistInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( AmarokPlaylistInterface_fhash, true, false );
	for ( int i = 0; AmarokPlaylistInterface_ftable[i][1]; i++ )
	    fdict->insert( AmarokPlaylistInterface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // int getActiveIndex()
	replyType = AmarokPlaylistInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getActiveIndex( );
    } break;
    case 1: { // int getTotalTrackCount()
	replyType = AmarokPlaylistInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << getTotalTrackCount( );
    } break;
    case 2: { // TQString saveCurrentPlaylist()
	replyType = AmarokPlaylistInterface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << saveCurrentPlaylist( );
    } break;
    case 3: { // void addMedia(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistInterface_ftable[3][0]; 
	addMedia(arg0 );
    } break;
    case 4: { // void queueMedia(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistInterface_ftable[4][0]; 
	queueMedia(arg0 );
    } break;
    case 5: { // void addMediaList(KURL::List)
	KURL::List arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistInterface_ftable[5][0]; 
	addMediaList(arg0 );
    } break;
    case 6: { // void clearPlaylist()
	replyType = AmarokPlaylistInterface_ftable[6][0]; 
	clearPlaylist( );
    } break;
    case 7: { // TQString currentTrackUniqueId()
	replyType = AmarokPlaylistInterface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << currentTrackUniqueId( );
    } break;
    case 8: { // void playByIndex(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistInterface_ftable[8][0]; 
	playByIndex(arg0 );
    } break;
    case 9: { // void playMedia(KURL)
	KURL arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistInterface_ftable[9][0]; 
	playMedia(arg0 );
    } break;
    case 10: { // void popupMessage(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistInterface_ftable[10][0]; 
	popupMessage(arg0 );
    } break;
    case 11: { // void removeCurrentTrack()
	replyType = AmarokPlaylistInterface_ftable[11][0]; 
	removeCurrentTrack( );
    } break;
    case 12: { // void removeByIndex(int)
	int arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistInterface_ftable[12][0]; 
	removeByIndex(arg0 );
    } break;
    case 13: { // void repopulate()
	replyType = AmarokPlaylistInterface_ftable[13][0]; 
	repopulate( );
    } break;
    case 14: { // void saveM3u(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 = AmarokPlaylistInterface_ftable[14][0]; 
	saveM3u(arg0, arg1 );
    } break;
    case 15: { // void setStopAfterCurrent(bool)
	bool arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistInterface_ftable[15][0]; 
	setStopAfterCurrent(arg0 );
    } break;
    case 16: { // void shortStatusMessage(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokPlaylistInterface_ftable[16][0]; 
	shortStatusMessage(arg0 );
    } break;
    case 17: { // void shufflePlaylist()
	replyType = AmarokPlaylistInterface_ftable[17][0]; 
	shufflePlaylist( );
    } break;
    case 18: { // void togglePlaylist()
	replyType = AmarokPlaylistInterface_ftable[18][0]; 
	togglePlaylist( );
    } break;
    case 19: { // TQStringList filenames()
	replyType = AmarokPlaylistInterface_ftable[19][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << filenames( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


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


static const int AmarokScriptInterface_fhash = 11;
static const char* const AmarokScriptInterface_ftable[10][3] = {
    { "bool", "runScript(TQString)", "runScript(TQString name)" },
    { "bool", "stopScript(TQString)", "stopScript(TQString name)" },
    { "TQStringList", "listRunningScripts()", "listRunningScripts()" },
    { "void", "addCustomMenuItem(TQString,TQString)", "addCustomMenuItem(TQString submenu,TQString itemTitle)" },
    { "void", "removeCustomMenuItem(TQString,TQString)", "removeCustomMenuItem(TQString submenu,TQString itemTitle)" },
    { "TQString", "readConfig(TQString)", "readConfig(TQString key)" },
    { "TQStringList", "readListConfig(TQString)", "readListConfig(TQString key)" },
    { "TQString", "proxyForUrl(TQString)", "proxyForUrl(TQString url)" },
    { "TQString", "proxyForProtocol(TQString)", "proxyForProtocol(TQString protocol)" },
    { 0, 0, 0 }
};
static const int AmarokScriptInterface_ftable_hiddens[9] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool AmarokScriptInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( AmarokScriptInterface_fhash, true, false );
	for ( int i = 0; AmarokScriptInterface_ftable[i][1]; i++ )
	    fdict->insert( AmarokScriptInterface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // bool runScript(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokScriptInterface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << runScript(arg0 );
    } break;
    case 1: { // bool stopScript(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokScriptInterface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << stopScript(arg0 );
    } break;
    case 2: { // TQStringList listRunningScripts()
	replyType = AmarokScriptInterface_ftable[2][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << listRunningScripts( );
    } break;
    case 3: { // void addCustomMenuItem(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 = AmarokScriptInterface_ftable[3][0]; 
	addCustomMenuItem(arg0, arg1 );
    } break;
    case 4: { // void removeCustomMenuItem(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 = AmarokScriptInterface_ftable[4][0]; 
	removeCustomMenuItem(arg0, arg1 );
    } break;
    case 5: { // TQString readConfig(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokScriptInterface_ftable[5][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readConfig(arg0 );
    } break;
    case 6: { // TQStringList readListConfig(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokScriptInterface_ftable[6][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << readListConfig(arg0 );
    } break;
    case 7: { // TQString proxyForUrl(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokScriptInterface_ftable[7][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << proxyForUrl(arg0 );
    } break;
    case 8: { // TQString proxyForProtocol(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = AmarokScriptInterface_ftable[8][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << proxyForProtocol(arg0 );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

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


