Exemplo n.º 1
0
 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])
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
            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
Exemplo n.º 4
0
    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
Exemplo n.º 5
0
        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
Exemplo n.º 6
0
    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
Exemplo n.º 7
0
 def reset(cls):
     """remove all timers"""
     for i,x in cls.clock.iteritems():
         idaapi.unregister_timer(x)
         del( cls.clock[i] )
     return
Exemplo n.º 8
0
 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
Exemplo n.º 9
0
 def unregister(cls, id):
     raise NotImplementedError('need a lock or signal here')
     idaapi.unregister_timer(cls.clock[id])
     del(cls.clock[id])
Exemplo n.º 10
0
 def term(self):
     if self.kernel_app:
         idaapi.unregister_timer(self.timer)
         self.kill_qtconsoles()
         self.remove_menus()
Exemplo n.º 11
0
 def term(self):
     # self.ui_hooks.unhook()
     idaapi.unregister_timer(self.timer)
Exemplo n.º 12
0
 def unhook(self, *args):
     if self.timer != None:
         idaapi.unregister_timer(self.timer)
     super(DbgHooks, self).unhook(*args)
Exemplo n.º 13
0
 def unregisterTimer(self, obj):
     return idaapi.unregister_timer(obj)
Exemplo n.º 14
0
 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])
Exemplo n.º 15
0
 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
Exemplo n.º 16
0
 def destroy(self):
     idaapi.unregister_timer(self.timer)
Exemplo n.º 17
0
 def unregister(cls, id):
     raise NotImplementedError('need a lock or signal here')
     idaapi.unregister_timer(cls.clock[id])
     del (cls.clock[id])
Exemplo n.º 18
0
 def unregisterTimer(self, obj):
     return idaapi.unregister_timer(obj)
Exemplo n.º 19
0
	def closeEvent(self, thing):
		self.savedcloseEvent(thing)
		idaapi.unregister_timer(self.timer_obj)
		self.timer_obj = None
		return
Exemplo n.º 20
0
 def reset(cls):
     """remove all timers"""
     for i, x in cls.clock.iteritems():
         idaapi.unregister_timer(x)
         del (cls.clock[i])
     return