|
|
@ -106,7 +106,7 @@ DBusConnection::open()
|
|
|
|
dbus_connection_set_exit_on_disconnect( dbus_connection, false );
|
|
|
|
dbus_connection_set_exit_on_disconnect( dbus_connection, false );
|
|
|
|
|
|
|
|
|
|
|
|
/* create qt connection */
|
|
|
|
/* create qt connection */
|
|
|
|
qt_connection = new DBusTQt::Connection( this );
|
|
|
|
qt_connection = new DBusQt::Connection( this );
|
|
|
|
qt_connection->dbus_connection_setup_with_qt_main( dbus_connection );
|
|
|
|
qt_connection->dbus_connection_setup_with_qt_main( dbus_connection );
|
|
|
|
|
|
|
|
|
|
|
|
if ( !dbus_connection_add_filter(dbus_connection, signal_handler, context, NULL) )
|
|
|
|
if ( !dbus_connection_add_filter(dbus_connection, signal_handler, context, NULL) )
|
|
|
@ -236,7 +236,7 @@ DBusConnection::send_with_reply(const char* method, int first_arg_type, va_list
|
|
|
|
|
|
|
|
|
|
|
|
DBusMessage* oldmsg = msg;
|
|
|
|
DBusMessage* oldmsg = msg;
|
|
|
|
msg = dbus_connection_send_with_reply_and_block(dbus_connection, oldmsg, -1, &error);
|
|
|
|
msg = dbus_connection_send_with_reply_and_block(dbus_connection, oldmsg, -1, &error);
|
|
|
|
DBusDispatchtqStatus status;
|
|
|
|
DBusDispatchStatus status;
|
|
|
|
while ((status = dbus_connection_get_dispatch_status(dbus_connection)) == DBUS_DISPATCH_DATA_REMAINS)
|
|
|
|
while ((status = dbus_connection_get_dispatch_status(dbus_connection)) == DBUS_DISPATCH_DATA_REMAINS)
|
|
|
|
dbus_connection_dispatch (dbus_connection);
|
|
|
|
dbus_connection_dispatch (dbus_connection);
|
|
|
|
dbus_message_unref (oldmsg);
|
|
|
|
dbus_message_unref (oldmsg);
|
|
|
|