KItinerary
jsonlddocument.cpp
130static const auto fallbackDateTimePatternCount = sizeof(fallbackDateTimePattern) / sizeof(const char *);
213 // HACK QDateTimeParser handles 't' in the format but then forces it back to LocalTime in the end...
281 qCDebug(Log) << "property" << it.key() << "could not be set on object of type" << mo->className();
328 // if @type is (wrongly) not specified, try to recover from our own knowledge of a property type
548void JsonLdDocument::writePropertyImpl(const QMetaObject* mo, void* obj, const char* name, const QVariant& value)
595 if ((QMetaType(prop.userType()).flags() & QMetaType::IsEnumeration) && rhs.userType() == QMetaType::QString) { // external enums
622 if ((QMetaType(pv.userType()).flags() & QMetaType::IsGadget) && QMetaType(pv.userType()).metaObject()) {
636 const auto it = std::lower_bound(registry.begin(), registry.end(), typeName, [](const auto &lhs, const auto *rhs) {
static void writeProperty(QVariant &obj, const char *name, const QVariant &value)
Set property name on object obj to value value.
Definition jsonlddocument.cpp:538
static QJsonValue toJsonValue(const QVariant &data)
JSON-LD serrialization of an invidividual data value.
Definition jsonlddocument.cpp:405
static QVariant apply(const QVariant &lhs, const QVariant &rhs)
Apply all properties of rhs on to lhs.
Definition jsonlddocument.cpp:564
static QVariant readProperty(const QVariant &obj, const char *name)
Read property name on object obj.
Definition jsonlddocument.cpp:522
static QJsonArray toJson(const QList< QVariant > &data)
Serialize instantiated data types to JSON-LD.
Definition jsonlddocument.cpp:497
static void removeProperty(QVariant &obj, const char *name)
Removes property name on object obj.
Definition jsonlddocument.cpp:559
static QList< QVariant > fromJson(const QJsonArray &array)
Convert JSON-LD array into instantiated data types.
Definition jsonlddocument.cpp:339
static QVariant fromJsonSingular(const QJsonObject &obj)
Convert a single JSON-LD object into an instantiated data type.
Definition jsonlddocument.cpp:361
bool remove(const QString &column, const QVariant &value)
char * toString(const EngineQuery &query)
QJsonArray filterObject(const QJsonObject &obj)
Filter the top-level object obj for loading with JsonLdDocument.
Definition jsonldimportfilter.cpp:395
QString typeName(const QJsonObject &obj)
Normalized type name from object.
Definition json/jsonld.cpp:15
bool valueIsNull(const QVariant &v)
Checks whether v holds a null-like value.
Definition jsonlddocument.cpp:370
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
KGuiItem add()
KGuiItem ok()
const char * constData() const const
QDate fromString(QStringView string, QStringView format, QCalendar cal)
bool isNull() const const
QString toString(QStringView format, QCalendar cal) const const
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
bool isNull() const const
bool isValid() const const
void setTimeZone(const QTimeZone &toZone)
Qt::TimeSpec timeSpec() const const
QTimeZone timeZone() const const
QString toString(QStringView format, QCalendar cal) const const
QDateTime toTimeZone(const QTimeZone &timeZone) const const
const_iterator constEnd() const const
const_iterator constFind(const Key &key) const const
iterator insert(const Key &key, const T &value)
void push_back(const QJsonValue &value)
qsizetype size() const const
iterator begin()
iterator end()
iterator insert(QLatin1StringView key, const QJsonValue &value)
qsizetype size() const const
QJsonValue value(QLatin1StringView key) const const
Object
bool isArray() const const
bool isDouble() const const
bool isObject() const const
bool isString() const const
QJsonArray toArray() const const
double toDouble(double defaultValue) const const
QJsonObject toObject() const const
QString toString() const const
void append(QList< T > &&value)
bool isEmpty() const const
void push_back(parameter_type value)
void reserve(qsizetype size)
int keyToValue(const char *key, bool *ok) const const
const char * valueToKey(int value) const const
const char * className() const const
QMetaEnum enumerator(int index) const const
int indexOfEnumerator(const char *name) const const
int indexOfProperty(const char *name) const const
QMetaProperty property(int index) const const
int propertyCount() const const
QMetaEnum enumerator() const const
bool isEnumType() const const
bool isStored() const const
QMetaType metaType() const const
const char * name() const const
QVariant readOnGadget(const void *gadget) const const
const char * typeName() const const
int userType() const const
bool writeOnGadget(void *gadget, QVariant &&value) const const
void * create(int type, const void *copy)
QString
IsEnumeration
TypeFlags flags() const const
const QMetaObject * metaObject() const const
QString fromLatin1(QByteArrayView str)
QString fromUtf8(QByteArrayView str)
bool isNull() const const
QString number(double n, char format, int precision)
double toDouble(bool *ok) const const
int toInt(bool *ok, int base) const const
QByteArray toUtf8() const const
ISODate
LocalTime
QTime fromString(QStringView string, QStringView format)
QString toString(QStringView format) const const
QByteArray id() const const
QTimeZone utc()
bool isValid() const const
QString toString(FormattingOptions options) const const
bool canConvert() const const
const void * constData() const const
void * data()
QVariant fromValue(T &&value)
bool isNull() const const
bool toBool() const const
QDate toDate() const const
QDateTime toDateTime() const const
double toDouble(bool *ok) const const
float toFloat(bool *ok) const const
int toInt(bool *ok) const const
QList< QVariant > toList() const const
QString toString() const const
QTime toTime() const const
QUrl toUrl() const const
int userType() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.