コード例 #1
0
 def initialize(self):
     bus = dbus.SessionBus()
     dbus_signal_connect_weakly(bus,
                                "NameOwnerChanged",
                                self._name_owner_changed,
                                dbus_interface="org.freedesktop.DBus",
                                arg0=_BUS_NAME)
コード例 #2
0
 def initialize(self):
     session_bus = dbus.Bus()
     for signal in ('Created', 'Updated', 'Deleted'):
         dbus_signal_connect_weakly(session_bus,
                                    signal,
                                    self._signal_update,
                                    dbus_interface=DBUS_GWIBBER_ACCOUNTS[0])
コード例 #3
0
 def initialize(self):
     session_bus = dbus.Bus()
     for signal in ('Created', 'Updated', 'Deleted'):
         dbus_signal_connect_weakly(session_bus,
                                    signal,
                                    self._signal_update,
                                    dbus_interface=DBUS_GWIBBER_STREAMS[0])
     _gwibber_refresh()
コード例 #4
0
 def _setup_monitor(self):
     dbus_signal_connect_weakly(dbus.Bus(),
                                'NameOwnerChanged',
                                self._signal_update,
                                dbus_interface='org.freedesktop.DBus')
     dbus_signal_connect_weakly(
         dbus.Bus(),
         'PropertiesChanged',
         self._properties_changed,
         dbus_interface='org.freedesktop.DBus.Properties')
コード例 #5
0
ファイル: pidgin.py プロジェクト: guns/kupfer
    def _install_dbus_signal(self):
        '''Add signals to pidgin when buddy goes offline or
        online to update the list'''
        try:
            session_bus = dbus.Bus()
        except dbus.DBusException:
            return

        dbus_signal_connect_weakly(session_bus,
                                   "SigningOff",
                                   self._signing_off,
                                   dbus_interface=IFACE_NAME)

        dbus_signal_connect_weakly(session_bus,
                                   "BuddySignedOn",
                                   self._buddy_signed_on,
                                   dbus_interface=IFACE_NAME)

        dbus_signal_connect_weakly(session_bus,
                                   "BuddyStatusChanged",
                                   self._buddy_status_changed,
                                   dbus_interface=IFACE_NAME)

        dbus_signal_connect_weakly(session_bus,
                                   "BuddySignedOff",
                                   self._buddy_signed_off,
                                   dbus_interface=IFACE_NAME)
コード例 #6
0
    def initialize(self):
        ToplevelGroupingSource.initialize(self)

        eds_cache = _get_calendar_dirs(EDS_CAL_PATH, EDS_CAL_WEB_PATH)
        if eds_cache:
            #path = list(self.get_path())
            self.monitor_token = self.monitor_directories(*eds_cache)

        bus = dbus.SessionBus()
        dbus_signal_connect_weakly(
            bus,
            "objects_modified",
            self._on_events_updated,
            dbus_interface="org.gnome.evolution.dataserver.CalendarView")
コード例 #7
0
ファイル: gajim.py プロジェクト: pbx/kupfer
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        # listen to d-bus signals for updates
        signals = [
            "ContactAbsence",
            "ContactPresence",
            "ContactStatus",
            "AccountPresence",
            "Roster",
            "RosterInfo",
        ]

        session_bus = dbus.Bus()

        for signal in signals:
            dbus_signal_connect_weakly(session_bus, signal,
                    self._signal_update, dbus_interface=_IFACE_NAME)
コード例 #8
0
ファイル: notes.py プロジェクト: engla/kupfer
    def initialize(self):
        """Set up filesystem monitors to catch changes"""
        # We monitor all directories that exist of a couple of candidates
        dirs = []
        for program in PROGRAM_IDS:
            notedatapaths = (os.path.join(base.xdg_data_home, program),
                    os.path.expanduser("~/.%s" % program))
            dirs.extend(notedatapaths)
        self.monitor_token = self.monitor_directories(*dirs)

        set_prog = __kupfer_settings__["notes_application"]
        if set_prog in PROGRAM_SERIVCES:
            bus_name = PROGRAM_SERIVCES[set_prog][0]
            bus = dbus.SessionBus()
            dbus_signal_connect_weakly(bus, "NameOwnerChanged", self._name_owner_changed,
                                       dbus_interface="org.freedesktop.DBus",
                                       arg0=bus_name)
コード例 #9
0
ファイル: notes.py プロジェクト: cnheider/kupfer
    def initialize(self):
        """Set up filesystem monitors to catch changes"""
        # We monitor all directories that exist of a couple of candidates
        dirs = []
        for program in PROGRAM_IDS:
            notedatapaths = (os.path.join(base.xdg_data_home, program),
                    os.path.expanduser("~/.%s" % program))
            dirs.extend(notedatapaths)
        self.monitor_token = self.monitor_directories(*dirs)

        set_prog = __kupfer_settings__["notes_application"]
        if set_prog in PROGRAM_SERIVCES:
            bus_name = PROGRAM_SERIVCES[set_prog][0]
            bus = dbus.SessionBus()
            dbus_signal_connect_weakly(bus, "NameOwnerChanged", self._name_owner_changed,
                                       dbus_interface="org.freedesktop.DBus",
                                       arg0=bus_name)
コード例 #10
0
ファイル: gtg.py プロジェクト: engla/kupfer
 def initialize(self):
     bus = dbus.SessionBus()
     dbus_signal_connect_weakly(bus, "TaskAdded", self._on_tasks_updated,
                                dbus_interface=_IFACE_NAME2)
     dbus_signal_connect_weakly(bus, "TaskModified", self._on_tasks_updated,
                                dbus_interface=_IFACE_NAME2)
     dbus_signal_connect_weakly(bus, "TaskDeleted", self._on_tasks_updated,
                                dbus_interface=_IFACE_NAME2)
     dbus_signal_connect_weakly(bus, "NameOwnerChanged", self._name_owner_changed,
                                dbus_interface="org.freedesktop.DBus",
                                arg0=_SERVICE_NAME2)
