def Login(self, argv=None): # init bot self.init(argv) session, contactdb = QLogin(self.conf) self.session, self.contactdb = session, contactdb # main thread self.SendTo = session.Copy().SendTo self.groupKick = session.GroupKick self.groupSetAdmin = session.GroupSetAdmin self.groupShut = session.GroupShut self.groupSetCard = session.GroupSetCard # main thread self.List = contactdb.List self.Update = contactdb.Update self.StrOfList = contactdb.StrOfList self.ObjOfList = contactdb.ObjOfList self.findSender = contactdb.FindSender self.firstFetch = contactdb.FirstFetch self.Delete = contactdb.db.Delete self.Modify = contactdb.db.Modify # child thread 1 self.poll = session.Copy().Poll
def Login(self, qq=None, user=None): session, contactdb, self.conf = QLogin(qq, user) # main thread self.SendTo = session.SendTo self.groupKick = session.GroupKick self.groupSetAdmin = session.GroupSetAdmin self.groupShut = session.GroupShut self.groupSetCard = session.GroupSetCard # main thread self.List = contactdb.List self.StrOfList = contactdb.StrOfList self.find = contactdb.Find self.deleteMember = contactdb.DeleteMember self.setMemberCard = contactdb.SetMemberCard self.firstFetch = contactdb.FirstFetch # child thread 1 self.poll = session.Copy().Poll # child thread 2 self.termForver = QTermServer(self.conf.termServerPort).Run # runs in main thread, but puts tasks into child thread 3 self.updateForever = contactdb.UpdateForever
def Login(self, qq=None, user=None): self.conf = QConf(qq, user) session, contactdb, self.conf = QLogin(conf=self.conf) # main thread self.SendTo = session.SendTo self.groupKick = session.GroupKick self.groupSetAdmin = session.GroupSetAdmin self.groupShut = session.GroupShut self.groupSetCard = session.GroupSetCard # main thread self.List = contactdb.List self.Update = contactdb.Update self.StrOfList = contactdb.StrOfList self.ObjOfList = contactdb.ObjOfList self.findSender = contactdb.FindSender self.firstFetch = contactdb.FirstFetch self.Delete = contactdb.db.Delete self.Modify = contactdb.db.Modify # child thread 1 self.poll = session.Copy().Poll # child thread 2 self.termForver = QTermServer(self.conf.termServerPort).Run
def Login(self): self.conf.Display() session, contacts = QLogin(conf=self.conf) self.Get = contacts.Get # main thread self.List = contacts.List # main thread self.assignContacts = contacts.Assign # main thread self.send = session.Send # main thread self.poll = session.Copy().Poll # child thread 1
def Login(self, qq=None, user=None): session, contactdb, self.conf = QLogin(qq, user) # main thread self.SendTo = session.SendTo self.List = contactdb.List self.StrOfList = contactdb.StrOfList self.find = contactdb.Find # child thread 1/2/3 self.poll = session.Copy().Poll self.updateForever = contactdb.UpdateForever self.termForver = QTermServer(self.conf.termServerPort).Run