25 #include <tqapplication.h>
105 for (ConnectionHash::const_iterator it =
connectionHash.constBegin();
123 for (ConnectionHash::const_iterator it =
connectionHash.constBegin();
126 it.data()->bindToApplication();
203 DBusConnection *c = 0;
206 c = dbus_bus_get(DBUS_BUS_SYSTEM, &d->
error);
209 c = dbus_bus_get(DBUS_BUS_SESSION, &d->
error);
212 c = dbus_bus_get(DBUS_BUS_STARTER, &d->
error);
223 const TQString &name)
248 DBusTimeout *timeout =
timeouts[e->timerId()];
249 dbus_timeout_handle(timeout);
261 bool isOk = dbus_connection_send(
d->
connection, msg, 0);
262 dbus_message_unref(msg);
267 const char *method)
const
284 DBusMessage *reply = dbus_connection_send_with_reply_and_block(
d->
connection, msg, -1, &
d->
error);
289 dbus_message_unref(msg);
293 dbus_message_unref(reply);
296 bool dbus_error_set = dbus_error_is_set(&
d->
error);
329 bool ok =
object->connect(
d, TQT_SIGNAL(dbusSignal(
const TQT_DBusMessage&)), slot);
339 bool ok =
d->disconnect(
object, slot);
349 TQT_DBusConnectionPrivate::ObjectMap::const_iterator it =
d->
registeredObjects.find(path);
383 TQString::fromUtf8(dbus_bus_get_unique_name(
d->
connection))
389 Q_ASSERT(modeFlags >= 0);
399 dbusFlags |= DBUS_NAME_FLAG_ALLOW_REPLACEMENT;
401 dbusFlags |= DBUS_NAME_FLAG_REPLACE_EXISTING;
408 #include "tqdbusconnection.moc"