#include <QDBusConnection>
#include <QDBusInterface>
+#include <QDBusReply>
using namespace std;
options["Name"] = "spp";
options["Role"] = "server";
- profileManagerIface.call("RegisterProfile", "/org/bluez/spp", "00001101-0000-1000-8000-00805F9B34FB", options);
+ QDBusReply<void> reply = profileManagerIface.call("RegisterProfile", "/org/bluez/spp", "00001101-0000-1000-8000-00805F9B34FB", options);
+
+ if(!reply.isValid())
+ {
+ DebugOut(DebugOut::Error)<<"RegisterProfile call failed: "<<reply.error().message().toStdString()<<endl;
+ }
}
void BtProfileAdaptor::Release()