Package flumotion :: Package wizard :: Module basesteps
[hide private]

Source Code for Module flumotion.wizard.basesteps

  1  # -*- Mode: Python -*- 
  2  # vi:si:et:sw=4:sts=4:ts=4 
  3  # 
  4  # Flumotion - a streaming media server 
  5  # Copyright (C) 2004,2005,2006,2007,2008 Fluendo, S.L. (www.fluendo.com). 
  6  # All rights reserved. 
  7   
  8  # This file may be distributed and/or modified under the terms of 
  9  # the GNU General Public License version 2 as published by 
 10  # the Free Software Foundation. 
 11  # This file is distributed without any warranty; without even the implied 
 12  # warranty of merchantability or fitness for a particular purpose. 
 13  # See "LICENSE.GPL" in the source distribution for more information. 
 14   
 15  # Licensees having purchased or holding a valid Flumotion Advanced 
 16  # Streaming Server license may use this file in accordance with the 
 17  # Flumotion Advanced Streaming Server Commercial License Agreement. 
 18  # See "LICENSE.Flumotion" in the source distribution for more information. 
 19   
 20  # Headers in this file shall remain intact. 
 21   
 22  import gettext 
 23   
 24  from flumotion.common import messages 
 25  from flumotion.wizard.workerstep import WorkerWizardStep 
 26   
 27  __version__ = "$Rev: 6629 $" 
 28  _ = gettext.gettext 
 29   
 30   
31 -class AudioProducerStep(WorkerWizardStep):
32 section = _('Production')
33 - def __init__(self, wizard, model):
34 self.model = model 35 WorkerWizardStep.__init__(self, wizard)
36 37
38 -class VideoProducerStep(WorkerWizardStep):
39 section = _('Production') 40 icon = 'widget_doc.png' 41
42 - def __init__(self, wizard, model):
43 self.model = model 44 WorkerWizardStep.__init__(self, wizard)
45 46 # WizardStep 47
48 - def getNext(self):
49 from flumotion.wizard.overlaystep import OverlayStep 50 return OverlayStep(self.wizard, self.model)
51 52
53 -class VideoEncoderStep(WorkerWizardStep):
54 section = _('Conversion') 55
56 - def __init__(self, wizard, model):
57 self.model = model 58 WorkerWizardStep.__init__(self, wizard)
59
60 - def getNext(self):
61 return self.wizard.getStep('Encoding').getAudioPage()
62 63
64 -class AudioEncoderStep(WorkerWizardStep):
65 gladeFile = 'audio-encoder-wizard.glade' 66 section = _('Conversion') 67
68 - def __init__(self, wizard, model):
69 self.model = model 70 WorkerWizardStep.__init__(self, wizard)
71 72 # WizardStep 73
74 - def getNext(self):
75 return None
76 77
78 -class ConsumerStep(WorkerWizardStep):
79 section = _('Consumption') 80
81 - def getConsumerModel(self):
82 raise NotImplementedError(self)
83
84 - def getComponentType(self):
85 raise NotImplementedError(self)
86
87 - def getServerConsumers(self):
88 """Returns the http-server consumer model or None 89 if there will only a stream served. 90 @returns: the server consumer or None 91 """ 92 return []
93
94 - def getPorters(self):
95 """Returns the porter model or None if there will only a stream served. 96 @returns: the porter or None 97 """ 98 return []
99 100 # WizardStep 101
102 - def getNext(self):
103 return self.wizard.getStep('Consumption').getNext(self)
104