24 #include "dbusinterface.h"
26 #include "libsignoncommon.h"
32 static bool connIsP2P(
const QDBusConnection &connection)
34 return connection.name().startsWith(QLatin1String(
"libsignon-qt"));
37 DBusInterface::DBusInterface(
const QString &service,
39 const char *interface,
40 const QDBusConnection &connection,
45 QDBusAbstractInterface(connIsP2P(connection) ? QLatin1String(
"") : service,
46 path, interface, connection, parent)
51 DBusInterface::~DBusInterface()
55 bool DBusInterface::connect(
const char *name,
59 return connection().connect(service(), path(), interface(),
60 QLatin1String(name), receiver, slot);