summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Rusin <zack@kde.org>2004-05-04 05:35:48 +0000
committerJohn Palmieri <johnp@remedyz.boston.redhat.com>2006-06-28 08:15:08 -0400
commit277e4383c19c3735a258a0a79496b210be31abd3 (patch)
tree12bc112c0f78201811911cfb6bdfdd5f46ce7906
parent11e2acad29a808e98294fbfe2016fb210ea1d5af (diff)
Modified version of the patch by Jeff Snyder jeff at caffeinated.me.uk
Thanks
-rw-r--r--qt/connection.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qt/connection.cpp b/qt/connection.cpp
index de5c627..ba16150 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 )