Reduce network access managers
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <QString>
|
||||
#include <QAtomicInt>
|
||||
|
||||
class NetworkAccessManager;
|
||||
class CoverProvider;
|
||||
|
||||
// This is a repository for cover providers.
|
||||
@@ -59,6 +60,8 @@ class CoverProviders : public QObject {
|
||||
|
||||
int NextId();
|
||||
|
||||
NetworkAccessManager *network() const { return network_; }
|
||||
|
||||
private slots:
|
||||
void ProviderDestroyed();
|
||||
|
||||
@@ -67,6 +70,8 @@ class CoverProviders : public QObject {
|
||||
|
||||
static int NextOrderId;
|
||||
|
||||
NetworkAccessManager *network_;
|
||||
|
||||
QMap<CoverProvider*, QString> cover_providers_;
|
||||
QMutex mutex_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user