예제 #1
0
class _NotificationMVC:
    def __init__(self):
        self.__model = None
        self.__alertsController = None
        self.__layoutController = None
        self.__actionsHandlers = None

    def initialize(self):
        self.__model = NotificationsModel()
        self.__actionsHandlers = NotificationsActionsHandlers()
        self.__alertsController = AlertController(self.__model)
        self.__layoutController = LayoutController(self.__model)

    def getModel(self):
        return self.__model

    def getAlertController(self):
        return self.__alertsController

    def handleAction(self, typeID, entityID, action):
        self.__actionsHandlers.handleAction(self.__model, int(typeID),
                                            long(entityID), action)

    def cleanUp(self):
        self.__alertsController.cleanUp()
        self.__layoutController.cleanUp()
        self.__actionsHandlers.cleanUp()
        self.__model.cleanUp()
        self.__alertsController = None
        self.__layoutController = None
        self.__actionsHandlers = None
        self.__model = None
예제 #2
0
class _NotificationMVC:

    def __init__(self):
        self.__model = None
        self.__alertsController = None
        self.__layoutController = None
        self.__actionsHandlers = None
        return

    def initialize(self):
        self.__model = NotificationsModel()
        self.__actionsHandlers = NotificationsActionsHandlers()
        self.__alertsController = AlertController(self.__model)
        self.__layoutController = LayoutController(self.__model)

    def getModel(self):
        return self.__model

    def getAlertController(self):
        return self.__alertsController

    def handleAction(self, typeID, entityID, action):
        self.__actionsHandlers.handleAction(self.__model, int(typeID), long(entityID), action)

    def cleanUp(self):
        self.__alertsController.cleanUp()
        self.__layoutController.cleanUp()
        self.__actionsHandlers.cleanUp()
        self.__model.cleanUp()
        self.__alertsController = None
        self.__layoutController = None
        self.__actionsHandlers = None
        self.__model = None
        return
예제 #3
0
class _NotificationMVC:

    def __init__(self):
        self.__model = None
        self.__alertsController = None
        self.__actionsHandlers = None
        self.__unreadMessagesCounter = NotificationsCounter()
        return

    def initialize(self):
        self.__model = NotificationsModel(self.__unreadMessagesCounter)
        self.__actionsHandlers = NotificationsActionsHandlers()
        self.__alertsController = AlertController(self.__model)

    def getModel(self):
        return self.__model

    def getAlertController(self):
        return self.__alertsController

    def handleAction(self, typeID, entityID, action):
        self.__actionsHandlers.handleAction(self.__model, int(typeID), long(entityID), action)

    def cleanUp(self, resetCounter = False):
        self.__alertsController.cleanUp()
        self.__actionsHandlers.cleanUp()
        self.__model.cleanUp()
        self.__alertsController = None
        self.__actionsHandlers = None
        if resetCounter:
            self.__unreadMessagesCounter.clear()
            self.__unreadMessagesCounter = NotificationsCounter()
        self.__model = None
        return
예제 #4
0
class _NotificationMVC:

    def __init__(self):
        self.__model = None
        self.__alertsController = None
        self.__listController = None
        self.__layoutController = None
        return

    def initialize(self):
        self.__model = NotificationsModel()
        self.__alertsController = AlertController(self.__model)
        self.__listController = ListController(self.__model)
        self.__layoutController = LayoutController(self.__model)

    def getModel(self):
        return self.__model

    def getAlertController(self):
        return self.__alertsController

    def cleanUp(self):
        self.__alertsController.cleanUp()
        self.__listController.cleanUp()
        self.__layoutController.cleanUp()
        self.__model.cleanUp()
        self.__alertsController = None
        self.__listController = None
        self.__layoutController = None
        self.__model = None
        return
예제 #5
0
class _NotificationMVC:
    def __init__(self):
        self.__model = None
        self.__alertsController = None
        self.__listController = None
        self.__layoutController = None
        return

    def initialize(self):
        self.__model = NotificationsModel()
        self.__alertsController = AlertController(self.__model)
        self.__listController = ListController(self.__model)
        self.__layoutController = LayoutController(self.__model)

    def getModel(self):
        return self.__model

    def getAlertController(self):
        return self.__alertsController

    def cleanUp(self):
        self.__alertsController.cleanUp()
        self.__listController.cleanUp()
        self.__layoutController.cleanUp()
        self.__model.cleanUp()
        self.__alertsController = None
        self.__listController = None
        self.__layoutController = None
        self.__model = None
        return
