KPublicTransport::RentalVehicleNetwork
#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.
Definition at line 152 of file rentalvehicle.h.
Property Documentation
◆ isValid
|
read |
Not an empty/default constructed object.
Definition at line 161 of file rentalvehicle.h.
◆ name
|
readwrite |
Human-visible name of this network.
Definition at line 156 of file rentalvehicle.h.
◆ vehicleTypes
|
readwrite |
Supported vehicle types by this network.
Definition at line 158 of file rentalvehicle.h.
Member Function Documentation
◆ fromJson()
|
staticnodiscard |
Deserialize an object from JSON.
Definition at line 68 of file rentalvehicle.cpp.
◆ isSame()
|
staticnodiscard |
Checks if two instances refer to the same network.
Definition at line 58 of file rentalvehicle.cpp.
◆ isValid()
|
nodiscard |
Definition at line 52 of file rentalvehicle.cpp.
◆ toJson()
|
staticnodiscard |
Serializes one object to JSON.
Definition at line 63 of file rentalvehicle.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.