KPublicTransport::Equipment

Search for usage in LXR

#include <equipment.h>

Public Types

enum  Type { Unknown , Elevator , Escalator }
 

Properties

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

Public Member Functions

void addNote (const QString &note)
 
QString iconName () const
 

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
readwrite

Disruption effect on this section, if any.

Definition at line 38 of file equipment.h.

◆ iconName

QString KPublicTransport::Equipment::iconName
read

An icon representing the equipment type.

Can be a qrc: URL or XDG icon name.

Definition at line 45 of file equipment.h.

◆ notes

QStringList KPublicTransport::Equipment::notes
readwrite

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
readwrite

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 34 of file equipment.cpp.

◆ fromJson()

Equipment Equipment::fromJson ( const QJsonObject & obj)
static

Deserialize an object from JSON.

Definition at line 63 of file equipment.cpp.

◆ iconName()

QString Equipment::iconName ( ) const
nodiscard

Definition at line 44 of file equipment.cpp.

◆ toJson()

QJsonObject Equipment::toJson ( const Equipment & equipment)
static

Serializes one object to JSON.

Definition at line 58 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 Fri Oct 11 2024 12:12:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.