diff options
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 |