xref: /haiku/src/preferences/screensaver/PasswordWindow.h (revision c9ad965c81b08802fed0827fd1dd16f45297928a)
1 /*
2  * Copyright 2003-2007, 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 "ScreenSaverSettings.h"
14 
15 
16 #include <Window.h>
17 
18 
19 class BRadioButton;
20 class BTextControl;
21 
22 
23 class PasswordWindow : public BWindow {
24 	public:
25 						PasswordWindow(ScreenSaverSettings &settings);
26 
27 		virtual void	MessageReceived(BMessage *message);
28 
29 		void			Update();
30 
31 	private:
32 		void			_Setup();
33 		char * 			_SanitizeSalt(const char *password);
34 
35 		BRadioButton	*fUseCustom;
36 		BRadioButton	*fUseNetwork;
37 		BTextControl	*fConfirmControl;
38 		BTextControl	*fPasswordControl;
39 
40 		ScreenSaverSettings &fSettings;
41 };
42 
43 #endif	// PASSWORD_WINDOW_H
44