Reduce network access managers

This commit is contained in:
Jonas Kvinge
2021-08-12 23:00:10 +02:00
parent f2d52f83fe
commit e6858719c9
41 changed files with 91 additions and 104 deletions

View File

@@ -31,11 +31,13 @@
#include "lyricsfetcher.h"
class NetworkAccessManager;
class LyricsProvider : public QObject {
Q_OBJECT
public:
explicit LyricsProvider(const QString &name, const bool enabled, const bool authentication_required, QObject *parent);
explicit LyricsProvider(const QString &name, const bool enabled, const bool authentication_required, NetworkAccessManager *network, QObject *parent);
typedef QPair<QString, QString> Param;
typedef QList<Param> ParamList;
@@ -62,7 +64,8 @@ class LyricsProvider : public QObject {
void AuthenticationFailure(QStringList);
void SearchFinished(quint64 id, LyricsSearchResults results);
private:
protected:
NetworkAccessManager *network_;
QString name_;
bool enabled_;
int order_;