Package elisa :: Package plugins :: Package bad :: Package gnome_plugin :: Module gnome_screensaver_service :: Class GnomeScreensaverService
[hide private]
[frames] | no frames]

Class GnomeScreensaverService

source code


This class connect to the Gnome Screen Saver and blocks it

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
 
clean(self)
Perform some cleanups and save the Component config back to application's config.
source code
 
_player_started(self, msg, sender) source code
 
_player_stopped(self, msg, sender) source code

Inherited from base_components.service_provider.ServiceProvider: start, stop

Inherited from core.component.Component: __init__, 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 = {'blocking_mode': 'Block the Screensaver. Availab...
documentation for each option of the default configuration.
dict default_config = {'blocking_mode': 2}
used when nothing found in Application's config
string name = 'gnome_screensaver_service'
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)

clean(self)

source code 
Perform some cleanups and save the Component config back to application's config. This method should be called by the elisa.core.manager.Manager holding the component reference when it stops itself.
Overrides: core.component.Component.clean
(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:
{'blocking_mode': '''Block the Screensaver. Available modes are: 
 * 1 : block on playing only
 * 2 : block from the start to the end, use this, if you are only usin\
g remotes, on which the screensaver is not reacting * else: do not blo\
ck!
'''}