Qt 4.8
Classes | Macros | Functions
qdbusabstractadaptor_p.h File Reference
#include <qdbusabstractadaptor.h>
#include <QtCore/qobject.h>
#include <QtCore/qmap.h>
#include <QtCore/qhash.h>
#include <QtCore/qreadwritelock.h>
#include <QtCore/qvariant.h>
#include <QtCore/qvector.h>
#include "private/qobject_p.h"

Go to the source code of this file.

Classes

class  QDBusAbstractAdaptorPrivate
 
class  QDBusAdaptorConnector
 
struct  QDBusAdaptorConnector::AdaptorData
 

Macros

#define QCLASSINFO_DBUS_INTERFACE   "D-Bus Interface"
 
#define QCLASSINFO_DBUS_INTROSPECTION   "D-Bus Introspection"
 

Functions

QDBusAdaptorConnectorqDBusCreateAdaptorConnector (QObject *object)
 
QDBusAdaptorConnectorqDBusFindAdaptorConnector (QObject *object)
 

Macro Definition Documentation

◆ QCLASSINFO_DBUS_INTERFACE

#define QCLASSINFO_DBUS_INTERFACE   "D-Bus Interface"

◆ QCLASSINFO_DBUS_INTROSPECTION

#define QCLASSINFO_DBUS_INTROSPECTION   "D-Bus Introspection"

Definition at line 68 of file qdbusabstractadaptor_p.h.

Referenced by qDBusGenerateMetaObjectXml().

Function Documentation

◆ qDBusCreateAdaptorConnector()

QDBusAdaptorConnector* qDBusCreateAdaptorConnector ( QObject object)

Definition at line 82 of file qdbusabstractadaptor.cpp.

Referenced by QDBusAbstractAdaptor::QDBusAbstractAdaptor(), and QDBusConnectionPrivate::registerObject().

83 {
85  if (connector)
86  return connector;
87  return new QDBusAdaptorConnector(obj);
88 }
QDBusAdaptorConnector * qDBusFindAdaptorConnector(QObject *obj)

◆ qDBusFindAdaptorConnector()

QDBusAdaptorConnector* qDBusFindAdaptorConnector ( QObject object)

Definition at line 60 of file qdbusabstractadaptor.cpp.

Referenced by QDBusConnectionPrivate::activateObject(), qDBusCreateAdaptorConnector(), qDBusFindAdaptorConnector(), qDBusIntrospectObject(), qDBusPropertyGet(), qDBusPropertyGetAll(), and qDBusPropertySet().

61 {
62  if (!obj)
63  return 0;
64  const QObjectList &children = obj->children();
67  for ( ; it != end; ++it) {
69  if (connector) {
70  connector->polish();
71  return connector;
72  }
73  }
74  return 0;
75 }
#define it(className, varName)
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the list.
Definition: qlist.h:269
T * qobject_cast(QObject *object)
Definition: qobject.h:375
const_iterator ConstIterator
Qt-style synonym for QList::const_iterator.
Definition: qlist.h:279
static const KeyPair *const end
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the list...
Definition: qlist.h:272