mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:40:05 +00:00
25 lines
353 B
C++
25 lines
353 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
namespace scwx::qt::util
|
|
{
|
|
|
|
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::util
|