diff --git a/src/globalsearch/groovesharksearchprovider.h b/src/globalsearch/groovesharksearchprovider.h index 4fe3bc0d3..4627e902b 100644 --- a/src/globalsearch/groovesharksearchprovider.h +++ b/src/globalsearch/groovesharksearchprovider.h @@ -32,11 +32,11 @@ class GroovesharkSearchProvider : public SearchProvider { void Init(GroovesharkService* service); // SearchProvider - void SearchAsync(int id, const QString& query); - void LoadArtAsync(int id, const Result& result); - bool IsLoggedIn(); - void ShowConfig(); - InternetService* internet_service() { return service_; } + void SearchAsync(int id, const QString& query) override; + void LoadArtAsync(int id, const Result& result) override; + bool IsLoggedIn() override; + void ShowConfig() override; + InternetService* internet_service() override { return service_; } private slots: void SearchDone(int id, const SongList& songs); diff --git a/src/globalsearch/spotifysearchprovider.cpp b/src/globalsearch/spotifysearchprovider.cpp index 6f165383e..20e6d963e 100644 --- a/src/globalsearch/spotifysearchprovider.cpp +++ b/src/globalsearch/spotifysearchprovider.cpp @@ -23,7 +23,6 @@ #include "core/logging.h" #include "internet/internetmodel.h" #include "internet/spotifyserver.h" -#include "internet/spotifyservice.h" #include "playlist/songmimedata.h" namespace { diff --git a/src/globalsearch/spotifysearchprovider.h b/src/globalsearch/spotifysearchprovider.h index 66dd5b4a8..99cc392fb 100644 --- a/src/globalsearch/spotifysearchprovider.h +++ b/src/globalsearch/spotifysearchprovider.h @@ -20,9 +20,9 @@ #include "searchprovider.h" #include "spotifymessages.pb.h" +#include "internet/spotifyservice.h" class SpotifyServer; -class SpotifyService; class SpotifySearchProvider : public SearchProvider { Q_OBJECT @@ -34,8 +34,10 @@ class SpotifySearchProvider : public SearchProvider { void LoadArtAsync(int id, const Result& result); QStringList GetSuggestions(int count); - bool IsLoggedIn(); - void ShowConfig(); + // SearchProvider + bool IsLoggedIn() override; + void ShowConfig() override; + InternetService* internet_service() override { return service_; } private slots: void ServerDestroyed(); diff --git a/src/internet/spotifyservice.h b/src/internet/spotifyservice.h index 9f25e02bc..235edf745 100644 --- a/src/internet/spotifyservice.h +++ b/src/internet/spotifyservice.h @@ -49,13 +49,13 @@ class SpotifyService : public InternetService { static const char* kBlobDownloadUrl; static const int kSearchDelayMsec; - void ReloadSettings(); + void ReloadSettings() override; - QStandardItem* CreateRootItem(); - void LazyPopulate(QStandardItem* parent); - void ShowContextMenu(const QPoint& global_pos); - void ItemDoubleClicked(QStandardItem* item); - void DropMimeData(const QMimeData* data, const QModelIndex& index); + QStandardItem* CreateRootItem() override; + void LazyPopulate(QStandardItem* parent) override; + void ShowContextMenu(const QPoint& global_pos) override; + void ItemDoubleClicked(QStandardItem* item) override; + void DropMimeData(const QMimeData* data, const QModelIndex& index) override; QList playlistitem_actions(const Song& song) override; PlaylistItem::Options playlistitem_options() const; QWidget* HeaderWidget() const;