Package elisa :: Package plugins :: Package ugly :: Package lastfm_plugin :: Module lastfm_scrobbler :: Class LastfmScrobbler
[hide private]
[frames] | no frames]

Class LastfmScrobbler

source code


DOCME

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
initialize(self)
Initialize various variables internal to the Component.
source code
 
start(self)
Start the service.
source code
 
stop(self)
Stop the service.
source code
 
_register_player_model(self, msg, sender) source code
 
loadSavedTracks(self) source code
 
saveTracks(self) source code
 
handshake(self) source code
 
uptodate(self, lines) source code
 
baduser(self, lines) source code
 
failed(self, lines) source code
 
interval(self, line) source code
 
submit(self, track) source code

Inherited from core.component.Component: __init__, clean, load_config, save_config

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
dict config_doc = {'password': 'Last.FM password for the user :-)',...
documentation for each option of the default configuration.
dict default_config = {'password': 'fill_me', 'user': 'fill_me'}
used when nothing found in Application's config
string name = 'lastfm_scrobbler'
Component's name

Inherited from core.component.Component: checked, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

initialize(self)

source code 

Initialize various variables internal to the Component.

This method is called by the plugin_registry after the component's config has been loaded.

Override this method if you need to perform some initializations that would normally go in Component's constructor but can't be done there because they require access to the component's config.
Overrides: core.component.Component.initialize
(inherited documentation)

start(self)

source code 

Start the service.

DOCME more
Overrides: base_components.service_provider.ServiceProvider.start
(inherited documentation)

stop(self)

source code 

Stop the service.

DOCME more
Overrides: base_components.service_provider.ServiceProvider.stop
(inherited documentation)

Class Variable Details [hide private]

config_doc

documentation for each option of the default configuration. Keys should be same as the ones in default_config and values should be strings
Type:
dict
Value:
{'password': 'Last.FM password for the user :-)',
 'user': 'Last.FM username'}