From c75694c1cd54c2dda0e4a3a522baf1fcbcdcd7b1 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 2 Jul 2019 21:12:41 +0000 Subject: listenbrainz plugin implementation git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8981 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/scrobbler/scrobbler.cpp | 2 +- src/plugins/General/scrobbler/scrobbler.h | 2 +- src/plugins/General/scrobbler/scrobblercache.cpp | 6 +++--- src/plugins/General/scrobbler/scrobblercache.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/plugins/General/scrobbler') diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp index f8f367e45..d9532f987 100644 --- a/src/plugins/General/scrobbler/scrobbler.cpp +++ b/src/plugins/General/scrobbler/scrobbler.cpp @@ -85,7 +85,7 @@ Scrobbler::Scrobbler(const QString &scrobblerUrl, const QString &name, QObject * m_scrobblerUrl = scrobblerUrl; m_name = name; m_time = new QElapsedTimer(); - m_cache = new ScrobblerCache(Qmmp::configDir() +"/scrobbler_"+name+".cache"); + m_cache = new ListenCache(Qmmp::configDir() +"/scrobbler_"+name+".cache"); m_ua = QString("qmmp-plugins/%1").arg(Qmmp::strVersion().toLower()).toLatin1(); m_http = new QNetworkAccessManager(this); m_core = SoundCore::instance(); diff --git a/src/plugins/General/scrobbler/scrobbler.h b/src/plugins/General/scrobbler/scrobbler.h index ad3e1d56e..b4f727424 100644 --- a/src/plugins/General/scrobbler/scrobbler.h +++ b/src/plugins/General/scrobbler/scrobbler.h @@ -79,7 +79,7 @@ private: SoundCore *m_core; QNetworkReply *m_submitReply = nullptr, *m_notificationReply = nullptr; QElapsedTimer *m_time; - ScrobblerCache *m_cache; + ListenCache *m_cache; QString m_scrobblerUrl, m_name; Qmmp::State m_previousState = Qmmp::Stopped; qint64 m_elapsed = 0; diff --git a/src/plugins/General/scrobbler/scrobblercache.cpp b/src/plugins/General/scrobbler/scrobblercache.cpp index 841c8c48f..05319e2a3 100644 --- a/src/plugins/General/scrobbler/scrobblercache.cpp +++ b/src/plugins/General/scrobbler/scrobblercache.cpp @@ -61,12 +61,12 @@ uint SongInfo::timeStamp() const return m_start_ts; } -ScrobblerCache::ScrobblerCache(const QString &filePath) +ListenCache::ListenCache(const QString &filePath) { m_filePath = filePath; } -QList ScrobblerCache::load() +QList ListenCache::load() { QList songs; int s = 0; @@ -115,7 +115,7 @@ QList ScrobblerCache::load() return songs; } -void ScrobblerCache::save(const QList &songs) +void ListenCache::save(const QList &songs) { QFile file(m_filePath); if (songs.isEmpty()) diff --git a/src/plugins/General/scrobbler/scrobblercache.h b/src/plugins/General/scrobbler/scrobblercache.h index 819d1fa96..1bfc3c502 100644 --- a/src/plugins/General/scrobbler/scrobblercache.h +++ b/src/plugins/General/scrobbler/scrobblercache.h @@ -51,10 +51,10 @@ private: /** @author Ilya Kotov */ -class ScrobblerCache +class ListenCache { public: - explicit ScrobblerCache(const QString &filePath); + explicit ListenCache(const QString &filePath); QList load(); void save(const QList &songs); -- cgit v1.2.3-13-gbd6f