mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:52:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			541 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			541 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Optional.h>
 | |
| #include <AK/Vector.h>
 | |
| #include <LibGUI/Dialog.h>
 | |
| 
 | |
| class ShutdownDialog : public GUI::Dialog {
 | |
|     C_OBJECT(ShutdownDialog);
 | |
| 
 | |
| public:
 | |
|     struct Command {
 | |
|         StringView executable;
 | |
|         Vector<char const*, 2> arguments;
 | |
|     };
 | |
| 
 | |
|     static Optional<Command const&> show();
 | |
| 
 | |
| private:
 | |
|     ShutdownDialog();
 | |
|     virtual ~ShutdownDialog() override = default;
 | |
| 
 | |
|     int m_selected_option { -1 };
 | |
| };
 | 
