diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-02-10 15:22:31 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-02-10 15:22:31 +0000 |
| commit | 617bf301e3be32d86076010e6f08062b0a6757e7 (patch) | |
| tree | d993050cb35ce388b35f64a2d3df40e52df46966 /src/qmmpui/qmmpuisettings.h | |
| parent | c9cb0def793dcd34aa4d516d9e50c1f0b81e1dc3 (diff) | |
| download | qmmp-617bf301e3be32d86076010e6f08062b0a6757e7.tar.gz qmmp-617bf301e3be32d86076010e6f08062b0a6757e7.tar.bz2 qmmp-617bf301e3be32d86076010e6f08062b0a6757e7.zip | |
added possibility to add files from command line to specific playlist
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2590 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/qmmpuisettings.h')
| -rw-r--r-- | src/qmmpui/qmmpuisettings.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/qmmpui/qmmpuisettings.h b/src/qmmpui/qmmpuisettings.h index ca517c7a9..5d5863b91 100644 --- a/src/qmmpui/qmmpuisettings.h +++ b/src/qmmpui/qmmpuisettings.h @@ -104,15 +104,24 @@ public: */ void setExcludeFilters(const QString &filters); /*! - * Returns a pointer to the QmmpUiSettings instance. + * Returns \b true if defaut playlist is enabled, othewise returns \b false. + * Default playlist receives files from command line. */ - static QmmpUiSettings* instance(); - -signals: + bool useDefaultPlayList() const; /*! - * Emitted when other settings (format, metadata, etc) have changed. + * Returns default playlist name. */ - //void settingsChanged(); + QString defaultPlayListName() const; + /*! + * Sets default playlist options. + * @param name Default playlist name. + * @param enabled Default playlist state (\b true - enabled, \b false - disabled). + */ + void setDefaultPlayList(const QString &name, bool enabled = true); + /*! + * Returns a pointer to the QmmpUiSettings instance. + */ + static QmmpUiSettings* instance(); public slots: /*! @@ -120,7 +129,6 @@ public slots: */ void sync(); - private: static QmmpUiSettings* m_instance; //playlist @@ -130,6 +138,10 @@ private: //general bool m_resume_on_startup; QStringList m_exclude_filters, m_restrict_filters; + //default playlist + bool m_use_default_pl; + QString m_default_pl_name; + }; |
