Search for usage in LXR

KPublicTransport::RentalVehicleNetwork Class Reference

#include <rentalvehicle.h>


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

Definition at line 124 of file rentalvehicle.h.

Property Documentation

bool RentalVehicleNetwork::isValid

Not an empty/default constructed object.

Definition at line 133 of file rentalvehicle.h.

QString KPublicTransport::RentalVehicleNetwork::name

Human-visible name of this network.

Definition at line 128 of file rentalvehicle.h.

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

Supported vehicle types by this network.

Definition at line 130 of file rentalvehicle.h.

Member Function Documentation

RentalVehicleNetwork RentalVehicleNetwork::fromJson ( const QJsonObject obj)

Deserialize an object from JSON.

Definition at line 62 of file rentalvehicle.cpp.

bool RentalVehicleNetwork::isSame ( const RentalVehicleNetwork lhs,
const RentalVehicleNetwork rhs 

Checks if two instances refer to the same network.

Definition at line 52 of file rentalvehicle.cpp.

QJsonObject RentalVehicleNetwork::toJson ( const RentalVehicleNetwork network)

Serializes one object to JSON.

Definition at line 57 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-2021 The KDE developers.
Generated on Sat Oct 16 2021 23:07:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.