Exemple #1
0
    def sipc_auth_t_run(self):
        kill_qthread(self.sipc_auth_t)
        kill_qthread(self.sipc_auth_t_killer)

        self.sipc_auth_t = IThread(i_sipc_auth,
                                   user=self.user,
                                   verification=self.verification,
                                   debug=True)
        self.sipc_auth_t_killer = IThreadKiller(self.sipc_auth_t, timeout=10)

        self.connect(self.sipc_auth_t, QtCore.SIGNAL("thread_finished()"),
                     self.sipc_auth_t_finished)
        self.connect(self.sipc_auth_t_killer, QtCore.SIGNAL('kill_qthread()'),
                     self.kill_sipc_auth_t)

        self.sipc_auth_t.start()
        self.sipc_auth_t_killer.start()
Exemple #2
0
    def download_sys_config_t_run(self):
        kill_qthread(self.download_sys_config_t)
        kill_qthread(self.download_sys_config_t_killer)

        self.download_sys_config_t = IThread(i_download_sys_config,
                                             user=self.user,
                                             debug=True)
        self.download_sys_config_t_killer = IThreadKiller(
            self.download_sys_config_t, timeout=20)

        self.connect(self.download_sys_config_t,
                     QtCore.SIGNAL("thread_finished()"),
                     self.download_sys_config_t_finished)
        self.connect(self.download_sys_config_t_killer,
                     QtCore.SIGNAL("kill_qthread()"),
                     self.kill_download_sys_config_t)

        self.download_sys_config_t.start()
        self.download_sys_config_t_killer.start()