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