LeechCraft  0.6.70-6645-gcd10d7e
Modular cross-platform feature rich live environment.
Media::IAudioScrobbler Class Referenceabstract

Interface for plugins that support scrobbling. More...

#include "iaudioscrobbler.h"

Public Member Functions

virtual ~IAudioScrobbler ()
 
virtual QString GetServiceName () const =0
 Returns the service name. More...
 
virtual void NowPlaying (const AudioInfo &audio)=0
 Notifies the scrobbler that a new track is playing. More...
 
virtual void PlaybackStopped ()=0
 Notifies the scrobbler that playback is stopped. More...
 
virtual void LoveCurrentTrack ()=0
 Notifies the scrobbler that user loves current track. More...
 
virtual void BanCurrentTrack ()=0
 Notifies the scrobbler that user hates current track. More...
 

Detailed Description

Interface for plugins that support scrobbling.

Plugins supporting scrobbling listened tracks to services like Last.FM or Jamendo should implement this interface.

Definition at line 41 of file iaudioscrobbler.h.

Constructor & Destructor Documentation

virtual Media::IAudioScrobbler::~IAudioScrobbler ( )
inlinevirtual

Definition at line 44 of file iaudioscrobbler.h.

References Q_DECLARE_INTERFACE().

+ Here is the call graph for this function:

Member Function Documentation

virtual void Media::IAudioScrobbler::BanCurrentTrack ( )
pure virtual

Notifies the scrobbler that user hates current track.

This function should be called when user explicitly states that he hates the current track, that is, the track described by the last call to NowPlaying().

See also
LoveCurrentTrack()
virtual QString Media::IAudioScrobbler::GetServiceName ( ) const
pure virtual

Returns the service name.

This string returns a human-readable string with the service name, like "Last.FM".

Returns
The human-readable service name.
virtual void Media::IAudioScrobbler::LoveCurrentTrack ( )
pure virtual

Notifies the scrobbler that user loves current track.

This function should be called when user explicitly states that he loves the current track, that is, the track described by the last call to NowPlaying().

See also
BanCurrentTrack()
virtual void Media::IAudioScrobbler::NowPlaying ( const AudioInfo audio)
pure virtual

Notifies the scrobbler that a new track is playing.

This function should be called by an audio player when a new track is playing. The track data is contained in the audio parameter.

This function should only be called when a track has been changed, or when the user has explicitly restarted track playback. This function should not be called after pausing and resuming playback.

Parameters
[in]audioThe information about currently playing track.
virtual void Media::IAudioScrobbler::PlaybackStopped ( )
pure virtual

Notifies the scrobbler that playback is stopped.

This function should be called when user stops the playback of the current track. This function should not be called on pausing.


The documentation for this class was generated from the following file: