From beb0cc36b4dcbe9cd5de0a3cbb2d2e998eb42d03 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Fri, 30 Oct 2009 12:03:32 +0100 Subject: Try to separate out ownership of tracks into its own class. We can't separate out ownership of playlists, as only the root playlist can be owned. --- qtspotifymain.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'qtspotifymain.h') diff --git a/qtspotifymain.h b/qtspotifymain.h index 179a3d3..aaa7376 100644 --- a/qtspotifymain.h +++ b/qtspotifymain.h @@ -61,6 +61,7 @@ struct despotify_session; struct track; struct playlist; struct search_result; +class QtPlaylist; class QStateMachine; class QState; @@ -102,7 +103,7 @@ signals: void loginFailed(); private: - void setPlayList(track *t); + void setPlaylist(QList tracks); void initUi(); void initWatchers(); @@ -118,10 +119,12 @@ private: Ui_QtSpotifyMain m_ui; despotify_session *m_session; - search_result *m_searchResult; - playlist *m_storedPlaylist; + + playlist *m_rootPlaylist; QStateMachine *m_machine; + QList m_searches; + bool m_debugging; QFutureWatcher *m_authenticationWatcher; -- cgit v1.2.3