From dbc19ad71cbac5166aa0b82c97b726b464f4fdca Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 6 Jul 2017 10:33:13 +0200 Subject: 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... --- playerwidget.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'playerwidget.h') 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 -- cgit v1.2.3-70-g09d2