LastFmScrobbler Class Reference
#include <lastfmscrobbler.h>
Inherited by LastFmScrobblerTester.
List of all members.
Detailed Description
The
LastFmScrobbler class provides convenient functions to scrobble track to Last.Fm implementing the Last.Fm submission policies.
Constructor & Destructor Documentation
| LastFmScrobbler::LastFmScrobbler |
( |
const std::string & |
user, |
|
|
const std::string & |
pass, |
|
|
bool |
synchronous | |
|
) |
| | |
Constructor
- Parameters:
-
| user | Last.fm user name |
| pass | Last.fm password for user |
| synchronous | if false all public methods will be executed in a thread and return immediately (prevents long blocking methods in case of network problems) |
| LastFmScrobbler::~LastFmScrobbler |
( |
|
) |
[virtual] |
Member Function Documentation
| void LastFmScrobbler::setCommitOnlyMode |
( |
bool |
enabled |
) |
|
When commit only mode is set, now playinginfo is not updated on Last.fm, tracks will only be commited once they finished playing
- Parameters:
-
| enabled | set commitOnlyMode to true or false (default = false) |
Indicate that a new track has started playing, the previous track will be submitted (if available) and the new track will be set as Now Playing
- Parameters:
-
| void LastFmScrobbler::finishedPlaying |
( |
|
) |
|
Indicate that the current track has stopped playing. The current track will be submitted to Last.fm
| void LastFmScrobbler::pausePlaying |
( |
bool |
paused |
) |
|
Indicate that playback of the current track has been (un)paused
- Parameters:
-
| paused | true if track is being paused, false if being unpaused |
The documentation for this class was generated from the following files: