def unregister(cls, id): '''Unregister the specified `id`.''' raise internal.exceptions.UnsupportedCapability( u"{:s}.unregister({!s}) : A lock or a signal is needed here in order to unregister this timer safely." .format('.'.join((__name__, cls.__name__)), id)) idaapi.unregister_timer(cls.clock[id]) del (cls.clock[id])
def stop(self): if self._timer is not None: idaapi.unregister_timer(self._timer) self._timer = None self.connection_file = None sys.stdout = _ida_stdout sys.stderr = _ida_stderr
def register(cls, id, interval, fn): """register a python function as a timer""" if id in cls.clock: idaapi.unregister_timer(cls.clock[id]) # XXX: need to create a closure that can terminate when signalled cls.clock[id] = res = idaapi.register_timer(interval, fn) return res
def register(cls, id, interval, callable): '''Register the specified `callable` with the requested `id` to be called at every `interval`.''' if id in cls.clock: idaapi.unregister_timer(cls.clock[id]) # XXX: need to create a closure that can terminate when signalled cls.clock[id] = res = idaapi.register_timer(interval, callable) return res
def reset(cls): """remove all timers""" for i,x in cls.clock.iteritems(): idaapi.unregister_timer(x) del( cls.clock[i] ) return
def reset(cls): '''Remove all the registered timers.''' for id, clk in six.iteritems(cls.clock): idaapi.unregister_timer(clk) del(cls.clock[id]) return
def unregister(cls, id): raise NotImplementedError('need a lock or signal here') idaapi.unregister_timer(cls.clock[id]) del(cls.clock[id])
def term(self): if self.kernel_app: idaapi.unregister_timer(self.timer) self.kill_qtconsoles() self.remove_menus()
def term(self): # self.ui_hooks.unhook() idaapi.unregister_timer(self.timer)
def unhook(self, *args): if self.timer != None: idaapi.unregister_timer(self.timer) super(DbgHooks, self).unhook(*args)
def unregisterTimer(self, obj): return idaapi.unregister_timer(obj)
def unregister(cls, id): '''Unregister the specified `id`.''' raise internal.exceptions.UnsupportedCapability(u"{:s}.unregister({!s}) : A lock or a signal is needed here in order to unregister this timer safely.".format('.'.join((__name__, cls.__name__)), id)) idaapi.unregister_timer(cls.clock[id]) del(cls.clock[id])
def destroy(self): idaapi.unregister_timer(self.timer)
def unregister(cls, id): raise NotImplementedError('need a lock or signal here') idaapi.unregister_timer(cls.clock[id]) del (cls.clock[id])
def closeEvent(self, thing): self.savedcloseEvent(thing) idaapi.unregister_timer(self.timer_obj) self.timer_obj = None return
def reset(cls): """remove all timers""" for i, x in cls.clock.iteritems(): idaapi.unregister_timer(x) del (cls.clock[i]) return