Ejemplo n.º 1
0
    def __init__(self, seatpath):
        BusBase.__init__(self,
                         path=seatpath,
                         interface="org.freedesktop.ConsoleKit.Session",
                         service="org.freedesktop.ConsoleKit")

        self.bus.add_signal_receiver(self.active_changed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="ActiveChanged")

        self.bus.add_signal_receiver(self.idle_hint_changed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="IdleHintChanged")

        self.bus.add_signal_receiver(self.lock_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="Lock")

        self.bus.add_signal_receiver(self.unlock_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="Unlock")
    def __init__(self, userpath):
        BusBase.__init__(self, path=userpath, interface="org.freedesktop.Accounts.User")

        self.bus.add_signal_receiver(
            self.changed_cb, dbus_interface=self.object_interface, path=self.object_path, signal_name="Changed"
        )
        self.init_dbus_properties()
Ejemplo n.º 3
0
    def __init__(self, seatpath):
        BusBase.__init__(self,
                         path=seatpath,
                         interface="org.freedesktop.ConsoleKit.Seat",
                         service="org.freedesktop.ConsoleKit")

        self.bus.add_signal_receiver(self.active_session_changed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="ActiveSessionChanged")

        self.bus.add_signal_receiver(self.device_added_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="DeviceAdded")

        self.bus.add_signal_receiver(self.device_removed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="DeviceRemoved")

        self.bus.add_signal_receiver(self.session_added_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="SessionAdded")

        self.bus.add_signal_receiver(self.session_removed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="SessionRemoved")
    def __init__(self, userpath):
        BusBase.__init__(self,
                         path=userpath,
                         interface="org.freedesktop.Accounts.User")

        self.bus.add_signal_receiver(self.changed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="Changed")
        self.init_dbus_properties()
    def __init__(self):
        BusBase.__init__(self, path="/org/freedesktop/Accounts", interface="org.freedesktop.Accounts")

        self.bus.add_signal_receiver(
            self.user_added_cb, dbus_interface=self.object_interface, path=self.object_path, signal_name="UserAdded"
        )

        self.bus.add_signal_receiver(
            self.user_deleted_cb, dbus_interface=self.object_interface, path=self.object_path, signal_name="UserDeleted"
        )

        self.init_dbus_properties()
    def __init__(self):
        BusBase.__init__(self, path = "/org/freedesktop/ConsoleKit/Manager", interface = "org.freedesktop.ConsoleKit.Manager", 
                         service = "org.freedesktop.ConsoleKit")

        self.bus.add_signal_receiver(self.seat_added_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "SeatAdded")

        self.bus.add_signal_receiver(self.seat_removed_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "SeatRemoved")

        self.bus.add_signal_receiver(self.system_idle_hint_changed_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "SystemIdleHintChanged")
    def __init__(self, seatpath):
        BusBase.__init__(self, path = seatpath, interface = "org.freedesktop.ConsoleKit.Session", 
                         service = "org.freedesktop.ConsoleKit" )

        self.bus.add_signal_receiver(self.active_changed_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "ActiveChanged")

        self.bus.add_signal_receiver(self.idle_hint_changed_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "IdleHintChanged")

        self.bus.add_signal_receiver(self.lock_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "Lock")

        self.bus.add_signal_receiver(self.unlock_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "Unlock")
    def __init__(self):
        BusBase.__init__(self,
                         path="/org/freedesktop/Accounts",
                         interface="org.freedesktop.Accounts")

        self.bus.add_signal_receiver(self.user_added_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="UserAdded")

        self.bus.add_signal_receiver(self.user_deleted_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="UserDeleted")

        self.init_dbus_properties()
    def __init__(self, seatpath):
        BusBase.__init__(self, path = seatpath, interface = "org.freedesktop.ConsoleKit.Seat", 
                         service = "org.freedesktop.ConsoleKit" )

        self.bus.add_signal_receiver(self.active_session_changed_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "ActiveSessionChanged")

        self.bus.add_signal_receiver(self.device_added_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "DeviceAdded")

        self.bus.add_signal_receiver(self.device_removed_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "DeviceRemoved")

        self.bus.add_signal_receiver(self.session_added_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "SessionAdded")

        self.bus.add_signal_receiver(self.session_removed_cb, dbus_interface = self.object_interface, 
                                     path = self.object_path, signal_name = "SessionRemoved")
Ejemplo n.º 10
0
    def __init__(self):
        BusBase.__init__(self,
                         path="/org/freedesktop/ConsoleKit/Manager",
                         interface="org.freedesktop.ConsoleKit.Manager",
                         service="org.freedesktop.ConsoleKit")

        self.bus.add_signal_receiver(self.seat_added_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="SeatAdded")

        self.bus.add_signal_receiver(self.seat_removed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="SeatRemoved")

        self.bus.add_signal_receiver(self.system_idle_hint_changed_cb,
                                     dbus_interface=self.object_interface,
                                     path=self.object_path,
                                     signal_name="SystemIdleHintChanged")