summaryrefslogtreecommitdiffstats
path: root/playerwidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2017-07-06 10:33:13 +0200
committerArno <arno@disconnect.de>2017-07-06 10:33:13 +0200
commitdbc19ad71cbac5166aa0b82c97b726b464f4fdca (patch)
tree11b6de922f37b830eba36a9961b4deaefd68668c /playerwidget.h
parentf9771c52ff6b350c29db70216b79bb4f60081763 (diff)
downloadBeetPlayer-dbc19ad71cbac5166aa0b82c97b726b464f4fdca.tar.gz
BeetPlayer-dbc19ad71cbac5166aa0b82c97b726b464f4fdca.tar.bz2
BeetPlayer-dbc19ad71cbac5166aa0b82c97b726b464f4fdca.zip
Implemented MusicBrainz lookup
Wow, what a convoluted api, to say the least... They have documentation, which is good, but the query syntax definitely needs more explaining, foremost how to encode non-ASCII characters and names with whitspaces... Well, it kinda works, but the Other Albums sections can be waaaaay off...
Diffstat (limited to 'playerwidget.h')
-rw-r--r--playerwidget.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/playerwidget.h b/playerwidget.h
index ad58ea4..738b72e 100644
--- a/playerwidget.h
+++ b/playerwidget.h
@@ -13,6 +13,7 @@ class QLineEdit;
class QLabel;
class QSlider;
class QTextEdit;
+class QTextBrowser;
class QMediaPlayer;
class QToolBar;
class QAction;
@@ -21,6 +22,7 @@ class QStackedLayout;
class BeetPlayerProxy;
class BeetView;
class QSystemTrayIcon;
+class WebDownloader;
class PlayerWidget : public QWidget {
Q_OBJECT
@@ -65,7 +67,9 @@ class PlayerWidget : public QWidget {
void randomPlay();
void playCurrent(const QModelIndex &index);
void printList();
- void searchMusicbrainz();
+ void searchMusicbrainzRight();
+ void searchMusicbrainzLeft();
+ void webDlDone();
void mute(bool triggered);
void volumeChanged(int volume);
@@ -117,7 +121,7 @@ class PlayerWidget : public QWidget {
QSlider *mVolumeSlider;
QLabel *mVolumePos;
QTextEdit *mCurrentTE;
- QTextEdit *mLeftTE;
+ QTextBrowser *mLeftTE;
QTextEdit *mRightTE;
BeetView *mPlayListView;
QStandardItemModel *mPlayListModel;
@@ -140,6 +144,7 @@ class PlayerWidget : public QWidget {
QTimer *mVolumeTimer;
bool mStarting;
QStackedLayout *mSearchDirStack;
+ WebDownloader *mWebDownloader;
};
#endif // PLAYERWIDGET_H