summaryrefslogtreecommitdiffstats
path: root/juk
diff options
context:
space:
mode:
Diffstat (limited to 'juk')
-rw-r--r--juk/configure.in.in2
-rw-r--r--juk/jukIface.h1
-rw-r--r--juk/playermanager.cpp11
-rw-r--r--juk/playermanager.h1
-rw-r--r--juk/playlistinterface.h1
5 files changed, 15 insertions, 1 deletions
diff --git a/juk/configure.in.in b/juk/configure.in.in
index 9d357c67..f2e48c0c 100644
--- a/juk/configure.in.in
+++ b/juk/configure.in.in
@@ -10,7 +10,7 @@ AC_ARG_WITH(musicbrainz,
have_musicbrainz=no
if test "x$with_musicbrainz" != xno; then
- KDE_CHECK_HEADER(tunepimp/tp_c.h, have_musicbrainz=yes)
+ KDE_CHECK_HEADER(tunepimp-0.5/tp_c.h, have_musicbrainz=yes)
if test "x$with_musicbrainz" != xcheck && test "x$have_musicbrainz" != xyes; then
AC_MSG_ERROR([--with-musicbrainz was given, but test for MusicBrainz failed])
diff --git a/juk/jukIface.h b/juk/jukIface.h
index e119b25e..b431ea90 100644
--- a/juk/jukIface.h
+++ b/juk/jukIface.h
@@ -64,6 +64,7 @@ k_dcop:
virtual void forward() = 0;
virtual void seekBack() = 0;
virtual void seekForward() = 0;
+ virtual void forwardAlbum() = 0;
virtual void volumeUp() = 0;
virtual void volumeDown() = 0;
diff --git a/juk/playermanager.cpp b/juk/playermanager.cpp
index b60c7af5..9f784822 100644
--- a/juk/playermanager.cpp
+++ b/juk/playermanager.cpp
@@ -443,6 +443,17 @@ void PlayerManager::back()
stop();
}
+void PlayerManager::forwardAlbum()
+{
+ m_playlistInterface->playNextAlbum();
+ FileHandle file = m_playlistInterface->currentFile();
+
+ if(!file.isNull())
+ play(file);
+ else
+ stop();
+}
+
void PlayerManager::volumeUp()
{
if(!player() || !m_sliderAction || !m_sliderAction->volumeSlider())
diff --git a/juk/playermanager.h b/juk/playermanager.h
index 8f1920b1..7d72d2d6 100644
--- a/juk/playermanager.h
+++ b/juk/playermanager.h
@@ -78,6 +78,7 @@ public slots:
void playPause();
void forward();
void back();
+ void forwardAlbum();
void volumeUp();
void volumeDown();
void mute();
diff --git a/juk/playlistinterface.h b/juk/playlistinterface.h
index 8251d4f2..af7427ce 100644
--- a/juk/playlistinterface.h
+++ b/juk/playlistinterface.h
@@ -65,6 +65,7 @@ public:
virtual void playNext() = 0;
virtual void playPrevious() = 0;
+ virtual void playNextAlbum() = 0;
virtual void stop() = 0;
virtual bool playing() const = 0;