Package elisa :: Package plugins :: Package base :: Package models :: Module slideshow_model
[hide private]
[frames] | no frames]

Source Code for Module elisa.plugins.base.models.slideshow_model

 1  # Elisa - Home multimedia server 
 2  # Copyright (C) 2006-2008 Fluendo Embedded S.L. (www.fluendo.com). 
 3  # All rights reserved. 
 4  # 
 5  # This file is available under one of two license agreements. 
 6  # 
 7  # This file is licensed under the GPL version 3. 
 8  # See "LICENSE.GPL" in the root of this distribution including a special 
 9  # exception to use Elisa with Fluendo's plugins. 
10  # 
11  # The GPL part of Elisa is also available under a commercial licensing 
12  # agreement from Fluendo. 
13  # See "LICENSE.Elisa" in the root directory of this distribution package 
14  # for details on that license. 
15   
16   
17  __maintainer__ = 'Lionel Martin <lionel@fluendo.com>' 
18  __maintainer__ = 'Florian Boucault <florian@fluendo.com>' 
19   
20   
21  from elisa.base_components.model import Model 
22   
23   
24 -class SlideshowModel(Model):
25 """ 26 Modelizes a picture slideshow data structure, that is to say an ordered 27 list of URIs pointing to pictures along with a position in that list and 28 some configuration parameters: duration between pictures, visualization 29 mode. 30 31 @ivar current_index: index of the currently displayed picture 32 @type current_index: int 33 @ivar playing: whether or not the slideshow is currently playing 34 @type playing: boolean 35 @ivar playlist: list of pictures to be displayed 36 @type playlist: L{elisa.plugins.base.list_model.ListModel} 37 @ivar preview_mode: whether or not the player is previewing the pictures 38 @type preview_mode: boolean 39 @ivar duration: delay between two pictures (in seconds) 40 @type duration: float 41 """ 42 43 current_index = 0 44 playing = False 45 playlist = None 46 preview_mode = False 47 duration = 5.0
48