24 #ifndef INTERNET_LASTFM_ADORESERVICE_H_
25 #define INTERNET_LASTFM_ADORESERVICE_H_
29 #include <QNetworkReply>
30 #include <QNetworkRequest>
31 #include <QAuthenticator>
135 uint
qHash(
const lastfm::Track& track);
140 #include "../lastfm/lastfmcompat.h"
142 #include "internet/core/scrobbler.h"
145 class QNetworkAccessManager;
159 explicit AdoreService(Application* app, QObject* parent =
nullptr);
176 virtual QString
Icon() {
return ":providers/adore.png"; }
231 #endif // INTERNET_LASTFM_ADORESERVICE_H_
bool prefer_albumartist_
remnant of the lastfm implementation. maybe use it in the future for better ui integration ...
Definition: adoreservice.h:221
lastfm::Track TrackFromSong(const Song &song) const
Converts a Clementine song to a lastfm track.
Definition: adoreservice.cpp:132
virtual QString Icon()
Definition: adoreservice.h:176
QNetworkAccessManager * network_
Definition: adoreservice.h:208
static const char * kServiceName
as appears in the settings window
Definition: adoreservice.h:162
Application * app_
Definition: adoreservice.h:224
void Ban()
This is a remnant of the scrobbler type service, maybe deploy an own type in the future...
Definition: adoreservice.cpp:394
bool IsScrobbleButtonVisible() const
Definition: adoreservice.h:182
static const char * kPluginName
as Clementine doesn't have a real plugin system, just translate it as ModName or PatchName ...
Definition: adoreservice.h:171
lastfm::Track next_metadata_
needed to keep track of the metadata.
Definition: adoreservice.h:216
static const char * kSettingsGroup
as appears in the settings navibar
Definition: adoreservice.h:163
bool connection_problems_
Useful to inform the user that we can't scrobble right now. remnant of the lastfm implementation...
Definition: adoreservice.h:222
void NowPlaying(const Song &song)
This is a remnant of the scrobbler type service, maybe deploy an own type in the future...
Definition: adoreservice.cpp:177
void UtilizeImpReplyFinished(QNetworkReply *reply)
Handle the clean-up of the reply to the RegisterClient API call.
Definition: adoreservice.cpp:326
This class handles the received audio buffers.
Definition: adorestreamer.h:33
bool buttons_visible_
remnant of the lastfm implementation. maybe use it in the future for better ui integration ...
Definition: adoreservice.h:219
void ProvideAuthenication(QNetworkReply *reply, QAuthenticator *auth)
this slot is just provided for handling the http authorisation of the test site – disable in AdoreSer...
Definition: adoreservice.cpp:105
bool HasConnectionProblems() const
Definition: adoreservice.h:184
void Love()
This is a remnant of the scrobbler type service, maybe deploy an own type in the future...
Definition: adoreservice.cpp:390
AdoreStreamer astreamer
GStreamer audio buffer grabber, converter to 11050 Hz mono, and fingerprinter.
Definition: adoreservice.h:228
This class handles SQLite access to the queue file.
Definition: adoredb.h:43
static const char * kRegister
path to the player client registration api call of the REST API (meant to submit some extra informati...
Definition: adoreservice.h:168
bool scrobbling_enabled_
remnant of the lastfm implementation. maybe use it in the future for better ui integration ...
Definition: adoreservice.h:218
void AuthenticationComplete(bool success, const QString &error_message)
remnant of the lastfm implementation. maybe use it in the future for better ui integration ...
bool scrobble_button_visible_
remnant of the lastfm implementation. maybe use it in the future for better ui integration ...
Definition: adoreservice.h:220
bool IsAuthenticated() const
Definition: adoreservice.cpp:124
static const char * kPluginVendor
the creator of the Adore code
Definition: adoreservice.h:170
AdoreService(Application *app, QObject *parent=nullptr)
Definition: adoreservice.cpp:84
void ProcessQueued()
Definition: adoreservice.cpp:262
void UpdateSubscriberStatus()
lastfm::Track last_track_
needed to keep track of the metadata.
Definition: adoreservice.h:215
void RegisterClientReplyFinished(QNetworkReply *reply)
Handle the clean-up of the reply to the RegisterClient API call.
Definition: adoreservice.cpp:169
void Scrobble()
This is a remnant of the scrobbler type service, maybe deploy an own type in the future...
Definition: adoreservice.cpp:386
bool PreferAlbumArtist() const
Definition: adoreservice.h:183
bool IsScrobblingEnabled() const
Definition: adoreservice.h:180
void ToggleScrobbling()
This is a remnant of the scrobbler type service, maybe deploy an own type in the future...
Definition: adoreservice.cpp:398
static const int kPort
port of the REST API, can be overridden in ~/.config/Clementine/Clementine.conf section [Adore] key '...
Definition: adoreservice.h:165
uint qHash(const lastfm::Track &track)
AdoreDb adb
SQLite db for batch processing.
Definition: adoreservice.h:227
static const char * kUtilizeImp
path to the utilization api call of the REST API
Definition: adoreservice.h:166
bool AreButtonsVisible() const
Definition: adoreservice.h:181
The central class of the Adore mod, controlling all other AdoreXXX classes.
Definition: adoreservice.h:155
static const char * kUrl
URL of the REST API, can be overridden in ~/.config/Clementine/Clementine.conf section [Adore] key 'h...
Definition: adoreservice.h:164
static const char * kPlayerName
self explanatory
Definition: adoreservice.h:169
lastfm::Audioscrobbler * scrobbler_
zombie base object. remnant of the lastfm implementation.
Definition: adoreservice.h:214
static const char * kAuthorize
base path to the authorization web page
Definition: adoreservice.h:167
void RegisterClient()
Definition: adoreservice.cpp:145
~AdoreService()
Definition: adoreservice.cpp:102
void ReloadSettings()
preserved for future use, does nothing i.t.m.
Definition: adoreservice.cpp:112
static const char * kPluginVersion
version of the the Adore code
Definition: adoreservice.h:172
void ShowConfig()
This is a remnant of the scrobbler type service, maybe deploy an own type in the future...
Definition: adoreservice.cpp:117