Exemplo n.º 1
0
    def service_disconnect_handler(service, ok, err):
        if service.group != 'network':
            return False

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

        return True
Exemplo n.º 2
0
    def service_disconnect_handler(service, ok, err):
        if not isinstance(service, NetworkService):
            return False

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

        return True
Exemplo n.º 3
0
    def service_disconnect_handler(service, ok, err):
        if service.group != 'network':
            return False

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

        return True
Exemplo n.º 4
0
    def service_disconnect_handler(self, service: Service, ok: Callable[[], None],
                                   err: Callable[[Union[NMConnectionError, GLib.Error]], None]) -> bool:
        if not isinstance(service, NetworkService):
            return False

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

        return True