def __init__(self): """ constructor """ # inicia a super classe super(CControlManager, self).__init__() # instancia o event manager self.__event = evtmgr.CEventsManager() assert self.__event # registra a sí próprio como recebedor de eventos self.__event.register_listener(self) # opções de configuração self.__config = None # model self.__model = None # view self.__view = None # voip library self.__voip = None
def __init__(self, fs_path=None): """ constructor @param fs_path: path do arquivo de configuração """ # inicia a super classe super(CControlManager, self).__init__() # the application itself self.__app = None # instancia o event manager self.__event = evtmgr.CEventsManager() assert self.__event # registra a sí próprio como recebedor de eventos self.__event.register_listener(self) # carrega as opções de configuração self.__config = None # model manager self.__model = None # splash screen self.__splash = None # view manager self.__view = None # voip library self.__voip = None
def __init__(self, f_control): """ initializes the model manager @param f_control: control manager """ # check input assert f_control # the application self.__app = f_control.app # control manager self.__control = f_control # config manager self.__config = f_control.config if f_control.config is not None else config.CConfigManager( ) assert self.__config # event manager self.__event = f_control.event if f_control.event is not None else event.CEventsManager( ) assert self.__event # registra como recebedor de eventos self.__event.register_listener(self)