Commit c6179560 authored by Michael Pyne's avatar Michael Pyne

Add a DCOP call to JuK to allow playing a given file from the Collection List....

Add a DCOP call to JuK to allow playing a given file from the Collection List.  You must pass the local path to the file.

svn path=/trunk/kdemultimedia/juk/; revision=327066
parent 30b78fcf
......@@ -45,6 +45,7 @@ k_dcop:
virtual QString trackProperty(const QString &property) const = 0;
virtual void play() = 0;
virtual void play(const QString &file) = 0;
virtual void pause() = 0;
virtual void stop() = 0;
virtual void playPause() = 0;
......
......@@ -26,6 +26,7 @@
#include "slideraction.h"
#include "statuslabel.h"
#include "actioncollection.h"
#include "collectionlist.h"
#include "tag.h"
#include "config.h"
......@@ -258,6 +259,15 @@ void PlayerManager::play(const FileHandle &file)
emit signalPlay();
}
void PlayerManager::play(const QString &file)
{
CollectionListItem *item = CollectionList::instance()->lookup(file);
if(item) {
Playlist::setPlaying(item);
play(item->file());
}
}
void PlayerManager::play()
{
play(FileHandle::null());
......
......@@ -63,6 +63,7 @@ public:
public slots:
void play(const FileHandle &file);
void play(const QString &file);
void play();
void pause();
void stop();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment