summaryrefslogtreecommitdiffstats
path: root/qtspotifymain.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-10-30 12:03:32 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-10-30 12:03:32 +0100
commitbeb0cc36b4dcbe9cd5de0a3cbb2d2e998eb42d03 (patch)
treead7b969fd8905611e44d344ddb203d75d47d4e46 /qtspotifymain.h
parent2dcbb6e5867529270e6cae985a8c5c7005a77f9b (diff)
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.
Diffstat (limited to 'qtspotifymain.h')
-rw-r--r--qtspotifymain.h9
1 files changed, 6 insertions, 3 deletions
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<track *> 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<QtPlaylist *> m_searches;
+
bool m_debugging;
QFutureWatcher<bool> *m_authenticationWatcher;