예제 #6
0
 def initialize(self):
     self.__model = NotificationsModel(self.__unreadMessagesCounter)
     self.__actionsHandlers = NotificationsActionsHandlers()
     self.__alertsController = AlertController(self.__model)
     self.__visibilityController = NotificationVisibilityController(
         self.__model)
     self.__visibilityController.registerNotifications(
         (NOTIFICATION_TYPE.CLUB_INVITE, ))
예제 #7
0
 def initialize(self):
     self.__model = NotificationsModel(self.__unreadMessagesCounter)
     self.__actionsHandlers = NotificationsActionsHandlers()
     self.__alertsController = AlertController(self.__model)
     self.__layoutController = LayoutController(self.__model)
     self.__visibilityController = NotificationVisibilityController(self.__model)
     self.__visibilityController.registerNotifications((NOTIFICATION_TYPE.CLUB_INVITE,))
예제 #8
0
class _NotificationMVC:
    def __init__(self):
        self.__model = None
        self.__alertsController = None
        self.__layoutController = None
        self.__visibilityController = None
        self.__actionsHandlers = None
        self.__actionsHandlers = None
        self.__unreadMessagesCounter = NotificationsCounter()
        return

    def initialize(self):
        self.__model = NotificationsModel(self.__unreadMessagesCounter)
        self.__actionsHandlers = NotificationsActionsHandlers()
        self.__alertsController = AlertController(self.__model)
        self.__layoutController = LayoutController(self.__model)
        self.__visibilityController = NotificationVisibilityController(
            self.__model)
        self.__visibilityController.registerNotifications(
            (NOTIFICATION_TYPE.CLUB_INVITE, ))

    def getModel(self):
        return self.__model

    def getAlertController(self):
        return self.__alertsController

    def handleAction(self, typeID, entityID, action):
        self.__actionsHandlers.handleAction(self.__model, int(typeID),
                                            long(entityID), action)

    def cleanUp(self):
        self.__alertsController.cleanUp()
        self.__layoutController.cleanUp()
        self.__actionsHandlers.cleanUp()
        self.__visibilityController.cleanUp()
        self.__model.cleanUp()
        self.__alertsController = None
        self.__layoutController = None
        self.__actionsHandlers = None
        self.__visibilityController = None
        self.__model = None
        return
예제 #9
0
class _NotificationMVC:

    def __init__(self):
        self.__model = None
        self.__alertsController = None
        self.__layoutController = None
        self.__visibilityController = None
        self.__actionsHandlers = None
        self.__actionsHandlers = None
        self.__unreadMessagesCounter = NotificationsCounter()
        return

    def initialize(self):
        self.__model = NotificationsModel(self.__unreadMessagesCounter)
        self.__actionsHandlers = NotificationsActionsHandlers()
        self.__alertsController = AlertController(self.__model)
        self.__layoutController = LayoutController(self.__model)
        self.__visibilityController = NotificationVisibilityController(self.__model)
        self.__visibilityController.registerNotifications((NOTIFICATION_TYPE.CLUB_INVITE,))

    def getModel(self):
        return self.__model

    def getAlertController(self):
        return self.__alertsController

    def handleAction(self, typeID, entityID, action):
        self.__actionsHandlers.handleAction(self.__model, int(typeID), long(entityID), action)

    def cleanUp(self):
        self.__alertsController.cleanUp()
        self.__layoutController.cleanUp()
        self.__actionsHandlers.cleanUp()
        self.__visibilityController.cleanUp()
        self.__model.cleanUp()
        self.__alertsController = None
        self.__layoutController = None
        self.__actionsHandlers = None
        self.__visibilityController = None
        self.__model = None
        return
예제 #10
0
 def initialize(self):
     self.__model = NotificationsModel()
     self.__actionsHandlers = NotificationsActionsHandlers()
     self.__alertsController = AlertController(self.__model)
     self.__layoutController = LayoutController(self.__model)
예제 #11
0
 def initialize(self):
     self.__model = NotificationsModel()
     self.__actionsHandlers = NotificationsActionsHandlers()
     self.__alertsController = AlertController(self.__model)
     self.__layoutController = LayoutController(self.__model)
예제 #12
0
 def initialize(self):
     self.__model = NotificationsModel(self.__unreadMessagesCounter,
                                       self.__firstEntry)
     self.__actionsHandlers = NotificationsActionsHandlers()
     self.__alertsController = AlertController(self.__model)
예제 #13
0
 def initialize(self):
     self.__model = NotificationsModel()
     self.__alertsController = AlertController(self.__model)
     self.__listController = ListController(self.__model)
     self.__layoutController = LayoutController(self.__model)
예제 #14
0
 def initialize(self):
     self.__model = NotificationsModel()
     self.__alertsController = AlertController(self.__model)
     self.__listController = ListController(self.__model)
     self.__layoutController = LayoutController(self.__model)