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