コード例 #11
0
ファイル: gajim.py プロジェクト: jchtt/kupfer-adds
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        # listen to d-bus signals for updates
        signals = [
            "ContactAbsence",
            "ContactPresence",
            "ContactStatus",
            "AccountPresence",
            "Roster",
            "RosterInfo",
        ]

        session_bus = dbus.Bus()

        for signal in signals:
            dbus_signal_connect_weakly(session_bus,
                                       signal,
                                       self._signal_update,
                                       dbus_interface=_IFACE_NAME)
コード例 #12
0
ファイル: gwibber.py プロジェクト: tuxcanfly/kupfer
	def initialize(self):
		session_bus = dbus.Bus()
		dbus_signal_connect_weakly(session_bus, 'Message',
				self._signal_update, dbus_interface=DBUS_GWIBBER_MESSAGES[0])
		dbus_signal_connect_weakly(session_bus, 'LoadingComplete',
				self._signal_update, dbus_interface=DBUS_GWIBBER_SERVICE[0])
		for signal in ('Created', 'Updated', 'Deleted'):
			dbus_signal_connect_weakly(session_bus, signal,
					self._signal_update, dbus_interface=DBUS_GWIBBER_STREAMS[0])
コード例 #13
0
ファイル: pidgin.py プロジェクト: pbx/kupfer
    def _install_dbus_signal(self):
        '''Add signals to pidgin when buddy goes offline or
        online to update the list'''
        try:
            session_bus = dbus.Bus()
        except dbus.DBusException:
            return

        dbus_signal_connect_weakly(session_bus, "SigningOff",
                self._signing_off, dbus_interface=IFACE_NAME)

        dbus_signal_connect_weakly(session_bus, "BuddySignedOn",
                self._buddy_signed_on, dbus_interface=IFACE_NAME)

        dbus_signal_connect_weakly(session_bus, "BuddyStatusChanged",
                self._buddy_status_changed, dbus_interface=IFACE_NAME)

        dbus_signal_connect_weakly(session_bus, "BuddySignedOff",
                self._buddy_signed_off, dbus_interface=IFACE_NAME)
コード例 #14
0
 def initialize(self):
     bus = dbus.SessionBus()
     dbus_signal_connect_weakly(bus,
                                "TaskAdded",
                                self._on_tasks_updated,
                                dbus_interface=_IFACE_NAME2)
     dbus_signal_connect_weakly(bus,
                                "TaskModified",
                                self._on_tasks_updated,
                                dbus_interface=_IFACE_NAME2)
     dbus_signal_connect_weakly(bus,
                                "TaskDeleted",
                                self._on_tasks_updated,
                                dbus_interface=_IFACE_NAME2)
     dbus_signal_connect_weakly(bus,
                                "NameOwnerChanged",
                                self._name_owner_changed,
                                dbus_interface="org.freedesktop.DBus",
                                arg0=_SERVICE_NAME2)
コード例 #15
0
 def initialize(self):
     session_bus = dbus.Bus()
     dbus_signal_connect_weakly(session_bus,
                                'Message',
                                self._signal_update,
                                dbus_interface=DBUS_GWIBBER_MESSAGES[0])
     dbus_signal_connect_weakly(session_bus,
                                'LoadingComplete',
                                self._signal_update,
                                dbus_interface=DBUS_GWIBBER_SERVICE[0])
     for signal in ('Created', 'Updated', 'Deleted'):
         dbus_signal_connect_weakly(session_bus,
                                    signal,
                                    self._signal_update,
                                    dbus_interface=DBUS_GWIBBER_STREAMS[0])
コード例 #16
0
 def initialize(self):
     dbus_signal_connect_weakly(dbus.Bus(), 'FactsChanged', self._facts_changed,
                                dbus_interface='org.gnome.Hamster')
コード例 #17
0
ファイル: gwibber.py プロジェクト: tuxcanfly/kupfer
	def initialize(self):
		session_bus = dbus.Bus()
		for signal in ('Created', 'Updated', 'Deleted'):
			dbus_signal_connect_weakly(session_bus, signal,
					self._signal_update, dbus_interface=DBUS_GWIBBER_STREAMS[0])
		_gwibber_refresh()
コード例 #18
0
ファイル: gwibber.py プロジェクト: tuxcanfly/kupfer
	def initialize(self):
		session_bus = dbus.Bus()
		for signal in ('Created', 'Updated', 'Deleted'):
			dbus_signal_connect_weakly(session_bus, signal,
					self._signal_update, dbus_interface=DBUS_GWIBBER_ACCOUNTS[0])
コード例 #19
0
 def initialize(self):
     dbus_signal_connect_weakly(dbus.Bus(),
                                'FactsChanged',
                                self._facts_changed,
                                dbus_interface='org.gnome.Hamster')
コード例 #20
0
 def _setup_monitor(self):
     dbus_signal_connect_weakly(dbus.Bus(), 'NameOwnerChanged', self._signal_update,
                                dbus_interface='org.freedesktop.DBus')
     dbus_signal_connect_weakly(dbus.Bus(), 'PropertiesChanged', self._properties_changed,
                                dbus_interface='org.freedesktop.DBus.Properties')
コード例 #21
0
ファイル: rhythmbox.py プロジェクト: engla/kupfer
 def initialize(self):
     bus = dbus.SessionBus()
     dbus_signal_connect_weakly(bus, "NameOwnerChanged", self._name_owner_changed,
                                dbus_interface="org.freedesktop.DBus",
                                arg0=_BUS_NAME)