Qt 4.8
Public Functions | Public Variables | List of all members
QDBusIntrospection::Interface Class Reference

Information about one interface on the bus. More...

#include <qdbusintrospection_p.h>

Inheritance diagram for QDBusIntrospection::Interface:
QSharedData

Public Functions

bool operator== (const Interface &other) const
 Compares this object against other and return true if they are the same. More...
 
- Public Functions inherited from QSharedData
 QSharedData ()
 Constructs a QSharedData object with a reference count of 0. More...
 
 QSharedData (const QSharedData &)
 Constructs a QSharedData object with reference count 0. More...
 

Public Variables

Annotations annotations
 The annotations associated with the interface. More...
 
QString introspection
 The XML document fragment describing this interface. More...
 
Methods methods
 The methods available in this interface. More...
 
QString name
 The interface's name. More...
 
Properties properties
 The properties available in this interface. More...
 
Signals signals_
 The signals available in this interface. More...
 
- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Information about one interface on the bus.

Each interface on D-Bus has an unique name, identifying where that interface was defined. Interfaces may have annotations, methods, signals and properties, but none are mandatory.

Definition at line 135 of file qdbusintrospection_p.h.

Functions

◆ operator==()

QDBusIntrospection::Interface::operator== ( const Interface other) const
inline

Compares this object against other and return true if they are the same.

Note that two interfaces are considered to be the same if they have the same name. The internal structures in the objects are not compared.

Definition at line 145 of file qdbusintrospection_p.h.

146  { return !name.isEmpty() && name == other.name; }
QString name
The interface&#39;s name.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704

Properties

◆ annotations

QDBusIntrospection::Interface::annotations

The annotations associated with the interface.

Each annotation is a pair of strings, where the key is of the same format as a D-Bus interface name. The value is arbitrary.

Definition at line 140 of file qdbusintrospection_p.h.

Referenced by QDBusMetaObject::createMetaObject(), and QDBusXmlParser::interfaces().

◆ introspection

QDBusIntrospection::Interface::introspection

The XML document fragment describing this interface.

If parsed again through parseInterface, the object returned should have the same contents as this object.

Definition at line 138 of file qdbusintrospection_p.h.

Referenced by QDBusMetaObject::createMetaObject(), and QDBusXmlParser::interfaces().

◆ methods

QDBusIntrospection::Interface::methods

The methods available in this interface.

Note that method names are not unique (i.e., methods can be overloaded with multiple arguments types).

Definition at line 141 of file qdbusintrospection_p.h.

Referenced by QDBusMetaObject::createMetaObject(), QDBusXmlParser::interfaces(), and QDBusMetaObjectGenerator::parseMethods().

◆ name

QDBusIntrospection::Interface::name

The interface's name.

Definition at line 137 of file qdbusintrospection_p.h.

Referenced by QDBusMetaObject::createMetaObject(), QDBusXmlParser::interfaces(), and operator==().

◆ properties

QDBusIntrospection::Interface::properties

The properties available in this interface.

Property names are unique.

Definition at line 143 of file qdbusintrospection_p.h.

Referenced by QDBusMetaObject::createMetaObject(), QDBusXmlParser::interfaces(), and QDBusMetaObjectGenerator::parseProperties().

◆ signals_

QDBusIntrospection::Interface::signals_

The signals available in this interface.

Note that signal names are not unique (i.e., signals can be overloaded with multiple argument types).

This member is called "signals_" because "signals" is a reserved keyword in Qt.

Definition at line 142 of file qdbusintrospection_p.h.

Referenced by QDBusMetaObject::createMetaObject(), QDBusXmlParser::interfaces(), and QDBusMetaObjectGenerator::parseSignals().


The documentation for this class was generated from the following files: