Search for usage in LXR

KPublicTransport::IndividualTransport Class Reference

#include <individualtransport.h>

Public Types

enum  Mode { Walk, Bike, Car }
enum  Qualifier {
  None, Park, Rent, Dropoff,


Mode mode
Qualifier qualifier

Public Member Functions

 IndividualTransport (Mode mode, Qualifier qualifier=None)
bool operator!= (const IndividualTransport &other) const
bool operator== (const IndividualTransport &other) const

Static Public Member Functions

static IndividualTransport fromJson (const QJsonObject &obj)
static std::vector< IndividualTransportfromJson (const QJsonArray &array)
static std::vector< IndividualTransportfromVariant (const QVariantList &v)
static QJsonObject toJson (const IndividualTransport &it)
static QJsonArray toJson (const std::vector< IndividualTransport > &its)

Detailed Description

Individual transport mode details for a journey section, and for specifying journey requests.

Definition at line 18 of file individualtransport.h.

Member Enumeration Documentation

Mode of (individual) transportation.

Definition at line 23 of file individualtransport.h.

Qualifier on how the mode of transport is used.


not applicable, or bike is taken on public transport legs.


for access legs, vehicle is parked before taking public transport.


use a rental vehicle


for access legs: vehicle is not taken onto public transport but also doesn't need parking


for egress legs: vehicle is available at the last public transport leg

Definition at line 33 of file individualtransport.h.

Member Function Documentation

IndividualTransport IndividualTransport::fromJson ( const QJsonObject obj)

Deserialize an object from JSON.

Definition at line 56 of file individualtransport.cpp.

std::vector< IndividualTransport > IndividualTransport::fromJson ( const QJsonArray array)

Deserialize a list of journey from JSON.

Definition at line 61 of file individualtransport.cpp.

std::vector< IndividualTransport > IndividualTransport::fromVariant ( const QVariantList &  v)

for QML bindings only

Definition at line 66 of file individualtransport.cpp.

QJsonObject IndividualTransport::toJson ( const IndividualTransport it)

Serializes one object to JSON.

Definition at line 46 of file individualtransport.cpp.

QJsonArray IndividualTransport::toJson ( const std::vector< IndividualTransport > &  its)

Serializes a vector of objects to JSON.

Definition at line 51 of file individualtransport.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 Mon Dec 6 2021 22:56:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.