Use one instance of NetworkAccessManager
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
|
||||
class QTimer;
|
||||
class Player;
|
||||
class NetworkAccessManager;
|
||||
class CollectionBackendInterface;
|
||||
class PlaylistParser;
|
||||
class ParserBase;
|
||||
@@ -58,7 +59,7 @@ class SongLoader : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SongLoader(CollectionBackendInterface *collection, const Player *player, QObject *parent = nullptr);
|
||||
explicit SongLoader(CollectionBackendInterface *collection, const Player *player, NetworkAccessManager *network, QObject *parent = nullptr);
|
||||
~SongLoader() override;
|
||||
|
||||
enum class Result {
|
||||
@@ -144,6 +145,7 @@ class SongLoader : public QObject {
|
||||
SongList songs_;
|
||||
|
||||
const Player *player_;
|
||||
NetworkAccessManager *network_;
|
||||
CollectionBackendInterface *collection_;
|
||||
QTimer *timeout_timer_;
|
||||
PlaylistParser *playlist_parser_;
|
||||
|
||||
Reference in New Issue
Block a user