예제 #1
0
 def connect(self, scope):
     if self.__contacts is None:
         if g_settings.server.useToShowContacts(PROTO_TYPE.XMPP):
             self.__contacts = contacts.XMPPContactsManagerProxy(
                 self.__bwProto, self.__xmppProto)
         else:
             self.__contacts = contacts.BWContactsManagerProxy(
                 self.__bwProto)
     g_messengerEvents.onPluginConnected += self.__onPluginConnected
     g_messengerEvents.onPluginDisconnected += self.__onPluginDisconnected
예제 #2
0
 def connect(self, scope):
     if self.__contacts is None:
         if g_settings.server.useToShowContacts(PROTO_TYPE.XMPP):
             self.__contacts = contacts.XMPPContactsManagerProxy(self.__xmppProto)
         else:
             self.__contacts = contacts.BWContactsManagerProxy(self.__bwProto)
     if self.__messages is None:
         if g_settings.server.isUserRoomsEnabled(PROTO_TYPE.XMPP):
             self.__messages = messages.XMPPMessagesManagerProxy(self.__xmppProto)
         else:
             self.__messages = messages.BWMessagesManagerProxy(self.__bwProto)
     g_messengerEvents.onPluginConnected += self.__onPluginConnected
     g_messengerEvents.onPluginDisconnected += self.__onPluginDisconnected
     return