Esempio n. 1
0
    def service_disconnect_handler(service, ok, err):
        if DIALUP_NET_SVCLASS_ID != uuid128_to_uuid16(service.uuid):
            return False
        conn = NMDUNConnection(service, ok, err)
        conn.deactivate()

        return True
Esempio n. 2
0
    def service_disconnect_handler(service, ok, err):
        if DIALUP_NET_SVCLASS_ID != service.short_uuid:
            return False

        conn = NMDUNConnection(service, ok, err)
        conn.deactivate()

        return True
Esempio n. 3
0
    def service_disconnect_handler(service, ok, err):
        if DIALUP_NET_SVCLASS_ID != service.short_uuid:
            return False

        conn = NMDUNConnection(service, ok, err)
        conn.deactivate()

        return True
Esempio n. 4
0
    def service_disconnect_handler(
            self, service: Service, ok: Callable[[], None],
            err: Callable[[Union[NMConnectionError, GLib.Error]],
                          None]) -> bool:
        if DIALUP_NET_SVCLASS_ID != service.short_uuid:
            return False

        conn = NMDUNConnection(service, ok, err)
        conn.deactivate()

        return True