xref: /haiku/src/preferences/screensaver/PasswordWindow.h (revision 002f37b0cca92e4cf72857c72ac95db5a8b09615)
1 /*
2  * Copyright 2003-2013 Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Michael Phipps
7  *		Jérôme Duval, jerome.duval@free.fr
8  */
9 #ifndef PASSWORD_WINDOW_H
10 #define PASSWORD_WINDOW_H
11 
12 
13 #include <Window.h>
14 
15 
16 class BRadioButton;
17 class BTextControl;
18 
19 class ScreenSaverSettings;
20 
21 
22 class PasswordWindow : public BWindow {
23 public:
24 								PasswordWindow(ScreenSaverSettings& settings);
25 
26 	virtual	void				MessageReceived(BMessage* message);
27 
28 			void				Update();
29 
30 private:
31 			void				_Setup();
32 			char*	 			_SanitizeSalt(const char* password);
33 
34 			BRadioButton*		fUseCustom;
35 			BRadioButton*		fUseNetwork;
36 			BTextControl*		fConfirmControl;
37 			BTextControl*		fPasswordControl;
38 
39 			ScreenSaverSettings& fSettings;
40 };
41 
42 
43 #endif	// PASSWORD_WINDOW_H
44