Commit a36beaa2 authored by Zack Rusin's avatar Zack Rusin

Modified version of the patch by Jeff Snyder jeff at caffeinated.me.uk

Thanks
parent f9f70da4
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment