Commit 4b693885 authored by Laurent Montel's avatar Laurent Montel 😁

Autogenerate it (fix xml)

svn path=/trunk/KDE/kdemultimedia/juk/; revision=626437
parent 81622ea5
......@@ -15,7 +15,7 @@ if(TUNEPIMP_FOUND)
set(tunepimp_SRCS trackpickerdialog.cpp)
endif(TUNEPIMP_FOUND)
set(juk_SRCS searchadaptor.cpp collectionadaptor.cpp playeradaptor.cpp ${tunepimp_SRCS}
set(juk_SRCS ${tunepimp_SRCS}
advancedsearchdialog.cpp
actioncollection.cpp
cache.cpp
......@@ -73,6 +73,11 @@ set(juk_SRCS searchadaptor.cpp collectionadaptor.cpp playeradaptor.cpp ${tunepim
ktrm.cpp
viewmode.cpp )
#Laurent reactivate it
#qt4_add_dbus_adaptor( juk_SRCS org.kde.juk.collection.xml playlistcollection.h PlaylistCollection)
qt4_add_dbus_adaptor( juk_SRCS org.kde.juk.player.xml playermanager.h PlayerManager)
qt4_add_dbus_adaptor( juk_SRCS org.kde.juk.search.xml searchwidget.h SearchWidget)
kde4_automoc(${juk_SRCS})
kde4_add_ui_files(juk_SRCS
......
//HAND EDIT
/*
* This file was generated by dbusidl2cpp version 0.6
* Command line was: dbusidl2cpp -m -a collectionadaptor -- org.kde.juk.collection.xml
*
* dbusidl2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#include "collectionadaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class CollectionAdaptor
*/
CollectionAdaptor::CollectionAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
CollectionAdaptor::~CollectionAdaptor()
{
// destructor
}
void CollectionAdaptor::createPlaylist(const QString &list)
{
// handle method call org.kde.juk.collection.createPlaylist
QMetaObject::invokeMethod(parent(), "createPlaylist", Q_ARG(QString, list));
// Alternative:
//static_cast<YourObjectType *>(parent())->createPlaylist(list);
}
void CollectionAdaptor::open(const QString &playlist, const QStringList &files)
{
// handle method call org.kde.juk.collection.open
QMetaObject::invokeMethod(parent(), "open", Q_ARG(QString, playlist), Q_ARG(QStringList, files));
// Alternative:
//static_cast<YourObjectType *>(parent())->open(playlist, files);
}
void CollectionAdaptor::open(const QStringList &files)
{
// handle method call org.kde.juk.collection.open
QMetaObject::invokeMethod(parent(), "open", Q_ARG(QStringList, files));
// Alternative:
//static_cast<YourObjectType *>(parent())->open(files);
}
void CollectionAdaptor::openFile(const QString &playlist, const QStringList &files)
{
open(playlist, files);
}
void CollectionAdaptor::openFile(const QString &playlist, const QString &file)
{
open(playlist, QStringList(file));
}
void CollectionAdaptor::openFile(const QStringList &files)
{
open(files);
}
void CollectionAdaptor::openFile(const QString &file)
{
open(QStringList(file));
}
QString CollectionAdaptor::playingPlaylist()
{
// handle method call org.kde.juk.collection.playingPlaylist
QString out0;
QMetaObject::invokeMethod(parent(), "playingPlaylist", Q_RETURN_ARG(QString, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->playingPlaylist();
return out0;
}
QString CollectionAdaptor::playlist()
{
// handle method call org.kde.juk.collection.playlist
QString out0;
QMetaObject::invokeMethod(parent(), "playlist", Q_RETURN_ARG(QString, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->playlist();
return out0;
}
QStringList CollectionAdaptor::playlistTracks(const QString &playlist)
{
// handle method call org.kde.juk.collection.playlistTracks
QStringList out0;
QMetaObject::invokeMethod(parent(), "playlistTracks", Q_RETURN_ARG(QStringList, out0), Q_ARG(QString, playlist));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->playlistTracks(playlist);
return out0;
}
QStringList CollectionAdaptor::playlists()
{
// handle method call org.kde.juk.collection.playlists
QStringList out0;
QMetaObject::invokeMethod(parent(), "playlists", Q_RETURN_ARG(QStringList, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->playlists();
return out0;
}
void CollectionAdaptor::remove()
{
// handle method call org.kde.juk.collection.remove
QMetaObject::invokeMethod(parent(), "remove");
// Alternative:
//static_cast<YourObjectType *>(parent())->remove();
}
void CollectionAdaptor::removeTrack(const QString &playlist, const QStringList &files)
{
// handle method call org.kde.juk.collection.removeTrack
QMetaObject::invokeMethod(parent(), "removeTrack", Q_ARG(QString, playlist), Q_ARG(QStringList, files));
// Alternative:
//static_cast<YourObjectType *>(parent())->removeTrack(playlist, files);
}
void CollectionAdaptor::setPlaylist(const QString &playlist)
{
// handle method call org.kde.juk.collection.setPlaylist
QMetaObject::invokeMethod(parent(), "setPlaylist", Q_ARG(QString, playlist));
// Alternative:
//static_cast<YourObjectType *>(parent())->setPlaylist(playlist);
}
QString CollectionAdaptor::trackProperty(const QString &file, const QString &property)
{
// handle method call org.kde.juk.collection.trackProperty
QString out0;
QMetaObject::invokeMethod(parent(), "trackProperty", Q_RETURN_ARG(QString, out0), Q_ARG(QString, file), Q_ARG(QString, property));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->trackProperty(file, property);
return out0;
}
#include "collectionadaptor.moc"
/*
* This file was generated by dbusidl2cpp version 0.6
* Command line was: dbusidl2cpp -m -a collectionadaptor -- org.kde.juk.collection.xml
*
* dbusidl2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef COLLECTIONADAPTOR_H_272971151656658
#define COLLECTIONADAPTOR_H_272971151656658
#include <QtCore/QObject>
#include <QtDBus>
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
/*
* Adaptor class for interface org.kde.juk.collection
*/
class CollectionAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.juk.collection")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.kde.juk.collection\" >\n"
" <method name=\"playlists\" >\n"
" <arg direction=\"out\" type=\"as\" />\n"
" </method>\n"
" <method name=\"openFile\" >\n"
" <arg direction=\"in\" type=\"s\" name=\"file\" />\n"
" </method>\n"
" <method name=\"openFile\" >\n"
" <arg direction=\"in\" type=\"as\" name=\"files\" />\n"
" </method>\n"
" <method name=\"openFile\" >\n"
" <arg direction=\"in\" type=\"s\" name=\"playlist\" />\n"
" <arg direction=\"in\" type=\"s\" name=\"file\" />\n"
" </method>\n"
" <method name=\"openFile\" >\n"
" <arg direction=\"in\" type=\"s\" name=\"playlist\" />\n"
" <arg direction=\"in\" type=\"as\" name=\"files\" />\n"
" </method>\n"
" <method name=\"createPlaylist\" >\n"
" <arg direction=\"in\" type=\"s\" name=\"list\" />\n"
" </method>\n"
" <method name=\"remove\" />\n"
" <method name=\"removeTrack\" >\n"
" <arg direction=\"in\" type=\"s\" name=\"playlist\" />\n"
" <arg direction=\"in\" type=\"as\" name=\"files\" />\n"
" </method>\n"
" <method name=\"playlist\" >\n"
" <arg direction=\"out\" type=\"s\" />\n"
" </method>\n"
" <method name=\"playingPlaylist\" >\n"
" <arg direction=\"out\" type=\"s\" />\n"
" </method>\n"
" <method name=\"setPlaylist\" >\n"
" <arg direction=\"in\" type=\"s\" name=\"playlist\" />\n"
" </method>\n"
" <method name=\"playlistTracks\" >\n"
" <arg direction=\"in\" type=\"s\" name=\"playlist\" />\n"
" <arg direction=\"out\" type=\"as\" />\n"
" </method>\n"
" <method name=\"trackProperty\" >\n"
" <arg direction=\"in\" type=\"s\" name=\"file\" />\n"
" <arg direction=\"in\" type=\"s\" name=\"property\" />\n"
" <arg direction=\"out\" type=\"s\" />\n"
" </method>\n"
" <method name=\"open\" >\n"
" <arg direction=\"in\" type=\"as\" name=\"files\" />\n"
" </method>\n"
" <method name=\"open\" >\n"
" <arg direction=\"in\" type=\"s\" name=\"playlist\" />\n"
" <arg direction=\"in\" type=\"as\" name=\"files\" />\n"
" </method>\n"
" </interface>\n"
"")
public:
CollectionAdaptor(QObject *parent);
virtual ~CollectionAdaptor();
public: // PROPERTIES
public Q_SLOTS: // METHODS
void createPlaylist(const QString &list);
void open(const QString &playlist, const QStringList &files);
void open(const QStringList &files);
void openFile(const QString &playlist, const QStringList &files);
void openFile(const QString &playlist, const QString &file);
void openFile(const QStringList &files);
void openFile(const QString &file);
QString playingPlaylist();
QString playlist();
QStringList playlistTracks(const QString &playlist);
QStringList playlists();
void remove();
void removeTrack(const QString &playlist, const QStringList &files);
void setPlaylist(const QString &playlist);
QString trackProperty(const QString &file, const QString &property);
Q_SIGNALS: // SIGNALS
};
#endif
......@@ -21,9 +21,6 @@
<arg type="s" direction="out"/>
<arg name="property" type="s" direction="in"/>
</method>
<method name="currentFile">
<arg type="s" direction="out"/>
</method>
<method name="play"/>
<method name="play">
<arg name="file" type="s" direction="in"/>
......@@ -57,7 +54,7 @@
<arg type="s" direction="out"/>
</method>
<method name="setRandomPlayMode">
<arg name="randomMode" type="i" direction="in"/>
<arg name="randomMode" type="s" direction="in"/>
</method>
</interface>
</node>
//HAND EDIT
/*
* This file was generated by dbusidl2cpp version 0.6
* Command line was: dbusidl2cpp -m -a playeradaptor -- org.kde.juk.player.xml
*
* dbusidl2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#include "playeradaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class PlayerAdaptor
*/
PlayerAdaptor::PlayerAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
PlayerAdaptor::~PlayerAdaptor()
{
// destructor
}
void PlayerAdaptor::back()
{
// handle method call org.kde.juk.player.back
QMetaObject::invokeMethod(parent(), "back");
// Alternative:
//static_cast<YourObjectType *>(parent())->back();
}
QString PlayerAdaptor::currentFile()
{
return trackProperty( "Trash" );
}
int PlayerAdaptor::currentTime()
{
// handle method call org.kde.juk.player.currentTime
int out0;
QMetaObject::invokeMethod(parent(), "currentTime", Q_RETURN_ARG(int, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->currentTime();
return out0;
}
void PlayerAdaptor::forward()
{
// handle method call org.kde.juk.player.forward
QMetaObject::invokeMethod(parent(), "forward");
// Alternative:
//static_cast<YourObjectType *>(parent())->forward();
}
void PlayerAdaptor::mute()
{
// handle method call org.kde.juk.player.mute
QMetaObject::invokeMethod(parent(), "mute");
// Alternative:
//static_cast<YourObjectType *>(parent())->mute();
}
void PlayerAdaptor::pause()
{
// handle method call org.kde.juk.player.pause
QMetaObject::invokeMethod(parent(), "pause");
// Alternative:
//static_cast<YourObjectType *>(parent())->pause();
}
bool PlayerAdaptor::paused()
{
// handle method call org.kde.juk.player.paused
bool out0;
QMetaObject::invokeMethod(parent(), "paused", Q_RETURN_ARG(bool, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->paused();
return out0;
}
void PlayerAdaptor::play(const QString &file)
{
// handle method call org.kde.juk.player.play
QMetaObject::invokeMethod(parent(), "play", Q_ARG(QString, file));
// Alternative:
//static_cast<YourObjectType *>(parent())->play(file);
}
void PlayerAdaptor::play()
{
// handle method call org.kde.juk.player.play
QMetaObject::invokeMethod(parent(), "play");
// Alternative:
//static_cast<YourObjectType *>(parent())->play();
}
void PlayerAdaptor::playPause()
{
// handle method call org.kde.juk.player.playPause
QMetaObject::invokeMethod(parent(), "playPause");
// Alternative:
//static_cast<YourObjectType *>(parent())->playPause();
}
bool PlayerAdaptor::playing()
{
// handle method call org.kde.juk.player.playing
bool out0;
QMetaObject::invokeMethod(parent(), "playing", Q_RETURN_ARG(bool, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->playing();
return out0;
}
QString PlayerAdaptor::playingString()
{
// handle method call org.kde.juk.player.playingString
QString out0;
QMetaObject::invokeMethod(parent(), "playingString", Q_RETURN_ARG(QString, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->playingString();
return out0;
}
QString PlayerAdaptor::randomPlayMode()
{
// handle method call org.kde.juk.player.randomPlayMode
QString out0;
QMetaObject::invokeMethod(parent(), "randomPlayMode", Q_RETURN_ARG(QString, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->randomPlayMode();
return out0;
}
void PlayerAdaptor::seek(int time)
{
// handle method call org.kde.juk.player.seek
QMetaObject::invokeMethod(parent(), "seek", Q_ARG(int, time));
// Alternative:
//static_cast<YourObjectType *>(parent())->seek(time);
}
void PlayerAdaptor::seekBack()
{
// handle method call org.kde.juk.player.seekBack
QMetaObject::invokeMethod(parent(), "seekBack");
// Alternative:
//static_cast<YourObjectType *>(parent())->seekBack();
}
void PlayerAdaptor::seekForward()
{
// handle method call org.kde.juk.player.seekForward
QMetaObject::invokeMethod(parent(), "seekForward");
// Alternative:
//static_cast<YourObjectType *>(parent())->seekForward();
}
void PlayerAdaptor::setRandomPlayMode(int randomMode)
{
// handle method call org.kde.juk.player.setRandomPlayMode
QMetaObject::invokeMethod(parent(), "setRandomPlayMode", Q_ARG(int, randomMode));
// Alternative:
//static_cast<YourObjectType *>(parent())->setRandomPlayMode(randomMode);
}
void PlayerAdaptor::setVolume(int volume)
{
// handle method call org.kde.juk.player.setVolume
QMetaObject::invokeMethod(parent(), "setVolume", Q_ARG(int, volume));
// Alternative:
//static_cast<YourObjectType *>(parent())->setVolume(volume);
}
int PlayerAdaptor::status()
{
// handle method call org.kde.juk.player.status
int out0;
QMetaObject::invokeMethod(parent(), "status", Q_RETURN_ARG(int, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->status();
return out0;
}
void PlayerAdaptor::stop()
{
// handle method call org.kde.juk.player.stop
QMetaObject::invokeMethod(parent(), "stop");
// Alternative:
//static_cast<YourObjectType *>(parent())->stop();
}
int PlayerAdaptor::totalTime()
{
// handle method call org.kde.juk.player.totalTime
int out0;
QMetaObject::invokeMethod(parent(), "totalTime", Q_RETURN_ARG(int, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->totalTime();
return out0;
}
QStringList PlayerAdaptor::trackProperties()
{
// handle method call org.kde.juk.player.trackProperties
QStringList out0;
QMetaObject::invokeMethod(parent(), "trackProperties", Q_RETURN_ARG(QStringList, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->trackProperties();
return out0;
}
QString PlayerAdaptor::trackProperty(const QString &property)
{
// handle method call org.kde.juk.player.trackProperty
QString out0;
QMetaObject::invokeMethod(parent(), "trackProperty", Q_RETURN_ARG(QString, out0), Q_ARG(QString, property));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->trackProperty(property);
return out0;
}
double PlayerAdaptor::volume()
{
// handle method call org.kde.juk.player.volume
double out0;
QMetaObject::invokeMethod(parent(), "volume", Q_RETURN_ARG(double, out0));
// Alternative:
//out0 = static_cast<YourObjectType *>(parent())->volume();
return out0;
}
void PlayerAdaptor::volumeDown()
{
// handle method call org.kde.juk.player.volumeDown
QMetaObject::invokeMethod(parent(), "volumeDown");
// Alternative:
//static_cast<YourObjectType *>(parent())->volumeDown();
}
void PlayerAdaptor::volumeUp()
{
// handle method call org.kde.juk.player.volumeUp
QMetaObject::invokeMethod(parent(), "volumeUp");
// Alternative:
//static_cast<YourObjectType *>(parent())->volumeUp();
}
#include "playeradaptor.moc"
/*
* This file was generated by dbusidl2cpp version 0.6
* Command line was: dbusidl2cpp -m -a playeradaptor -- org.kde.juk.player.xml
*
* dbusidl2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef PLAYERADAPTOR_H_275541151657197
#define PLAYERADAPTOR_H_275541151657197
#include <QtCore/QObject>
#include <QtDBus>
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
/*