summaryrefslogtreecommitdiffstats
path: root/playerwidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2017-08-26 06:51:56 +0200
committerArno <arno@disconnect.de>2017-08-26 06:51:56 +0200
commita957512861065d700663ddd522de57925b878eae (patch)
treed98db5dfa2d354b1834c110bdbb3f0e3c7321c1e /playerwidget.h
parentbaf1130ec1148d007f2c98382c217af4731719c7 (diff)
downloadBeetPlayer-a957512861065d700663ddd522de57925b878eae.tar.gz
BeetPlayer-a957512861065d700663ddd522de57925b878eae.tar.bz2
BeetPlayer-a957512861065d700663ddd522de57925b878eae.zip
Implement view for WebRadio
does nothing yet, doesn't crash, either :)
Diffstat (limited to 'playerwidget.h')
-rw-r--r--playerwidget.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/playerwidget.h b/playerwidget.h
index 4e27293..9489306 100644
--- a/playerwidget.h
+++ b/playerwidget.h
@@ -29,7 +29,7 @@ class PlayerWidget : public QWidget {
public:
enum ItemType { Artist, Album, Song, Genre };
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 };
+ 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, UrlRole = Qt::UserRole + 9 };
explicit PlayerWidget(QWidget *parent = 0);
~PlayerWidget();
const QMediaPlayer* player() const { return mPlayer; }
@@ -41,6 +41,7 @@ class PlayerWidget : public QWidget {
void doPopulateBySong();
void doPopulateByDate();
void doPopulateByFolder();
+ void doPopulateByWebradio();
void doModelChanged();
void viewDoubleClicked(const QModelIndex &idx);
void rightCurrentChanged(const QModelIndex &cur, const QModelIndex &prev);
@@ -101,6 +102,7 @@ class PlayerWidget : public QWidget {
void populateBySong(QStandardItem *parent, const QVariant &filter, int type);
void populateByDate(QStandardItem *parent);
void populateByGenre(QStandardItem *parent, const QString &filter);
+ void populateByWebradio(QStandardItem *parent);
void recurse(const QModelIndex &parent);
void addSong(const QModelIndex &idx);
void play(const QString &fullPath);
@@ -116,6 +118,7 @@ class PlayerWidget : public QWidget {
QStandardItemModel *mSearchModel;
QStandardItemModel *mCurrentModel;
QStandardItemModel *mFolderModel;
+ QStandardItemModel *mWebRadioModel;
QLabel *mNowPlayingL;
QSlider *mSongSlider;
QLabel *mPos;