コード例 #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])
コード例 #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
コード例 #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
コード例 #4
0
ファイル: ui.py プロジェクト: heruix/ida-minsc
    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
コード例 #5
0
ファイル: helper.py プロジェクト: IDA-RE-things/idascripts
        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
コード例 #6
0
ファイル: ui.py プロジェクト: arizvisa/idascripts
    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
コード例 #7
0
ファイル: helper.py プロジェクト: IDA-RE-things/idascripts
 def reset(cls):
     """remove all timers"""
     for i,x in cls.clock.iteritems():
         idaapi.unregister_timer(x)
         del( cls.clock[i] )
     return
コード例 #8
0
ファイル: ui.py プロジェクト: arizvisa/idascripts
 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
コード例 #9
0
ファイル: helper.py プロジェクト: IDA-RE-things/idascripts
 def unregister(cls, id):
     raise NotImplementedError('need a lock or signal here')
     idaapi.unregister_timer(cls.clock[id])
     del(cls.clock[id])
コード例 #10
0
ファイル: ida_ipython.py プロジェクト: NyaMisty/ida_ipython
 def term(self):
     if self.kernel_app:
         idaapi.unregister_timer(self.timer)
         self.kill_qtconsoles()
         self.remove_menus()
コード例 #11
0
ファイル: highlight_calls.py プロジェクト: ababook/Sark
 def term(self):
     # self.ui_hooks.unhook()
     idaapi.unregister_timer(self.timer)
コード例 #12
0
ファイル: dbg.py プロジェクト: fengjixuchui/deREferencing
 def unhook(self, *args):
     if self.timer != None:
         idaapi.unregister_timer(self.timer)
     super(DbgHooks, self).unhook(*args)
コード例 #13
0
ファイル: ida.py プロジェクト: IDA-RE-things/toolbag
 def unregisterTimer(self, obj):
     return idaapi.unregister_timer(obj)
コード例 #14
0
ファイル: ui.py プロジェクト: arizvisa/idascripts
 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])
コード例 #15
0
ファイル: ui.py プロジェクト: heruix/ida-minsc
 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
コード例 #16
0
ファイル: bcplugin.py プロジェクト: zan00789/bincat
 def destroy(self):
     idaapi.unregister_timer(self.timer)
コード例 #17
0
 def unregister(cls, id):
     raise NotImplementedError('need a lock or signal here')
     idaapi.unregister_timer(cls.clock[id])
     del (cls.clock[id])
コード例 #18
0
 def unregisterTimer(self, obj):
     return idaapi.unregister_timer(obj)
コード例 #19
0
	def closeEvent(self, thing):
		self.savedcloseEvent(thing)
		idaapi.unregister_timer(self.timer_obj)
		self.timer_obj = None
		return
コード例 #20
0
 def reset(cls):
     """remove all timers"""
     for i, x in cls.clock.iteritems():
         idaapi.unregister_timer(x)
         del (cls.clock[i])
     return