Add setting for cover providers

This commit is contained in:
Jonas Kvinge
2020-05-09 01:48:08 +02:00
parent 40f9dafa44
commit 7bccc21878
32 changed files with 1276 additions and 33 deletions

View File

@@ -2,6 +2,7 @@
* Strawberry Music Player
* This file was part of Clementine.
* Copyright 2010, David Sansome <me@davidsansome.com>
* Copyright 2018-2020, Jonas Kvinge <jonas@jkvinge.net>
*
* Strawberry is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -42,6 +43,10 @@ class CoverProviders : public QObject {
explicit CoverProviders(QObject *parent = nullptr);
~CoverProviders();
void ReloadSettings();
CoverProvider *ProviderByName(const QString &name) const;
// Lets a cover provider register itself in the repository.
void AddProvider(CoverProvider *provider);
void RemoveProvider(CoverProvider *provider);
@@ -60,6 +65,8 @@ class CoverProviders : public QObject {
private:
Q_DISABLE_COPY(CoverProviders)
static int NextOrderId;
QMap<CoverProvider*, QString> cover_providers_;
QMutex mutex_;