예제 #1
0
 def __init__(self):
     koDirSvc = components.classes["@activestate.com/koDirs;1"].\
         getService(components.interfaces.koIDirs)
     db_path = join(koDirSvc.userDataDir, "history.sqlite")
     History.__init__(self, db_path)
     self._observerSvc = components.classes["@mozilla.org/observer-service;1"].\
         getService(components.interfaces.nsIObserverService)
     self._observerSvc.addObserver(self, 'xpcom-shutdown', False)
예제 #2
0
 def __init__(self):
     koDirSvc = components.classes["@activestate.com/koDirs;1"].\
         getService(components.interfaces.koIDirs)
     db_path = join(koDirSvc.userDataDir, "history.sqlite")
     History.__init__(self, db_path)
     self._observerSvc = components.classes["@mozilla.org/observer-service;1"].\
         getService(components.interfaces.nsIObserverService)
     self._observerSvc.addObserver(self, 'xpcom-shutdown', False)
예제 #3
0
    def __init__(self):
        koDirSvc = components.classes["@activestate.com/koDirs;1"].\
            getService(components.interfaces.koIDirs)
        db_path = join(koDirSvc.userDataDir, "history.sqlite")
        History.__init__(self, db_path)
        self._observerSvc = components.classes["@mozilla.org/observer-service;1"].\
            getService(components.interfaces.nsIObserverService)
        self._obsSvcProxy = _xpcom.getProxyForObject(
            1, components.interfaces.nsIObserverService, self._observerSvc,
            _xpcom.PROXY_SYNC | _xpcom.PROXY_ALWAYS)


        self._prefSvc = components.classes["@activestate.com/koPrefService;1"].\
            getService(components.interfaces.koIPrefService)
        self._wrapped = WrapObject(self, components.interfaces.nsIObserver)

        self._observerSvc.addObserver(self._wrapped, 'xpcom-shutdown', 1)