Replace slots with Q_SLOTS
This commit is contained in:
@@ -77,7 +77,7 @@ class AudioScrobbler : public QObject {
|
||||
void ClearPlaying();
|
||||
void Scrobble(const Song &song, const qint64 scrobble_point);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void ToggleScrobbling();
|
||||
void ToggleOffline();
|
||||
void ErrorReceived(const QString &error);
|
||||
|
||||
@@ -88,7 +88,7 @@ class LastFMImport : public QObject {
|
||||
void Finished();
|
||||
void FinishedWithError(const QString&);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void FlushRequests();
|
||||
void GetRecentTracksRequestFinished(QNetworkReply *reply, const int page);
|
||||
void GetTopTracksRequestFinished(QNetworkReply *reply, const int page);
|
||||
|
||||
@@ -80,10 +80,10 @@ class ListenBrainzScrobbler : public ScrobblerService {
|
||||
Q_SIGNALS:
|
||||
void AuthenticationComplete(const bool success, const QString &error = QString());
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void WriteCache() override { cache_->WriteCache(); }
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void RedirectArrived();
|
||||
void AuthenticateReplyFinished(QNetworkReply *reply);
|
||||
void RequestNewAccessToken() { RequestAccessToken(); }
|
||||
|
||||
@@ -51,7 +51,7 @@ class ScrobblerCache : public QObject {
|
||||
void SetError(ScrobblerCacheItemPtrList cache_items);
|
||||
void Flush(ScrobblerCacheItemPtrList cache_items);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void WriteCache();
|
||||
|
||||
private:
|
||||
|
||||
@@ -66,7 +66,7 @@ class ScrobblerService : public QObject {
|
||||
QString StripAlbum(const QString &album) const;
|
||||
QString StripTitle(const QString &title) const;
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
virtual void Submit() = 0;
|
||||
virtual void WriteCache() = 0;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ class ScrobblerSettings : public QObject {
|
||||
|
||||
void ShowConfig();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void ToggleScrobbling();
|
||||
void ToggleOffline();
|
||||
void ErrorReceived(const QString &error);
|
||||
|
||||
@@ -71,10 +71,10 @@ class ScrobblingAPI20 : public ScrobblerService {
|
||||
Q_SIGNALS:
|
||||
void AuthenticationComplete(const bool success, const QString &error = QString());
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void WriteCache() override { cache_->WriteCache(); }
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void RedirectArrived();
|
||||
void AuthenticateReplyFinished(QNetworkReply *reply);
|
||||
void UpdateNowPlayingRequestFinished(QNetworkReply *reply);
|
||||
|
||||
@@ -58,7 +58,7 @@ class SubsonicScrobbler : public ScrobblerService {
|
||||
|
||||
SharedPtr<SubsonicService> service();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void WriteCache() override {}
|
||||
void Submit() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user