Qt 4.8
Functions | Variables
qdbusabstractadaptor.cpp File Reference
#include "qdbusabstractadaptor.h"
#include <QtCore/qcoreapplication.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qset.h>
#include <QtCore/qtimer.h>
#include <QtCore/qthread.h>
#include "qdbusconnection.h"
#include "qdbusconnection_p.h"
#include "qdbusabstractadaptor_p.h"
#include "qdbusmetatype_p.h"

Go to the source code of this file.

Functions

QDBusAdaptorConnectorqDBusCreateAdaptorConnector (QObject *obj)
 
QDBusAdaptorConnectorqDBusFindAdaptorConnector (QObject *obj)
 
QDBusAdaptorConnectorqDBusFindAdaptorConnector (QDBusAbstractAdaptor *adaptor)
 

Variables

static const uint qt_meta_data_QDBusAdaptorConnector []
 
static const char qt_meta_stringdata_QDBusAdaptorConnector []
 

Function Documentation

◆ qDBusCreateAdaptorConnector()

QDBusAdaptorConnector* qDBusCreateAdaptorConnector ( QObject obj)

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() [1/2]

QDBusAdaptorConnector* qDBusFindAdaptorConnector ( QObject obj)

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
const QObjectList & children() const
Returns a list of child objects.
Definition: qobject.h:197
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

◆ qDBusFindAdaptorConnector() [2/2]

QDBusAdaptorConnector* qDBusFindAdaptorConnector ( QDBusAbstractAdaptor adaptor)

Definition at line 77 of file qdbusabstractadaptor.cpp.

78 {
79  return qDBusFindAdaptorConnector(adaptor->parent());
80 }
QDBusAdaptorConnector * qDBusFindAdaptorConnector(QObject *obj)
QObject * parent() const
Returns a pointer to the parent object.
Definition: qobject.h:273

Variable Documentation

◆ qt_meta_data_QDBusAdaptorConnector

const uint qt_meta_data_QDBusAdaptorConnector[]
static
Initial value:
= {
1,
0,
0, 0,
3, 10,
0, 0,
0, 0,
106, 22, 22, 22, 0x0a,
118, 22, 22, 22, 0x0a,
47, 23, 22, 22, 0x05,
0
}

Definition at line 327 of file qdbusabstractadaptor.cpp.

◆ qt_meta_stringdata_QDBusAdaptorConnector

const char qt_meta_stringdata_QDBusAdaptorConnector[]
static
Initial value:
= {
"QDBusAdaptorConnector\0\0obj,metaobject,sid,args\0"
"relaySignal(QObject*,const QMetaObject*,int,QVariantList)\0\0relaySlot()\0"
"polish()\0"
}

Definition at line 346 of file qdbusabstractadaptor.cpp.