xref: /haiku/src/apps/expander/PasswordAlert.h (revision 83b1a68c52ba3e0e8796282759f694b7fdddf06d)
1 /*
2  * Copyright 2003-2010 Haiku Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Jérôme Duval
7  */
8 #ifndef _PASSWORD_ALERT_H
9 #define _PASSWORD_ALERT_H
10 
11 
12 #include <Bitmap.h>
13 #include <String.h>
14 #include <TextControl.h>
15 #include <Window.h>
16 
17 
18 class PasswordAlert : public BWindow {
19 public:
20 								PasswordAlert(const char* title,
21 									const char* text);
22 	virtual						~PasswordAlert();
23 
24 			void				Go(BString& password);
25 	virtual void				MessageReceived(BMessage* message);
26 
27 private:
28 			BBitmap*			InitIcon();
29 			BTextControl*		fTextControl;
30 			sem_id				fAlertSem;
31 };
32 
33 
34 #endif	// _PASSWORD_ALERT_H
35