![]() |
Qt 6.x
The Qt SDK
|
#include "qqnxmediautil_p.h"#include <QDebug>#include <QDir>#include <QFile>#include <QJsonDocument>#include <QJsonObject>#include <QJsonValue>#include <QMutex>#include <QString>#include <QXmlStreamReader>#include <mm/renderer.h>#include <mm/renderer/types.h>
Include dependency graph for qqnxmediautil.cpp:Go to the source code of this file.
Classes | |
| struct | MmError |
Macros | |
| #define | MM_ERROR_ENTRY(error) { error, #error } |
Functions | |
| template<typename T , size_t N> | |
| constexpr size_t | countof (T(&)[N]) |
| QString | keyValueMapsLocation () |
| QJsonObject | loadMapObject (const QString &keyValueMapPath) |
| QString | mmErrorMessage (const QString &msg, mmr_context_t *context, int *errorCode) |
| bool | checkForDrmPermission () |
Variables | |
| static const MmError | mmErrors [] |
| static const unsigned int | numMmErrors = sizeof(mmErrors) / sizeof(MmError) |
Definition at line 26 of file qqnxmediautil.cpp.
| bool checkForDrmPermission | ( | ) |
Definition at line 102 of file qqnxmediautil.cpp.
References QDir::cdUp(), file, QDir::filePath(), QString::fromUtf8(), QDir::home(), QFile::open(), qWarning, and QIODeviceBase::ReadOnly.
Here is the call graph for this function:
|
constexpr |
Definition at line 59 of file qqnxmediautil.cpp.
| QString keyValueMapsLocation | ( | ) |
Definition at line 64 of file qqnxmediautil.cpp.
References QString::fromUtf8(), QByteArray::isNull(), and qgetenv().
Referenced by loadMapObject().
Here is the call graph for this function:
Here is the caller graph for this function:| QJsonObject loadMapObject | ( | const QString & | keyValueMapPath | ) |
Definition at line 73 of file qqnxmediautil.cpp.
References QJsonDocument::fromJson(), QJsonDocument::isObject(), keyValueMapsLocation(), QJsonDocument::object(), QFile::open(), QIODevice::readAll(), and QIODeviceBase::ReadOnly.
Here is the call graph for this function:| QString mmErrorMessage | ( | const QString & | msg, |
| mmr_context_t * | context, | ||
| int * | errorCode | ||
| ) |
Definition at line 87 of file qqnxmediautil.cpp.
References QString::arg(), context, QString::fromLatin1(), QString::fromUtf8(), mmErrors, MmError::name, and numMmErrors.
Here is the call graph for this function:
|
static |
Definition at line 27 of file qqnxmediautil.cpp.
Referenced by mmErrorMessage().
Definition at line 56 of file qqnxmediautil.cpp.
Referenced by mmErrorMessage().