Package elisa :: Package plugins :: Package base :: Package actions :: Module eject_action
[hide private]
[frames] | no frames]

Source Code for Module elisa.plugins.base.actions.eject_action

 1  # -*- coding: utf-8 -*- 
 2  # Elisa - Home multimedia server 
 3  # Copyright (C) 2006-2008 Fluendo Embedded S.L. (www.fluendo.com). 
 4  # All rights reserved. 
 5  # 
 6  # This file is available under one of two license agreements. 
 7  # 
 8  # This file is licensed under the GPL version 3. 
 9  # See "LICENSE.GPL" in the root of this distribution including a special 
10  # exception to use Elisa with Fluendo's plugins. 
11  # 
12  # The GPL part of Elisa is also available under a commercial licensing 
13  # agreement from Fluendo. 
14  # See "LICENSE.Elisa" in the root directory of this distribution package 
15  # for details on that license. 
16   
17   
18  __maintainer__ = 'Philippe Normand <philippe@fluendo.com>' 
19   
20  from elisa.base_components.action import Action 
21  from elisa.core.bus.bus_message import DeviceAction 
22  from elisa.core import common, player 
23   
24 -class EjectAction(Action):
25 """ 26 DOCME 27 """ 28 29 player_model = None 30
31 - def __call__(self, controller, origin):
32 """ 33 """ 34 self.player_model.state = player.STATES.STOPPED 35 36 msg = DeviceAction(DeviceAction.ActionType.EJECT, '', self.uri.scheme, 37 self.uri.path, []) 38 common.application.bus.send_message(msg)
39