From 4213344dd5231c7a49a531c9172a641147d83044 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Thu, 29 Oct 2009 10:57:35 +0100 Subject: Skip to next song when current song has finished playing --- qtspotifymain.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qtspotifymain.h') diff --git a/qtspotifymain.h b/qtspotifymain.h index cfae6fc..179a3d3 100644 --- a/qtspotifymain.h +++ b/qtspotifymain.h @@ -74,13 +74,15 @@ public: QtSpotifyMain(QWidget *parent = 0); ~QtSpotifyMain(); - void setNewTrack(track *t); // Just a dummy so we can use the property mechanism to call the debug() function QString debuggingMessage() const { return QString(); } bool debugging() const { return m_debugging; } +protected: + bool event(QEvent *event); + private slots: void logIn(); void endSession(); @@ -111,6 +113,8 @@ private: void initPlayListHandlingState(QState *); void initPlayBackHandlingState(QState *); void initPlayingState(QState *); + void setNewTrack(track *t); + void selectTrack(track *t); Ui_QtSpotifyMain m_ui; despotify_session *m_session; -- cgit v1.2.3