dbus/qt connection.cpp,1.8,1.9

Zack Rusin zack at pdx.freedesktop.org
Mon May 3 22:35:51 PDT 2004


Update of /cvs/dbus/dbus/qt
In directory pdx:/tmp/cvs-serv990

Modified Files:
	connection.cpp 
Log Message:
Modified version of the patch by Jeff Snyder jeff at caffeinated.me.uk
Thanks


Index: connection.cpp
===================================================================
RCS file: /cvs/dbus/dbus/qt/connection.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- a/connection.cpp	27 Apr 2004 05:35:01 -0000	1.8
+++ b/connection.cpp	4 May 2004 05:35:48 -0000	1.9
@@ -73,10 +73,10 @@
     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 @@
 
 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 )




More information about the dbus-commit mailing list