src/dbus/qdbusconnection.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
   123             d->closeConnection();
   123             d->closeConnection();
   124     }
   124     }
   125     connectionHash.clear();
   125     connectionHash.clear();
   126 }
   126 }
   127 
   127 
   128 QDBUS_EXPORT void qDBusBindToApplication();
   128 Q_DBUS_EXPORT void qDBusBindToApplication();
   129 void qDBusBindToApplication()
   129 void qDBusBindToApplication()
   130 {
   130 {
   131 }
   131 }
   132 
   132 
   133 void QDBusConnectionManager::setConnection(const QString &name, QDBusConnectionPrivate *c)
   133 void QDBusConnectionManager::setConnection(const QString &name, QDBusConnectionPrivate *c)
  1001 }
  1001 }
  1002 
  1002 
  1003 /*!
  1003 /*!
  1004   \internal
  1004   \internal
  1005 */
  1005 */
  1006 void QDBusConnectionPrivate::setConnection(const QString &name, QDBusConnectionPrivate *c)
       
  1007 {
       
  1008     _q_manager()->setConnection(name, c);
       
  1009 }
       
  1010 
       
  1011 /*!
       
  1012   \internal
       
  1013 */
       
  1014 void QDBusConnectionPrivate::setBusService(const QDBusConnection &connection)
  1006 void QDBusConnectionPrivate::setBusService(const QDBusConnection &connection)
  1015 {
  1007 {
  1016     busService = new QDBusConnectionInterface(connection, this);
  1008     busService = new QDBusConnectionInterface(connection, this);
  1017     ref.deref(); // busService has increased the refcounting to us
  1009     ref.deref(); // busService has increased the refcounting to us
  1018                  // avoid cyclic refcounting
  1010                  // avoid cyclic refcounting