Search for usage in LXR

#include <equipment.h>

Public Types

enum  Type { Unknown, Elevator, Escalator }


KPublicTransport::Disruption::Effect disruptionEffect
QStringList notes
Type type

Public Member Functions

void addNote (const QString &note)

Static Public Member Functions

static Equipment fromJson (const QJsonObject &obj)
static QJsonObject toJson (const Equipment &equipment)

Detailed Description

Status information about equipment such as elevators or escalators.

Definition at line 24 of file equipment.h.

Member Enumeration Documentation

Type of equipment.

Definition at line 29 of file equipment.h.

Property Documentation

KPublicTransport::Disruption::Effect KPublicTransport::Equipment::disruptionEffect

Disruption effect on this section, if any.

Definition at line 38 of file equipment.h.

QStringList KPublicTransport::Equipment::notes

General human-readable notes on this service, e.g.

details about a disruption.

Definition at line 40 of file equipment.h.

Member Function Documentation

void Equipment::addNote ( const QString note)

Adds a note.

This will check for duplicates and normalize the notes.

Definition at line 32 of file equipment.cpp.

Equipment Equipment::fromJson ( const QJsonObject obj)

Deserialize an object from JSON.

Definition at line 47 of file equipment.cpp.

QJsonObject Equipment::toJson ( const Equipment equipment)

Serializes one object to JSON.

Definition at line 42 of file equipment.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 Sun Oct 24 2021 23:05:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.