diff options
author | Zack Rusin <zack@kde.org> | 2004-05-04 05:35:48 +0000 |
---|---|---|
committer | Zack Rusin <zack@kde.org> | 2004-05-04 05:35:48 +0000 |
commit | a36beaa2792885b9a44df5e036480f18571ef608 (patch) | |
tree | 6ac7f4a40026929e2ab38b9ae4a89a46d35d1181 /qt | |
parent | f9f70da4dff4c085121b7e0ee24677041d3c3f68 (diff) | |
download | dbus-a36beaa2792885b9a44df5e036480f18571ef608.tar.gz |
Modified version of the patch by Jeff Snyder jeff at caffeinated.me.uk
Thanks
Diffstat (limited to 'qt')
-rw-r--r-- | qt/connection.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt/connection.cpp b/qt/connection.cpp index de5c6278..ba161504 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 ) |