mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-28 00:33:06 +08:00
[feat] add mobile privacy controls and Windows secure text input
This commit is contained in:
@@ -12,6 +12,13 @@
|
||||
#include <remote_action.h>
|
||||
|
||||
namespace crossdesk::mobile_controller {
|
||||
inline std::string PrivacyMessage(int flag, bool block_local_input) {
|
||||
if (flag < 0 || flag > 2) return {};
|
||||
RemoteAction action{};
|
||||
action.type = privacy_command;
|
||||
action.pc = {static_cast<PrivacyCommandFlag>(flag), block_local_input};
|
||||
return action.to_json();
|
||||
}
|
||||
inline std::string SecureAttentionMessage() {
|
||||
RemoteAction action{};
|
||||
action.type = service_command;
|
||||
|
||||
Reference in New Issue
Block a user