KPublicTransport
rentalvehicle.cpp
48KPUBLICTRANSPORT_MAKE_PROPERTY(RentalVehicleNetwork, RentalVehicle::VehicleTypes, vehicleTypes, setVehicleTypes)
56bool RentalVehicleNetwork::isSame(const RentalVehicleNetwork &lhs, const RentalVehicleNetwork &rhs)
72KPUBLICTRANSPORT_MAKE_PROPERTY(RentalVehicleStation, int, availableVehicles, setAvailableVehicles)
164bool RentalVehicleStation::isSame(const RentalVehicleStation &lhs, const RentalVehicleStation &rhs)
226 station.setNetwork(RentalVehicleNetwork::fromJson(obj.value(QLatin1String("network")).toObject()));
228 station.d->availabilities = typeVectorFromJson(obj.value(QLatin1String("availabilitiesByType")));
QString modeIconName
Name of an icon to represent this transport mode.
Definition individualtransport.h:35
A vehicle sharing system/network.
Definition rentalvehicle.h:149
static RentalVehicleNetwork fromJson(const QJsonObject &obj)
Deserialize an object from JSON.
Definition rentalvehicle.cpp:66
static QJsonObject toJson(const RentalVehicleNetwork &network)
Serializes one object to JSON.
Definition rentalvehicle.cpp:61
static bool isSame(const RentalVehicleNetwork &lhs, const RentalVehicleNetwork &rhs)
Checks if two instances refer to the same network.
Definition rentalvehicle.cpp:56
Additional information for a vehicle renting station, attached to Location objects.
Definition rentalvehicle.h:90
static RentalVehicleStation fromJson(const QJsonObject &obj)
Deserialize an object from JSON.
Definition rentalvehicle.cpp:223
KPublicTransport::RentalVehicleNetwork network
Sharing network operator.
Definition rentalvehicle.h:100
KPublicTransport::RentalVehicle::VehicleTypes supportedVehicleTypes
Supported vehicle types at this station.
Definition rentalvehicle.h:106
int availableVehicles
Number of available (rentable) vehicles at this station.
Definition rentalvehicle.h:93
static bool isSame(const RentalVehicleStation &lhs, const RentalVehicleStation &rhs)
Checks if two instances refer to the same station.
Definition rentalvehicle.cpp:164
void setAvailableVehicles(RentalVehicle::VehicleType type, int count)
Sets the number of available vehicles for a given vehicle type.
Definition rentalvehicle.cpp:140
void setCapacity(RentalVehicle::VehicleType type, int capacity)
Set the capacity for a specific vehicle type.
Definition rentalvehicle.cpp:116
static QJsonObject toJson(const RentalVehicleStation &station)
Serializes one object to JSON.
Definition rentalvehicle.cpp:185
KPublicTransport::RentalVehicle::VehicleTypes availableVehicleTypes
Available vehicle types at this station.
Definition rentalvehicle.h:108
An individual rental vehicle used on a JourneySection, ie.
Definition rentalvehicle.h:28
@ ElectricKickScooter
"e scooter", electrically assisted kick scooters, not to be confused with motorcycle-like scooters
Definition rentalvehicle.h:36
static RentalVehicle fromJson(const QJsonObject &obj)
Deserialize an object from JSON.
Definition rentalvehicle.cpp:274
static QJsonObject toJson(const RentalVehicle &vehicle)
Serializes one object to JSON.
Definition rentalvehicle.cpp:262
KPublicTransport::RentalVehicleNetwork network
Sharing network operator.
Definition rentalvehicle.h:48
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
QMetaEnum fromType()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:10:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.