#include <mythbackend/recordingextender.h>
|
static QJsonObject | walkJsonPath (QJsonObject &object, const QStringList &path) |
| Iterate through a json object and return the specified object. More...
|
|
static bool | getJsonInt (const QJsonObject &object, QStringList &path, int &value) |
| Retrieve the specified integer from a json object. More...
|
|
static bool | getJsonInt (const QJsonObject &object, const QString &key, int &value) |
| Retrieve the specified integer from a json object. More...
|
|
static bool | getJsonString (const QJsonObject &object, QStringList &path, QString &value) |
| Retrieve the specified string from a json object. More...
|
|
static bool | getJsonString (const QJsonObject &object, const QString &key, QString &value) |
| Retrieve the specified string from a json object. More...
|
|
static bool | getJsonObject (const QJsonObject &object, QStringList &path, QJsonObject &value) |
| Retrieve a specific object from another json object. More...
|
|
static bool | getJsonObject (const QJsonObject &object, const QString &key, QJsonObject &value) |
| Retrieve a specific object from another json object. More...
|
|
static bool | getJsonArray (const QJsonObject &object, const QString &key, QJsonArray &value) |
| Retrieve the specified array from a json object. More...
|
|
Definition at line 161 of file recordingextender.h.
◆ RecExtDataPage()
RecExtDataPage::RecExtDataPage |
( |
QObject * |
parent, |
|
|
QJsonDocument |
doc |
|
) |
| |
|
inline |
◆ getSource()
◆ getNow()
virtual QDateTime RecExtDataPage::getNow |
( |
| ) |
|
|
inlinevirtual |
◆ timeIsClose()
bool RecExtDataPage::timeIsClose |
( |
const QDateTime & |
eventStart | ) |
|
|
virtual |
◆ findGameInfo()
◆ findGameScore()
◆ walkJsonPath()
QJsonObject RecExtDataPage::walkJsonPath |
( |
QJsonObject & |
object, |
|
|
const QStringList & |
path |
|
) |
| |
|
static |
Iterate through a json object and return the specified object.
- Parameters
-
object | The json object to process. |
path | A list of successive items to look up in the specified object. The last object looked up will be returned to the caller. |
- Returns
- The object at the end of the path lookup, or an empty object.
Definition at line 159 of file recordingextender.cpp.
Referenced by getJsonInt(), getJsonObject(), and getJsonString().
◆ getDoc()
QJsonDocument RecExtDataPage::getDoc |
( |
| ) |
|
|
inline |
Get the JSON document associated with this object.
- Returns
- a JSonDocument object.
Definition at line 175 of file recordingextender.h.
◆ getJsonInt() [1/2]
bool RecExtDataPage::getJsonInt |
( |
const QJsonObject & |
_object, |
|
|
QStringList & |
path, |
|
|
int & |
value |
|
) |
| |
|
static |
◆ getJsonInt() [2/2]
bool RecExtDataPage::getJsonInt |
( |
const QJsonObject & |
object, |
|
|
const QString & |
key, |
|
|
int & |
value |
|
) |
| |
|
static |
Retrieve the specified integer from a json object.
- Parameters
-
[in] | object | The json object to process. |
[in] | key | A description of how to find a specific integer object. This can be a single key name, or a series of key names separated with slash characters. |
[out] | value | Where to store the retrieved integer. |
- Returns
- true if the parsing was successful and a value returned.
Definition at line 236 of file recordingextender.cpp.
◆ getJsonString() [1/2]
bool RecExtDataPage::getJsonString |
( |
const QJsonObject & |
_object, |
|
|
QStringList & |
path, |
|
|
QString & |
value |
|
) |
| |
|
static |
◆ getJsonString() [2/2]
bool RecExtDataPage::getJsonString |
( |
const QJsonObject & |
object, |
|
|
const QString & |
key, |
|
|
QString & |
value |
|
) |
| |
|
static |
Retrieve the specified string from a json object.
- Parameters
-
[in] | object | The json object to process. |
[in] | key | A description of how to find a specific string object. This can be a single key name, or a series of key names separated with slash characters. |
[out] | value | Where to store the retrieved string. |
- Returns
- true if the parsing was successful and a value returned.
Definition at line 274 of file recordingextender.cpp.
◆ getJsonObject() [1/2]
bool RecExtDataPage::getJsonObject |
( |
const QJsonObject & |
_object, |
|
|
QStringList & |
path, |
|
|
QJsonObject & |
value |
|
) |
| |
|
static |
Retrieve a specific object from another json object.
- Parameters
-
[in] | object | The json object to process. |
[in] | key | The name of the object to return. |
[out] | value | Where to store the retrieved object. |
- Returns
- true if the parsing was successful and a value returned.
Definition at line 286 of file recordingextender.cpp.
Referenced by getJsonObject().
◆ getJsonObject() [2/2]
bool RecExtDataPage::getJsonObject |
( |
const QJsonObject & |
object, |
|
|
const QString & |
key, |
|
|
QJsonObject & |
value |
|
) |
| |
|
static |
Retrieve a specific object from another json object.
- Parameters
-
[in] | object | The json object to process. |
[in] | key | A description of how to find a specific object. This can be a single key name, or a series of key names separated with slash characters. |
[out] | value | Where to store the retrieved object. |
- Returns
- true if the parsing was successful and a value returned.
Definition at line 312 of file recordingextender.cpp.
◆ getJsonArray()
bool RecExtDataPage::getJsonArray |
( |
const QJsonObject & |
object, |
|
|
const QString & |
key, |
|
|
QJsonArray & |
value |
|
) |
| |
|
static |
Retrieve the specified array from a json object.
- Parameters
-
[in] | object | The json object to process. |
[in] | key | The name of the array to return. |
[out] | value | Where to store the retrieved object. |
- Returns
- true if the parsing was successful and a value returned.
Definition at line 324 of file recordingextender.cpp.
Referenced by RecExtMlbDataPage::findGameInfo().
◆ m_doc
QJsonDocument RecExtDataPage::m_doc |
|
protected |
The documentation for this class was generated from the following files: