From: Zack Rusin Date: Tue, 4 May 2004 05:35:48 +0000 (+0000) Subject: Modified version of the patch by Jeff Snyder jeff at caffeinated.me.uk X-Git-Tag: dbus-0.22~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a36beaa2792885b9a44df5e036480f18571ef608;p=thirdparty%2Fdbus.git Modified version of the patch by Jeff Snyder jeff at caffeinated.me.uk Thanks --- diff --git a/qt/connection.cpp b/qt/connection.cpp index de5c6278a..ba1615049 100644 --- a/qt/connection.cpp +++ b/qt/connection.cpp @@ -73,10 +73,10 @@ Connection::Connection( const QString& host, QObject *parent ) init( host ); } -Connection::Connection(DBusBusType type, QObject* parent) +Connection::Connection( DBusBusType type, QObject* parent ) : QObject( parent ) { - d = new Private(this); + d = new Private( this ); d->setConnection( dbus_bus_get(type, &d->error) ); } @@ -89,10 +89,12 @@ void Connection::init( const QString& host ) bool Connection::isConnected() const { + return dbus_connection_get_is_connected( d->connection ); } bool Connection::isAuthenticated() const { + return dbus_connection_get_is_authenticated( d->connection ); } void Connection::open( const QString& host )