Esempio n. 1
0
 def connect(self, scope):
     if scope != MESSENGER_SCOPE.BATTLE:
         self.__arenaChat.leave()
     if not self.__isConnected:
         self.__isConnected = True
         self.__voipCtrl.start()
         g_messengerEvents.onPluginConnected(PROTO_TYPE.BW_CHAT2)
Esempio n. 2
0
 def connect(self, scope):
     if not self.__isConnected:
         self.__isConnected = True
         self._addChatActionsListeners()
         self.clanListener.start()
         self.__isConnected = True
         g_messengerEvents.onPluginConnected(PROTO_TYPE.BW)
     self.channels.switch(scope)
     self.users.switch(scope)
     self.serviceChannel.switch(scope)
Esempio n. 3
0
 def connect(self, scope):
     if not self.__isConnected:
         self.__isConnected = True
         self._addChatActionsListeners()
         self.clanListener.start()
         self.__isConnected = True
         g_messengerEvents.onPluginConnected(PROTO_TYPE.BW)
     self.channels.switch(scope)
     self.users.switch(scope)
     self.serviceChannel.switch(scope)
Esempio n. 4
0
 def __onPluginConnected(self, protoType):
     if protoType == PROTO_TYPE.MIGRATION:
         return
     if g_settings.server.useToShowContacts(protoType):
         g_messengerEvents.onPluginConnected(PROTO_TYPE.MIGRATION)
Esempio n. 5
0
 def __onPluginConnected(self, protoType):
     if protoType == PROTO_TYPE.MIGRATION:
         return
     if g_settings.server.useToShowContacts(protoType):
         g_messengerEvents.onPluginConnected(PROTO_TYPE.MIGRATION)
Esempio n. 6
0
 def __handleLogin(self):
     g_logOutput.debug(CLIENT_LOG_AREA.LOGIN, 'Client is login')
     self.__connectionsInfo.clear()
     self.__reqTokenBackOff.reset()
     g_messengerEvents.onPluginConnected(PROTO_TYPE.XMPP)
Esempio n. 7
0
 def __handleLogin(self):
     g_logOutput.debug(CLIENT_LOG_AREA.LOGIN, 'Client is login')
     self.__connectionsInfo.clear()
     self.__reqTokenBackOff.reset()
     g_messengerEvents.onPluginConnected(PROTO_TYPE.XMPP)
Esempio n. 8
0
 def connect(self, scope):
     if scope != MESSENGER_SCOPE.BATTLE:
         self.__arenaChat.leave()
     if not self.__isConnected:
         self.__isConnected = True
         g_messengerEvents.onPluginConnected(PROTO_TYPE.BW_CHAT2)