mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:20:04 +00:00 
			
		
		
		
	move check_privilege.* to main
This commit is contained in:
		
							parent
							
								
									4a4075b50f
								
							
						
					
					
						commit
						2f9908b54e
					
				
					 4 changed files with 12 additions and 12 deletions
				
			
		
							
								
								
									
										25
									
								
								scwx-qt/source/scwx/qt/main/check_privilege.hpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								scwx-qt/source/scwx/qt/main/check_privilege.hpp
									
										
									
									
									
										Normal 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
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak