mirror of https://github.com/nymea/nymea.git
don't use all scriptable contents as it will use regular signals too
this looks like a bug in Qt to me tbh. To get around it, restrict things morepull/135/head
parent
028abeafa2
commit
3719d315b5
|
|
@ -37,6 +37,7 @@ public:
|
|||
|
||||
bool agentAvailable() const;
|
||||
|
||||
public slots:
|
||||
Q_SCRIPTABLE void RegisterButtonAgent(const QDBusObjectPath &agentPath);
|
||||
Q_SCRIPTABLE void UnregisterButtonAgent();
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ public:
|
|||
virtual BluetoothLowEnergyDevice *registerDevice(const QBluetoothDeviceInfo &deviceInfo, const QLowEnergyController::RemoteAddressType &addressType = QLowEnergyController::RandomAddress) = 0;
|
||||
virtual void unregisterDevice(BluetoothLowEnergyDevice *bluetoothDevice) = 0;
|
||||
|
||||
public slots:
|
||||
Q_SCRIPTABLE void EnableBluetooth(bool enabled);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ NymeaDBusService::NymeaDBusService(const QString &objectPath, QObject *parent) :
|
|||
finalObjectPath.append(part.at(0).toUpper());
|
||||
finalObjectPath.append(part.right(part.length() - 1));
|
||||
}
|
||||
status = s_connection.registerObject(finalObjectPath, this, QDBusConnection::ExportScriptableContents);
|
||||
status = s_connection.registerObject(finalObjectPath, this, QDBusConnection::ExportScriptableSlots);
|
||||
if (!status) {
|
||||
qCWarning(dcApplication()) << "Failed to register D-Bus object:" << finalObjectPath;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue