mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-14 04:30:51 +08:00
[feat] unify Windows unattended hosting and device identity
This commit is contained in:
1 parent
930ccd9ea1
commit
4e2532f33c
67 files changed
+3491
-941
No files matched your search
@@ -41,6 +41,10 @@ PrivacyStatus PrivacyController::Snapshot() const {
|
||||
std::lock_guard lock(mutex_);
|
||||
return status_;
|
||||
}
|
||||
bool PrivacyController::Requested() const {
|
||||
std::lock_guard lock(mutex_);
|
||||
return engaged_.load() || (automatic_enable_ && resume_after_unlock_);
|
||||
}
|
||||
void PrivacyController::SetText(const PrivacyScreenText& text) {
|
||||
std::lock_guard lock(mutex_);
|
||||
if (text_.unlock_hint == text.unlock_hint && text_.locked_hint == text.locked_hint &&
|
||||
|
||||
@@ -35,6 +35,8 @@ class PrivacyController {
|
||||
void Shutdown();
|
||||
void Fail(const std::string& reason);
|
||||
bool Engaged() const { return engaged_.load(); }
|
||||
// Includes automatic privacy suspended until the user desktop recovers.
|
||||
bool Requested() const;
|
||||
void CaptureChanged(bool running);
|
||||
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user