From 3a965fcd45d585c7e49afcc4b0d2e2d6ef8fe1f5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 15 Dec 2012 09:55:53 +0000 Subject: added playlists auto-save feauture (patch by Ferdinand Vesely) (Closes issue 536), changed playlist api git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3063 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistmanager.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/qmmpui/playlistmanager.h') diff --git a/src/qmmpui/playlistmanager.h b/src/qmmpui/playlistmanager.h index 3b3dcaea9..14de512ea 100644 --- a/src/qmmpui/playlistmanager.h +++ b/src/qmmpui/playlistmanager.h @@ -23,6 +23,8 @@ #include #include "playlistmodel.h" +class QTimer; + /*! @brief The PlayListManager class is used to handle multiple playlists. * @author Ilya Kotov */ @@ -260,15 +262,23 @@ public slots: * This is a convenience function and is the same as calling \b selectedPlayList()->stopAfterSelected() */ void stopAfterSelected(); + /*! + * Read the relevant settings. + */ + void readSettings(); + +private slots: + void writePlayLists(); private: void readPlayLists(); - void writePlayLists(); + void setAutoSavePlayList(); static PlayListManager* m_instance; QList m_models; PlayListModel *m_current; PlayListModel *m_selected; - bool m_repeatable, m_shuffle; + bool m_repeatable, m_shuffle, m_autosave_playlist; + QTimer *m_timer; }; #endif // PLAYLISTMANAGER_H -- cgit v1.2.3-13-gbd6f