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

Type of equipment.

Definition at line 29 of file equipment.h.

Property Documentation

◆ disruptionEffect

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

Disruption effect on this section, if any.

Definition at line 38 of file equipment.h.

◆ notes

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.

◆ type

Type KPublicTransport::Equipment::type

Definition at line 35 of file equipment.h.

Member Function Documentation

◆ addNote()

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.

◆ fromJson()

Equipment Equipment::fromJson ( const QJsonObject & obj)

Deserialize an object from JSON.

Definition at line 47 of file equipment.cpp.

◆ toJson()

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