Package elisa :: Package plugins :: Package good :: Package hal :: Module hal_service :: Class HalService
[hide private]
[frames] | no frames]

Class HalService

source code


This class implements HAL support

Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar.
source code
 
initialize(self)
Initialize various variables internal to the Component.
source code
 
_device_action(self, msg, sender) source code
 
_components_loaded(self, msg, sender) source code
 
start(self)
Start the service.
source code
 
stop(self)
Stop the service.
source code
 
detect_coldplugged(self) source code
 
stop_volume_manager_monitoring(self)
Neutralize some of the volume_manager monitoring settings so that the user won't see rhythmbox pop up when an iPod is inserted (for example).
source code
 
restore_volume_manager_monitoring(self)
Restore the volume_manager gconf settings
source code
 
get_device_with_udi(self, udi) source code
 
parent_is_ipod(self, device) source code
 
eject_device(self, device) source code
 
mount_device(self, device) source code
 
_get_mount_point(self, device) source code
 
_get_property(self, device, prop_name, default) source code
 
device_added_callback(self, udi) source code
 
device_removed_callback(self, uid) source code
 
new_volume_cb(self, uid, name, fstype, mount_point, media_types='frontend', removable=True, theme_icon='frontend')
Called when a new volume has been detected
source code
 
del_volume_cb(self, name, fstype, mount_point)
Called when volume has been removed
source code

Inherited from core.component.Component: 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]
string name = 'hal_service'
Component's name

Inherited from core.component.Component: checked, config_doc, default_config, 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]

__init__(self)
(Constructor)

source code 
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar. Also set log category based on component name, with a 'comp_' prefix.
Overrides: core.component.Component.__init__
(inherited documentation)

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)

new_volume_cb(self, uid, name, fstype, mount_point, media_types='frontend', removable=True, theme_icon='frontend')

source code 
Called when a new volume has been detected
Parameters:
  • name (string) - Name of the device
  • fstype (string) - Filesystem type
  • mount_point (string) - Mount point
  • media_types (list) - media types that can be stored on the volume
  • removable (bool) - can the volume be removed?
  • theme_icon (string) - the theme_icon the view should use to display this volume

del_volume_cb(self, name, fstype, mount_point)

source code 
Called when volume has been removed
Parameters:
  • name (string) - Name of the device
  • fstype (string) - Filesystem type
  • mount_point (string) - Mount point