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
qdbusinternalfilters.cpp File Reference

(a19b57a634eddb8e2d749ff8ad06f87f3feef0ab)

#include "qdbusconnection_p.h"
#include "qdbus_symbols_p.h"
#include <QtCore/qcoreapplication.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qthread.h>
#include "qdbusabstractadaptor.h"
#include "qdbusabstractadaptor_p.h"
#include "qdbusconnection.h"
#include "qdbusextratypes.h"
#include "qdbusmessage.h"
#include "qdbusmetatype.h"
#include "qdbusmetatype_p.h"
#include "qdbusmessage_p.h"
#include "qdbusutil_p.h"
#include "qdbusvirtualobject.h"
#include <algorithm>
Include dependency graph for qdbusinternalfilters.cpp:

Go to the source code of this file.

Enumerations

enum  PropertyWriteResult {
  PropertyWriteSuccess = 0 , PropertyNotFound , PropertyTypeMismatch , PropertyReadOnly ,
  PropertyWriteFailed , PropertyWriteSuccess = 0 , PropertyNotFound , PropertyTypeMismatch ,
  PropertyReadOnly , PropertyWriteFailed
}
enum  PropertyWriteResult {
  PropertyWriteSuccess = 0 , PropertyNotFound , PropertyTypeMismatch , PropertyReadOnly ,
  PropertyWriteFailed , PropertyWriteSuccess = 0 , PropertyNotFound , PropertyTypeMismatch ,
  PropertyReadOnly , PropertyWriteFailed
}

Functions

Q_DBUS_EXPORT QString qDBusGenerateMetaObjectXml (QString interface, const QMetaObject *mo, const QMetaObject *base, int flags)
static QString generateSubObjectXml (const QObject *object)
QString qDBusIntrospectObject (const QDBusConnectionPrivate::ObjectTreeNode &node, const QString &path)
static QDBusMessage interfaceNotFoundError (const QDBusMessage &msg, const QString &interface_name)
static QDBusMessage propertyNotFoundError (const QDBusMessage &msg, const QString &interface_name, const QByteArray &property_name)
QDBusMessage qDBusPropertyGet (const QDBusConnectionPrivate::ObjectTreeNode &node, const QDBusMessage &msg)
static QDBusMessage propertyWriteReply (const QDBusMessage &msg, const QString &interface_name, const QByteArray &property_name, int status)
static int writeProperty (QObject *obj, const QByteArray &property_name, QVariant value, int propFlags=QDBusConnection::ExportAllProperties)
QDBusMessage qDBusPropertySet (const QDBusConnectionPrivate::ObjectTreeNode &node, const QDBusMessage &msg)
static QVariantMapoperator+= (QVariantMap &lhs, const QVariantMap &rhs)
static QVariantMap readAllProperties (QObject *object, int flags)
QDBusMessage qDBusPropertyGetAll (const QDBusConnectionPrivate::ObjectTreeNode &node, const QDBusMessage &msg)

Variables

static const char introspectableInterfaceXml []
static const char propertiesInterfaceXml []
static const char peerInterfaceXml []

Enumeration Type Documentation

◆ PropertyWriteResult [1/2]

Enumerator
PropertyWriteSuccess 
PropertyNotFound 
PropertyTypeMismatch 
PropertyReadOnly 
PropertyWriteFailed 
PropertyWriteSuccess 
PropertyNotFound 
PropertyTypeMismatch 
PropertyReadOnly 
PropertyWriteFailed 

Definition at line 251 of file qdbusinternalfilters.cpp.

◆ PropertyWriteResult [2/2]

Enumerator
PropertyWriteSuccess 
PropertyNotFound 
PropertyTypeMismatch 
PropertyReadOnly 
PropertyWriteFailed 
PropertyWriteSuccess 
PropertyNotFound 
PropertyTypeMismatch 
PropertyReadOnly 
PropertyWriteFailed 

Definition at line 251 of file qdbusinternalfilters.cpp.

Function Documentation

◆ generateSubObjectXml()

QString generateSubObjectXml ( const QObject * object)
static

Definition at line 77 of file qdbusinternalfilters.cpp.

◆ interfaceNotFoundError()

QDBusMessage interfaceNotFoundError ( const QDBusMessage & msg,
const QString & interface_name )
inlinestatic

Definition at line 166 of file qdbusinternalfilters.cpp.

◆ operator+=()

QVariantMap & operator+= ( QVariantMap & lhs,
const QVariantMap & rhs )
static

Definition at line 398 of file qdbusinternalfilters.cpp.

◆ propertyNotFoundError()

QDBusMessage propertyNotFoundError ( const QDBusMessage & msg,
const QString & interface_name,
const QByteArray & property_name )
inlinestatic

Definition at line 174 of file qdbusinternalfilters.cpp.

