Package elisa :: Package core :: Package bus :: Module bus_message :: Class MediaLocation
[hide private]
[frames] | no frames]

Class MediaLocation

source code


Sent when a new device has been found

Instance Methods [hide private]
 
__init__(self, action, name, fstype, mount_point, media_types='frontend', removable=True, theme_icon='frontend')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__repr__(self)
repr(x)
source code

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

Class Variables [hide private]
  ActionType = Enum('NO_ACTION', 'LOCATION_ADDED', 'LOCATION_REM...
  action = NO_ACTION
One of MediaLocation.ActionType enum values
string name = ''
Name of the device
string fstype = ''
Filesystem type
string mount_point = ''
Mount point
list media_types = ['audio', 'video', 'image']
list of media_types stored on the device
bool removable = True
whether the media location is on a device which can be ejected
string theme_icon = 'frontend'
the name of the icon the theme should use for that location to display
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, action, name, fstype, mount_point, media_types='frontend', removable=True, theme_icon='frontend')
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

Class Variable Details [hide private]

ActionType

Value:
Enum('NO_ACTION', 'LOCATION_ADDED', 'LOCATION_REMOVED', 'EJECT')