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 std::vector< IndividualTransportfromJson (const QJsonArray &array)
static IndividualTransport fromJson (const QJsonObject &obj)
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

Mode of (individual) transportation.

Definition at line 23 of file individualtransport.h.

◆ Qualifier

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.

Property Documentation

◆ mode

Mode KPublicTransport::IndividualTransport::mode

Definition at line 29 of file individualtransport.h.

◆ qualifier

Qualifier KPublicTransport::IndividualTransport::qualifier

Definition at line 41 of file individualtransport.h.

Constructor & Destructor Documentation

◆ IndividualTransport()

IndividualTransport::IndividualTransport ( IndividualTransport::Mode mode,
IndividualTransport::Qualifier qualifier = None )

Definition at line 29 of file individualtransport.cpp.

Member Function Documentation

◆ fromJson() [1/2]

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

Deserialize a list of journey from JSON.

Definition at line 61 of file individualtransport.cpp.

◆ fromJson() [2/2]

IndividualTransport IndividualTransport::fromJson ( const QJsonObject & obj)

Deserialize an object from JSON.

Definition at line 56 of file individualtransport.cpp.

◆ fromVariant()

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

for QML bindings only

Definition at line 66 of file individualtransport.cpp.

◆ operator!=()

bool IndividualTransport::operator!= ( const IndividualTransport & other) const

Definition at line 41 of file individualtransport.cpp.

◆ operator==()

bool IndividualTransport::operator== ( const IndividualTransport & other) const

Definition at line 36 of file individualtransport.cpp.

◆ toJson() [1/2]

QJsonObject IndividualTransport::toJson ( const IndividualTransport & it)

Serializes one object to JSON.

Definition at line 46 of file individualtransport.cpp.

◆ toJson() [2/2]

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-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.