KPublicTransport::LoadInfo

Search for usage in LXR

KPublicTransport::LoadInfo Class Reference

#include <load.h>

Properties

KPublicTransport::Load::Category load
 
QString seatingClass
 

Static Public Member Functions

static LoadInfo fromJson (const QJsonObject &obj)
 
static std::vector< LoadInfofromJson (const QJsonArray &array)
 
static QJsonObject toJson (const LoadInfo &info)
 
static QJsonArray toJson (const std::vector< LoadInfo > &loadInfos)
 

Detailed Description

Vehicle load information.

This consists of a load category and additional specifiers for which part of the vehicle this applies to, such as the class or vehicle section.

Definition at line 37 of file load.h.

Property Documentation

KPublicTransport::Load::Category KPublicTransport::LoadInfo::load
readwrite

Load category.

Definition at line 41 of file load.h.

QString KPublicTransport::LoadInfo::seatingClass
readwrite

Seating class, empty if not applicable.

TODO should this be the same enum as in VehicleSection?

Definition at line 45 of file load.h.

Member Function Documentation

LoadInfo LoadInfo::fromJson ( const QJsonObject obj)
static

Deserialize an object from JSON.

Definition at line 36 of file load.cpp.

std::vector< LoadInfo > LoadInfo::fromJson ( const QJsonArray array)
static

Deserialize a list of load information from JSON.

Definition at line 41 of file load.cpp.

QJsonObject LoadInfo::toJson ( const LoadInfo info)
static

Serializes one load information object to JSON.

Definition at line 26 of file load.cpp.

QJsonArray LoadInfo::toJson ( const std::vector< LoadInfo > &  loadInfos)
static

Serializes a vector of load information objects to JSON.

Definition at line 31 of file load.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.