TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
#include <QJsonValue.h>
Classes | |
union | ValueType |
Public Types | |
enum | Type { Null = 0x0, Bool = 0x1, Double = 0x2, String = 0x3, Array = 0x4, Object = 0x5, Undefined = 0x80 } |
Static Public Member Functions | |
static QJsonValue | fromVariant (const QVariant &variant) |
Private Member Functions | |
QJsonValue (const void *) | |
void | swap (QJsonValue &other) |
Private Attributes | |
Type | type_ |
ValueType | value_ |
Definition at line 36 of file QJsonValue.h.
enum QJsonValue::Type |
Enumerator | |
---|---|
Null | |
Bool | |
Double | |
String | |
Array | |
Object | |
Undefined |
Definition at line 38 of file QJsonValue.h.
Definition at line 32 of file QJsonValue.cpp.
Referenced by fromVariant(), and operator=().
QJsonValue::QJsonValue | ( | bool | b | ) |
Definition at line 38 of file QJsonValue.cpp.
References QJsonValue::ValueType::b, and value_.
QJsonValue::QJsonValue | ( | double | n | ) |
Definition at line 45 of file QJsonValue.cpp.
References QJsonValue::ValueType::n, and value_.
QJsonValue::QJsonValue | ( | int | n | ) |
Definition at line 89 of file QJsonValue.cpp.
References QJsonValue::ValueType::n, and value_.
QJsonValue::QJsonValue | ( | qint64 | n | ) |
Definition at line 96 of file QJsonValue.cpp.
References QJsonValue::ValueType::n, and value_.
QJsonValue::QJsonValue | ( | const QString & | s | ) |
Definition at line 52 of file QJsonValue.cpp.
References QJsonValue::ValueType::s, and value_.
QJsonValue::QJsonValue | ( | QLatin1String | s | ) |
Definition at line 59 of file QJsonValue.cpp.
References QJsonValue::ValueType::s, and value_.
QJsonValue::QJsonValue | ( | const char * | s | ) |
Definition at line 67 of file QJsonValue.cpp.
References QJsonValue::ValueType::s, and value_.
QJsonValue::QJsonValue | ( | const QJsonArray & | a | ) |
Definition at line 75 of file QJsonValue.cpp.
References QJsonArray::clone(), QJsonValue::ValueType::r, and value_.
QJsonValue::QJsonValue | ( | const QJsonObject & | o | ) |
Definition at line 82 of file QJsonValue.cpp.
References QJsonObject::clone(), QJsonValue::ValueType::r, and value_.
QJsonValue::QJsonValue | ( | const QJsonValue & | other | ) |
Definition at line 103 of file QJsonValue.cpp.
References Array, QJsonValue::ValueType::b, Bool, QJsonRoot::clone(), Double, QJsonValue::ValueType::n, Null, Object, QJsonValue::ValueType::r, QJsonValue::ValueType::s, String, type_, Undefined, and value_.
QJsonValue::~QJsonValue | ( | ) |
Definition at line 129 of file QJsonValue.cpp.
References Array, Bool, Double, Null, Object, QJsonValue::ValueType::r, QJsonValue::ValueType::s, String, type_, Undefined, and value_.
|
private |
|
static |
Definition at line 350 of file QJsonValue.cpp.
References QJsonArray::fromStringList(), QJsonArray::fromVariantList(), QJsonObject::fromVariantMap(), Null, and QJsonValue().
Referenced by QJsonObject::fromVariantHash(), QJsonArray::fromVariantList(), and QJsonObject::fromVariantMap().
bool QJsonValue::isArray | ( | ) | const |
Definition at line 189 of file QJsonValue.cpp.
Referenced by QJsonValueRef::isArray(), and toArray().
bool QJsonValue::isBool | ( | ) | const |
Definition at line 196 of file QJsonValue.cpp.
Referenced by QJsonValueRef::isBool(), and toBool().
bool QJsonValue::isDouble | ( | ) | const |
Definition at line 203 of file QJsonValue.cpp.
Referenced by QJsonValueRef::isDouble(), toDouble(), and toInt().
bool QJsonValue::isNull | ( | ) | const |
Definition at line 210 of file QJsonValue.cpp.
Referenced by QJsonValueRef::isNull().
bool QJsonValue::isObject | ( | ) | const |
Definition at line 217 of file QJsonValue.cpp.
Referenced by QJsonValueRef::isObject(), and toObject().
bool QJsonValue::isString | ( | ) | const |
Definition at line 224 of file QJsonValue.cpp.
Referenced by QJsonValueRef::isString(), and toString().
bool QJsonValue::isUndefined | ( | ) | const |
Definition at line 231 of file QJsonValue.cpp.
References type_, and Undefined.
Referenced by QJsonValueRef::isUndefined().
bool QJsonValue::operator!= | ( | const QJsonValue & | other | ) | const |
Definition at line 157 of file QJsonValue.cpp.
QJsonValue & QJsonValue::operator= | ( | const QJsonValue & | other | ) |
Definition at line 149 of file QJsonValue.cpp.
References QJsonValue().
bool QJsonValue::operator== | ( | const QJsonValue & | other | ) | const |
Definition at line 164 of file QJsonValue.cpp.
References Array, QJsonValue::ValueType::b, Bool, Double, QJsonValue::ValueType::n, Null, Object, QJsonValue::ValueType::r, QJsonValue::ValueType::s, String, QJsonRoot::toArray(), QJsonRoot::toObject(), type_, Undefined, and value_.
|
private |
Definition at line 388 of file QJsonValue.cpp.
QJsonArray QJsonValue::toArray | ( | const QJsonArray & | defaultValue | ) | const |
Definition at line 245 of file QJsonValue.cpp.
References isArray(), QJsonValue::ValueType::r, QJsonRoot::toArray(), and value_.
Referenced by QJsonValueRef::toArray(), and QJsonDocument::toJson().
QJsonArray QJsonValue::toArray | ( | ) | const |
Definition at line 256 of file QJsonValue.cpp.
bool QJsonValue::toBool | ( | bool | defaultValue = false | ) | const |
Definition at line 263 of file QJsonValue.cpp.
References QJsonValue::ValueType::b, isBool(), and value_.
Referenced by QJsonValueRef::toBool(), and QJsonDocument::toJson().
double QJsonValue::toDouble | ( | double | defaultValue = 0 | ) | const |
Definition at line 274 of file QJsonValue.cpp.
References isDouble(), QJsonValue::ValueType::n, and value_.
Referenced by QJsonValueRef::toDouble(), and QJsonDocument::toJson().
Definition at line 285 of file QJsonValue.cpp.
References isDouble(), QJsonValue::ValueType::n, and value_.
Referenced by QJsonValueRef::toInt().
QJsonObject QJsonValue::toObject | ( | const QJsonObject & | defaultValue | ) | const |
Definition at line 296 of file QJsonValue.cpp.
References isObject(), QJsonValue::ValueType::r, QJsonRoot::toObject(), and value_.
Referenced by QJsonDocument::toJson(), and QJsonValueRef::toObject().
QJsonObject QJsonValue::toObject | ( | ) | const |
Definition at line 307 of file QJsonValue.cpp.
QString QJsonValue::toString | ( | const QString & | defaultValue = QString() | ) | const |
Definition at line 314 of file QJsonValue.cpp.
References isString(), QJsonValue::ValueType::s, and value_.
Referenced by QJsonDocument::toJson(), and QJsonValueRef::toString().
QVariant QJsonValue::toVariant | ( | ) | const |
Definition at line 326 of file QJsonValue.cpp.
References Array, QJsonValue::ValueType::b, Bool, Double, QJsonValue::ValueType::n, Null, Object, QJsonValue::ValueType::r, QJsonValue::ValueType::s, String, QJsonRoot::toArray(), QJsonRoot::toObject(), QJsonArray::toVariantList(), QJsonObject::toVariantMap(), type_, Undefined, and value_.
Referenced by QJsonArray::toVariantList().
QJsonValue::Type QJsonValue::type | ( | ) | const |
Definition at line 238 of file QJsonValue.cpp.
References type_.
Referenced by QJsonDocument::toJson(), and QJsonValueRef::type().
|
private |
Definition at line 106 of file QJsonValue.h.
Referenced by isArray(), isBool(), isDouble(), isNull(), isObject(), isString(), isUndefined(), operator==(), QJsonValue(), swap(), toVariant(), type(), and ~QJsonValue().
|
private |
Definition at line 115 of file QJsonValue.h.
Referenced by operator==(), QJsonValue(), swap(), toArray(), toBool(), toDouble(), toInt(), toObject(), toString(), toVariant(), and ~QJsonValue().