move check_privilege.* to main

This commit is contained in:
AdenKoperczak 2025-01-11 13:46:32 -05:00
parent 4a4075b50f
commit 2f9908b54e
4 changed files with 12 additions and 12 deletions

View file

@ -0,0 +1,25 @@
#pragma once
#include <memory>
namespace scwx::qt::main
{
bool is_high_privilege();
class PrivilegeChecker
{
public:
explicit PrivilegeChecker();
~PrivilegeChecker();
// returning true means check failed.
bool first_check();
bool second_check();
private:
class Impl;
std::unique_ptr<Impl> p;
};
} // namespace scwx::qt::main