@@ -32,6 +32,7 @@
|
||||
#include <QString>
|
||||
#include <QUrl>
|
||||
|
||||
#include "core/shared_ptr.h"
|
||||
#include "lyricssearchrequest.h"
|
||||
#include "lyricssearchresult.h"
|
||||
|
||||
@@ -43,7 +44,7 @@ class LyricsFetcher : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit LyricsFetcher(LyricsProviders *lyrics_providers, QObject *parent = nullptr);
|
||||
explicit LyricsFetcher(SharedPtr<LyricsProviders> lyrics_providers, QObject *parent = nullptr);
|
||||
~LyricsFetcher() override {}
|
||||
|
||||
struct Request {
|
||||
@@ -70,7 +71,7 @@ class LyricsFetcher : public QObject {
|
||||
private:
|
||||
static const int kMaxConcurrentRequests;
|
||||
|
||||
LyricsProviders *lyrics_providers_;
|
||||
SharedPtr<LyricsProviders> lyrics_providers_;
|
||||
quint64 next_id_;
|
||||
|
||||
QQueue<Request> queued_requests_;
|
||||
|
||||
Reference in New Issue
Block a user