◆ propertyWriteReply()

QDBusMessage propertyWriteReply ( const QDBusMessage & msg,
const QString & interface_name,
const QByteArray & property_name,
int status )
static

Definition at line 259 of file qdbusinternalfilters.cpp.

References PropertyWriteSuccess.

◆ qDBusGenerateMetaObjectXml()

QString qDBusGenerateMetaObjectXml ( QString interface,
const QMetaObject * mo,
const QMetaObject * base,
int flags )
extern

Definition at line 213 of file qdbusxmlgenerator.cpp.

◆ qDBusIntrospectObject()

QString qDBusIntrospectObject ( const QDBusConnectionPrivate::ObjectTreeNode & node,
const QString & path )

◆ qDBusPropertyGet()

QDBusMessage qDBusPropertyGet ( const QDBusConnectionPrivate::ObjectTreeNode & node,
const QDBusMessage & msg )

Definition at line 184 of file qdbusinternalfilters.cpp.

References QDBusAdaptorConnector::adaptors.

◆ qDBusPropertyGetAll()

QDBusMessage qDBusPropertyGetAll ( const QDBusConnectionPrivate::ObjectTreeNode & node,
const QDBusMessage & msg )

Definition at line 439 of file qdbusinternalfilters.cpp.

References QDBusAdaptorConnector::adaptors.

◆ qDBusPropertySet()

QDBusMessage qDBusPropertySet ( const QDBusConnectionPrivate::ObjectTreeNode & node,
const QDBusMessage & msg )

Definition at line 341 of file qdbusinternalfilters.cpp.

References QDBusAdaptorConnector::adaptors.

◆ readAllProperties()

QVariantMap readAllProperties ( QObject * object,
int flags )
static

Definition at line 405 of file qdbusinternalfilters.cpp.

◆ writeProperty()

int writeProperty ( QObject * obj,
const QByteArray & property_name,
QVariant value,
int propFlags = QDBusConnection::ExportAllProperties )
static

Variable Documentation

◆ introspectableInterfaceXml

const char introspectableInterfaceXml
static
Initial value:
=
" <interface name=\"org.freedesktop.DBus.Introspectable\">\n"
" <method name=\"Introspect\">\n"
" <arg name=\"xml_data\" type=\"s\" direction=\"out\"/>\n"
" </method>\n"
" </interface>\n"

Definition at line 37 of file qdbusinternalfilters.cpp.

Referenced by qDBusIntrospectObject().

◆ peerInterfaceXml

const char peerInterfaceXml
static
Initial value:
=
" <interface name=\"org.freedesktop.DBus.Peer\">\n"
" <method name=\"Ping\"/>\n"
" <method name=\"GetMachineId\">\n"
" <arg name=\"machine_uuid\" type=\"s\" direction=\"out\"/>\n"
" </method>\n"
" </interface>\n"

Definition at line 69 of file qdbusinternalfilters.cpp.

Referenced by qDBusIntrospectObject().

◆ propertiesInterfaceXml

const char propertiesInterfaceXml
static
Initial value:
=
" <interface name=\"org.freedesktop.DBus.Properties\">\n"
" <method name=\"Get\">\n"
" <arg name=\"interface_name\" type=\"s\" direction=\"in\"/>\n"
" <arg name=\"property_name\" type=\"s\" direction=\"in\"/>\n"
" <arg name=\"value\" type=\"v\" direction=\"out\"/>\n"
" </method>\n"
" <method name=\"Set\">\n"
" <arg name=\"interface_name\" type=\"s\" direction=\"in\"/>\n"
" <arg name=\"property_name\" type=\"s\" direction=\"in\"/>\n"
" <arg name=\"value\" type=\"v\" direction=\"in\"/>\n"
" </method>\n"
" <method name=\"GetAll\">\n"
" <arg name=\"interface_name\" type=\"s\" direction=\"in\"/>\n"
" <arg name=\"values\" type=\"a{sv}\" direction=\"out\"/>\n"
" <annotation name=\"org.qtproject.QtDBus.QtTypeName.Out0\" value=\"QVariantMap\"/>\n"
" </method>\n"
" <signal name=\"PropertiesChanged\">\n"
" <arg name=\"interface_name\" type=\"s\" direction=\"out\"/>\n"
" <arg name=\"changed_properties\" type=\"a{sv}\" direction=\"out\"/>\n"
" <annotation name=\"org.qtproject.QtDBus.QtTypeName.Out1\" value=\"QVariantMap\"/>\n"
" <arg name=\"invalidated_properties\" type=\"as\" direction=\"out\"/>\n"
" </signal>\n"
" </interface>\n"

Definition at line 44 of file qdbusinternalfilters.cpp.

Referenced by qDBusIntrospectObject().