public:
ProfileChange() : GlobalPolicy("wifi-profile-change")
{
- PolicyEventNotifier::create("wifi-profile-change");
+ PolicyEventNotifier::create("wifi_profile_change");
}
bool apply(const DataType& value)
ERROR("Failed to set Wi-Fi profile change restriction");
return false;
}
- PolicyEventNotifier::emit("wifi-profile-change", enable ? "allowed" : "disallowed");
+ PolicyEventNotifier::emit("wifi_profile_change", enable ? "allowed" : "disallowed");
return true;
}
};
public:
Hotspot() : GlobalPolicy("wifi-hotspot")
{
- PolicyEventNotifier::create("wifi-hotspot");
+ PolicyEventNotifier::create("wifi_hotspot");
}
bool apply(const DataType& value)
{
int enable = value;
- PolicyEventNotifier::emit("wifi-hotspot", enable ? "allowed" : "disallowed");
+ PolicyEventNotifier::emit("wifi_hotspot", enable ? "allowed" : "disallowed");
return true;
}
};