KPublicTransport::Equipment
#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 ¬e) |
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
|
readwrite |
Disruption effect on this section, if any.
Definition at line 38 of file equipment.h.
◆ 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
|
readwrite |
General human-readable notes on this service, e.g.
details about a disruption.
Definition at line 40 of file equipment.h.
◆ 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()
|
static |
Deserialize an object from JSON.
Definition at line 63 of file equipment.cpp.
◆ iconName()
|
nodiscard |
Definition at line 44 of file equipment.cpp.
◆ toJson()
|
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:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.