KPublicTransport
rentalvehicle.cpp
50KPUBLICTRANSPORT_MAKE_PROPERTY(RentalVehicleNetwork, RentalVehicle::VehicleTypes, vehicleTypes, setVehicleTypes)
58bool RentalVehicleNetwork::isSame(const RentalVehicleNetwork &lhs, const RentalVehicleNetwork &rhs)
74KPUBLICTRANSPORT_MAKE_PROPERTY(RentalVehicleStation, int, availableVehicles, setAvailableVehicles)
166bool RentalVehicleStation::isSame(const RentalVehicleStation &lhs, const RentalVehicleStation &rhs)
228 station.setNetwork(RentalVehicleNetwork::fromJson(obj.value(QLatin1String("network")).toObject()));
230 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:153
static RentalVehicleNetwork fromJson(const QJsonObject &obj)
Deserialize an object from JSON.
Definition rentalvehicle.cpp:68
static QJsonObject toJson(const RentalVehicleNetwork &network)
Serializes one object to JSON.
Definition rentalvehicle.cpp:63
static bool isSame(const RentalVehicleNetwork &lhs, const RentalVehicleNetwork &rhs)
Checks if two instances refer to the same network.
Definition rentalvehicle.cpp:58
Additional information for a vehicle renting station, attached to Location objects.
Definition rentalvehicle.h:94
static RentalVehicleStation fromJson(const QJsonObject &obj)
Deserialize an object from JSON.
Definition rentalvehicle.cpp:225
KPublicTransport::RentalVehicleNetwork network
Sharing network operator.
Definition rentalvehicle.h:104
KPublicTransport::RentalVehicle::VehicleTypes supportedVehicleTypes
Supported vehicle types at this station.
Definition rentalvehicle.h:110
int availableVehicles
Number of available (rentable) vehicles at this station.
Definition rentalvehicle.h:97
static bool isSame(const RentalVehicleStation &lhs, const RentalVehicleStation &rhs)
Checks if two instances refer to the same station.
Definition rentalvehicle.cpp:166
void setAvailableVehicles(RentalVehicle::VehicleType type, int count)
Sets the number of available vehicles for a given vehicle type.
Definition rentalvehicle.cpp:142
void setCapacity(RentalVehicle::VehicleType type, int capacity)
Set the capacity for a specific vehicle type.
Definition rentalvehicle.cpp:118
static QJsonObject toJson(const RentalVehicleStation &station)
Serializes one object to JSON.
Definition rentalvehicle.cpp:187
KPublicTransport::RentalVehicle::VehicleTypes availableVehicleTypes
Available vehicle types at this station.
Definition rentalvehicle.h:112
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:295
static QJsonObject toJson(const RentalVehicle &vehicle)
Serializes one object to JSON.
Definition rentalvehicle.cpp:283
KPublicTransport::RentalVehicleNetwork network
Sharing network operator.
Definition rentalvehicle.h:48
QString i18nc(const char *context, const char *text, const TYPE &arg...)
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-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
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.