24 Q_SLOT
void __propertyChanged__(
const QDBusMessage& msg)
26 QList<QVariant> arguments = msg.arguments();
27 if (3 != arguments.count())
29 QString interfaceName = msg.arguments().at(0).toString();
30 if (interfaceName !=
"org.freedesktop.DBus")
32 QVariantMap changedProps = qdbus_cast<QVariantMap>(arguments.at(1).value<QDBusArgument>());
33 Q_FOREACH(
const QString &prop, changedProps.keys()) {
34 const QMetaObject* self = metaObject();
35 for (
int i=self->propertyOffset(); i < self->propertyCount(); ++i) {
36 QMetaProperty p = self->property(i);
37#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
38 QGenericArgument value(QMetaType::typeName(p.type()),
const_cast<void*
>(changedProps[prop].constData()));
40 QGenericArgument value(p.metaType().name(),
const_cast<void*
>(changedProps[prop].constData()));
43 if (p.name() == prop) {
44 Q_EMIT p.notifySignal().invoke(
this, value);
50 static inline const char *staticInterfaceName()
51 {
return "org.freedesktop.DBus"; }
54 DBusInterface(
const QString &service,
const QString &path,
const QDBusConnection &connection, QObject *parent = 0);
59 inline QDBusPendingReply<> AddMatch(
const QString &in0)
61 QList<QVariant> argumentList;
62 argumentList << QVariant::fromValue(in0);
63 return asyncCallWithArgumentList(QStringLiteral(
"AddMatch"), argumentList);
66 inline QDBusPendingReply<QByteArray> GetAdtAuditSessionData(
const QString &in0)
68 QList<QVariant> argumentList;
69 argumentList << QVariant::fromValue(in0);
70 return asyncCallWithArgumentList(QStringLiteral(
"GetAdtAuditSessionData"), argumentList);
73 inline QDBusPendingReply<QByteArray> GetConnectionSELinuxSecurityContext(
const QString &in0)
75 QList<QVariant> argumentList;
76 argumentList << QVariant::fromValue(in0);
77 return asyncCallWithArgumentList(QStringLiteral(
"GetConnectionSELinuxSecurityContext"), argumentList);
80 inline QDBusPendingReply<uint> GetConnectionUnixProcessID(
const QString &in0)
82 QList<QVariant> argumentList;
83 argumentList << QVariant::fromValue(in0);
84 return asyncCallWithArgumentList(QStringLiteral(
"GetConnectionUnixProcessID"), argumentList);
87 inline QDBusPendingReply<uint> GetConnectionUnixUser(
const QString &in0)
89 QList<QVariant> argumentList;
90 argumentList << QVariant::fromValue(in0);
91 return asyncCallWithArgumentList(QStringLiteral(
"GetConnectionUnixUser"), argumentList);
94 inline QDBusPendingReply<QString> GetId()
96 QList<QVariant> argumentList;
97 return asyncCallWithArgumentList(QStringLiteral(
"GetId"), argumentList);
100 inline QDBusPendingReply<QString> GetNameOwner(
const QString &in0)
102 QList<QVariant> argumentList;
103 argumentList << QVariant::fromValue(in0);
104 return asyncCallWithArgumentList(QStringLiteral(
"GetNameOwner"), argumentList);
107 inline QDBusPendingReply<QString> Hello()
109 QList<QVariant> argumentList;
110 return asyncCallWithArgumentList(QStringLiteral(
"Hello"), argumentList);
113 inline QDBusPendingReply<QStringList> ListActivatableNames()
115 QList<QVariant> argumentList;
116 return asyncCallWithArgumentList(QStringLiteral(
"ListActivatableNames"), argumentList);
119 inline QDBusPendingReply<QStringList> ListNames()
121 QList<QVariant> argumentList;
122 return asyncCallWithArgumentList(QStringLiteral(
"ListNames"), argumentList);
125 inline QDBusPendingReply<QStringList> ListQueuedOwners(
const QString &in0)
127 QList<QVariant> argumentList;
128 argumentList << QVariant::fromValue(in0);
129 return asyncCallWithArgumentList(QStringLiteral(
"ListQueuedOwners"), argumentList);
132 inline QDBusPendingReply<bool> NameHasOwner(
const QString &in0)
134 QList<QVariant> argumentList;
135 argumentList << QVariant::fromValue(in0);
136 return asyncCallWithArgumentList(QStringLiteral(
"NameHasOwner"), argumentList);
139 inline QDBusPendingReply<uint> ReleaseName(
const QString &in0)
141 QList<QVariant> argumentList;
142 argumentList << QVariant::fromValue(in0);
143 return asyncCallWithArgumentList(QStringLiteral(
"ReleaseName"), argumentList);
146 inline QDBusPendingReply<> ReloadConfig()
148 QList<QVariant> argumentList;
149 return asyncCallWithArgumentList(QStringLiteral(
"ReloadConfig"), argumentList);
152 inline QDBusPendingReply<> RemoveMatch(
const QString &in0)
154 QList<QVariant> argumentList;
155 argumentList << QVariant::fromValue(in0);
156 return asyncCallWithArgumentList(QStringLiteral(
"RemoveMatch"), argumentList);
159 inline QDBusPendingReply<uint> RequestName(
const QString &in0, uint in1)
161 QList<QVariant> argumentList;
162 argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);
163 return asyncCallWithArgumentList(QStringLiteral(
"RequestName"), argumentList);
166 inline QDBusPendingReply<uint> StartServiceByName(
const QString &in0, uint in1)
168 QList<QVariant> argumentList;
169 argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);
170 return asyncCallWithArgumentList(QStringLiteral(
"StartServiceByName"), argumentList);
174 void NameAcquired(
const QString &in0);
175 void NameLost(
const QString &in0);
176 void NameOwnerChanged(
const QString &in0,
const QString &in1,
const QString &in2);