KPublicTransport::RentalVehicleNetwork

Search for usage in LXR

KPublicTransport::RentalVehicleNetwork Class Reference

#include <rentalvehicle.h>

Properties

bool isValid
 
QString name
 
KPublicTransport::RentalVehicle::VehicleTypes vehicleTypes
 

Public Member Functions

bool isValid () const
 

Static Public Member Functions

static RentalVehicleNetwork fromJson (const QJsonObject &obj)
 
static bool isSame (const RentalVehicleNetwork &lhs, const RentalVehicleNetwork &rhs)
 
static QJsonObject toJson (const RentalVehicleNetwork &network)
 

Detailed Description

A vehicle sharing system/network.

Typically one operator/area, needing an account/app for that operator to rent vehicles.

See also
https://github.com/NABSA/gbfs/blob/master/gbfs.md#system_informationjson

Definition at line 136 of file rentalvehicle.h.

Property Documentation

◆ isValid

bool KPublicTransport::RentalVehicleNetwork::isValid
read

Not an empty/default constructed object.

Definition at line 145 of file rentalvehicle.h.

◆ name

QString KPublicTransport::RentalVehicleNetwork::name
readwrite

Human-visible name of this network.

Definition at line 140 of file rentalvehicle.h.

◆ vehicleTypes

KPublicTransport::RentalVehicle::VehicleTypes KPublicTransport::RentalVehicleNetwork::vehicleTypes
readwrite

Supported vehicle types by this network.

Definition at line 142 of file rentalvehicle.h.

Member Function Documentation

◆ fromJson()

RentalVehicleNetwork RentalVehicleNetwork::fromJson ( const QJsonObject & obj)
static

Deserialize an object from JSON.

Definition at line 64 of file rentalvehicle.cpp.

◆ isSame()

bool RentalVehicleNetwork::isSame ( const RentalVehicleNetwork & lhs,
const RentalVehicleNetwork & rhs )
static

Checks if two instances refer to the same network.

Definition at line 54 of file rentalvehicle.cpp.

◆ isValid()

bool RentalVehicleNetwork::isValid ( ) const

Definition at line 48 of file rentalvehicle.cpp.

◆ toJson()

QJsonObject RentalVehicleNetwork::toJson ( const RentalVehicleNetwork & network)
static

Serializes one object to JSON.

Definition at line 59 of file rentalvehicle.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:59:22 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.