KPublicTransport::Attribution
#include <attribution.h>
Properties | |
bool | hasLicense |
QString | license |
QUrl | licenseUrl |
QString | name |
QUrl | url |
Public Member Functions | |
bool | hasLicense () const |
bool | isEmpty () const |
Static Public Member Functions | |
static std::vector< Attribution > | fromJson (const QJsonArray &a) |
static Attribution | fromJson (const QJsonObject &obj) |
static QJsonObject | toJson (const Attribution &attr) |
static QJsonArray | toJson (const std::vector< Attribution > &attrs) |
Detailed Description
Copyright and license information about the provided data.
Should be displayed by the application in order to comply with licenses and/or terms and conditions of the data providers.
Definition at line 28 of file attribution.h.
Property Documentation
◆ hasLicense
|
read |
true
if there is license information for this attribution object.
Definition at line 41 of file attribution.h.
◆ license
|
readwrite |
Name of the license for the provided data.
Definition at line 36 of file attribution.h.
◆ licenseUrl
|
readwrite |
Link to the license or terms and conditions text.
Definition at line 38 of file attribution.h.
◆ name
|
readwrite |
Name of the entity providing the data.
Definition at line 32 of file attribution.h.
◆ url
|
readwrite |
Link to the entity providing the data.
Definition at line 34 of file attribution.h.
Member Function Documentation
◆ fromJson() [1/2]
|
static |
Dezerializes an array of Attribution objects from JSON.
Definition at line 43 of file attribution.cpp.
◆ fromJson() [2/2]
|
static |
Deserialize an Attribution object from JSON.
Definition at line 48 of file attribution.cpp.
◆ hasLicense()
bool Attribution::hasLicense | ( | ) | const |
Definition at line 38 of file attribution.cpp.
◆ isEmpty()
bool Attribution::isEmpty | ( | ) | const |
Returns true
if this is an empty or default-constructed Attribution object.
Definition at line 33 of file attribution.cpp.
◆ toJson() [1/2]
|
static |
Serializes one Attribution object to JSON.
Definition at line 68 of file attribution.cpp.
◆ toJson() [2/2]
|
static |
Serializes an array of Attribution objects to JSON.
Definition at line 63 of file attribution.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.