public:
DebuggingMode() : GlobalPolicy("usb-debugging")
{
- PolicyEventNotifier::create("usb-debugging");
+ PolicyEventNotifier::create("usb_debugging");
}
bool apply(const DataType& value)
{
int enable = value;
- PolicyEventNotifier::emit("usb-debugging", enable ? "allowed" : "disallowed");
+ PolicyEventNotifier::emit("usb_debugging", enable ? "allowed" : "disallowed");
return true;
}
};
public:
Tethering() : GlobalPolicy("usb-tethering")
{
- PolicyEventNotifier::create("usb-tethering");
+ PolicyEventNotifier::create("usb_tethering");
}
bool apply(const DataType& value)
{
int enable = value;
- PolicyEventNotifier::emit("usb-tethering", enable ? "allowed" : "disallowed");
+ PolicyEventNotifier::emit("usb_tethering", enable ? "allowed" : "disallowed");
return true;
}
};
public:
Client() : GlobalPolicy("usb-client")
{
- PolicyEventNotifier::create("usb-client");
+ PolicyEventNotifier::create("usb_client");
sendDbusSignal();
}
}
if (ret == 0) {
- PolicyEventNotifier::emit("usb-client", enable ? "allowed" : "disallowed");
+ PolicyEventNotifier::emit("usb_client", enable ? "allowed" : "disallowed");
return true;
}