KPublicTransport
rentalvehicle.cpp
44KPUBLICTRANSPORT_MAKE_PROPERTY(RentalVehicleNetwork, RentalVehicle::VehicleTypes, vehicleTypes, setVehicleTypes)
52bool RentalVehicleNetwork::isSame(const RentalVehicleNetwork &lhs, const RentalVehicleNetwork &rhs)
68KPUBLICTRANSPORT_MAKE_PROPERTY(RentalVehicleStation, int, availableVehicles, setAvailableVehicles)
149bool RentalVehicleStation::isSame(const RentalVehicleStation &lhs, const RentalVehicleStation &rhs)
211 station.setNetwork(RentalVehicleNetwork::fromJson(obj.value(QLatin1String("network")).toObject()));
213 station.d->availabilities = typeVectorFromJson(obj.value(QLatin1String("availabilitiesByType")));
A vehicle sharing system/network.
Definition rentalvehicle.h:125
static RentalVehicleNetwork fromJson(const QJsonObject &obj)
Deserialize an object from JSON.
Definition rentalvehicle.cpp:62
static QJsonObject toJson(const RentalVehicleNetwork &network)
Serializes one object to JSON.
Definition rentalvehicle.cpp:57
static bool isSame(const RentalVehicleNetwork &lhs, const RentalVehicleNetwork &rhs)
Checks if two instances refer to the same network.
Definition rentalvehicle.cpp:52
Additional information for a vehicle renting station, attached to Location objects.
Definition rentalvehicle.h:73
static RentalVehicleStation fromJson(const QJsonObject &obj)
Deserialize an object from JSON.
Definition rentalvehicle.cpp:208
KPublicTransport::RentalVehicleNetwork network
Sharing network operator.
Definition rentalvehicle.h:83
KPublicTransport::RentalVehicle::VehicleTypes supportedVehicleTypes
Supported vehicle types at this station.
Definition rentalvehicle.h:89
int availableVehicles
Number of available (rentable) vehicles at this station.
Definition rentalvehicle.h:76
static bool isSame(const RentalVehicleStation &lhs, const RentalVehicleStation &rhs)
Checks if two instances refer to the same station.
Definition rentalvehicle.cpp:149
void setAvailableVehicles(RentalVehicle::VehicleType type, int count)
Sets the number of available vehicles for a given vehicle type.
Definition rentalvehicle.cpp:136
void setCapacity(RentalVehicle::VehicleType type, int capacity)
Set the capacity for a specific vehicle type.
Definition rentalvehicle.cpp:112
static QJsonObject toJson(const RentalVehicleStation &station)
Serializes one object to JSON.
Definition rentalvehicle.cpp:170
KPublicTransport::RentalVehicle::VehicleTypes availableVehicleTypes
Available vehicle types at this station.
Definition rentalvehicle.h:91
An individual rental vehicle used on a JourneySection, ie.
Definition rentalvehicle.h:28
static RentalVehicle fromJson(const QJsonObject &obj)
Deserialize an object from JSON.
Definition rentalvehicle.cpp:234
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
iterator end()
iterator find(QLatin1StringView key)
iterator insert(QLatin1StringView key, const QJsonValue &value)
bool isEmpty() const const
void remove(QLatin1StringView key)
QJsonValue value(QLatin1StringView key) const const
QJsonObject toObject() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.