#pragma once #include 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 p; }; } // namespace scwx::qt::main