diff options
author | Arno <arno@disconnect.de> | 2017-03-06 07:57:07 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-03-06 07:57:07 +0100 |
commit | e7616324065c0a96acba082c914e935158380cd2 (patch) | |
tree | 1f7bf488e7a16ede217372e39884897d550f09b3 /playerwidget.h | |
parent | 157cdabc1a1d5f38d02b221db86c05341e8babef (diff) | |
download | BeetPlayer-e7616324065c0a96acba082c914e935158380cd2.tar.gz BeetPlayer-e7616324065c0a96acba082c914e935158380cd2.tar.bz2 BeetPlayer-e7616324065c0a96acba082c914e935158380cd2.zip |
Read and write settings
Diffstat (limited to 'playerwidget.h')
-rw-r--r-- | playerwidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/playerwidget.h b/playerwidget.h index 4458777..6f39385 100644 --- a/playerwidget.h +++ b/playerwidget.h @@ -23,6 +23,7 @@ class PlayerWidget : public QWidget { enum PopulateType { FilterType, IdType, EmptyType }; enum CustomRoles { TypeRole = Qt::UserRole + 1, IdRole = Qt::UserRole + 2, FullPathRole = Qt::UserRole + 3, GenreRole = Qt::UserRole + 4, ArtistRole = Qt::UserRole + 5, TitleRole = Qt::UserRole + 6, AlbumRole = Qt::UserRole + 7, LengthRole = Qt::UserRole + 8 }; explicit PlayerWidget(QWidget *parent = 0); + ~PlayerWidget(); const QMediaPlayer* player() const { return mPlayer; } public slots: @@ -53,6 +54,8 @@ class PlayerWidget : public QWidget { void slide(int value); void continuePlaying(QMediaPlayer::MediaStatus state); void expand(); + void readSettings(); + void writeSettings(); signals: void viewModeChanged(const QString &viewMode); @@ -97,6 +100,7 @@ class PlayerWidget : public QWidget { QAction *mViewByArtistA; qint64 mDurSecs; quint64 mPlayListLength; + QString mCurDir; }; #endif // PLAYERWIDGET_H |