Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdbuslistener.cpp File Reference

(3eca06c7fa4e9850f97e42439f9346ad093176d5)

#include "qdbuslistener_p.h"
#include "qdbussettings_p.h"
#include <private/qguiapplication_p.h>
#include <qpa/qplatformintegration.h>
#include <qpa/qplatformservices.h>
#include <private/qdbustrayicon_p.h>
#include <qjsonarray.h>
#include <qjsondocument.h>
#include <qjsonobject.h>
Include dependency graph for qdbuslistener.cpp:

Go to the source code of this file.

Namespaces

namespace  JsonKeys

Macros

#define LOG   service << path << interface << signal;
#define CHECK(cond, warning)
#define PARSE(var, enumeration, string)

Macro Definition Documentation

◆ CHECK

#define CHECK ( cond,
warning )
Value:
if (!cond) {\
qCWarning(lcQpaThemeDBus) << fileName << warning << "Falling back to default.";\
return;\
}
QDebug warning(const MetaType &classDef)

◆ LOG

#define LOG   service << path << interface << signal;

◆ PARSE

#define PARSE ( var,
enumeration,
string )
Value:
enumeration var;\
{\
bool success;\
const int val = QMetaEnum::fromType<enumeration>().keyToValue(string.toLatin1(), &success);\
CHECK(success, "Parse Error: Invalid value" << string << "for" << #var);\
var = static_cast<enumeration>(val);\
}
static QMetaEnum fromType()
int keyToValue(const char *key, bool *ok=nullptr) const
Returns the integer value of the given enumeration key, or -1 if key is not defined.
GLuint GLfloat * val