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 _PASSWORDALERT_H 9 #define _PASSWORDALERT_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 { 20 public: 21 PasswordAlert(const char* title, 22 const char* text); 23 virtual ~PasswordAlert(); 24 void Go(BString &password); 25 virtual void MessageReceived(BMessage* msg); 26 private: 27 BBitmap* InitIcon(); 28 BTextControl* fTextControl; 29 sem_id fAlertSem; 30 }; 31 32 #endif // _PASSWORDALERT_H 33 34