public:
DesktopConnectivity() : GlobalPolicy("bluetooth-desktop-connectivity")
{
- PolicyEventNotifier::create("bluetooth-desktop-connectivity");
+ PolicyEventNotifier::create("bluetooth_desktop_connectivity");
}
bool apply(const DataType & value)
int ret = bluetooth_dpm_set_desktop_connectivity_state(POLICY_IS_ALLOWED(value));
if (!BT_FAILED(ret)) {
int enable = value;
- PolicyEventNotifier::emit("bluetooth-desktop-connectivity",
+ PolicyEventNotifier::emit("bluetooth_desktop_connectivity",
enable ? "allowed" : "disallowed");
return true;
}
public:
Pairing() : GlobalPolicy("bluetooth-pairing")
{
- PolicyEventNotifier::create("bluetooth-pairing");
+ PolicyEventNotifier::create("bluetooth_pairing");
}
bool apply(const DataType& value)
int ret = bluetooth_dpm_set_pairing_state(POLICY_IS_ALLOWED(value));
if (!BT_FAILED(ret)) {
int enable = value;
- PolicyEventNotifier::emit("bluetooth-pairing",
+ PolicyEventNotifier::emit("bluetooth_pairing",
enable ? "allowed" : "disallowed");
return true;
}
public:
Tethering() : GlobalPolicy("bluetooth-tethering")
{
- PolicyEventNotifier::create("bluetooth-tethering");
+ PolicyEventNotifier::create("bluetooth_tethering");
}
bool apply(const DataType& value)
{
int enable = value;
- PolicyEventNotifier::emit("bluetooth-tethering",
+ PolicyEventNotifier::emit("bluetooth_tethering",
enable ? "allowed" : "disallowed");
return true;
}
public:
Bluetooth();
~Bluetooth();
-
+
int setModeChangeState(bool enable);
bool getModeChangeState();
int setDesktopConnectivityState(bool enable);