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 <TextControl.h> 14 #include <Window.h> 15 16 17 const static int32 kMsgUnlock = 'ULMS'; 18 19 20 class PasswordWindow : public BWindow { 21 public: 22 PasswordWindow(); 23 24 const char *Password() { return fPassword->Text(); } 25 void SetPassword(const char* text); 26 27 private: 28 BTextControl *fPassword; 29 }; 30 31 #endif // PASSWORDWINDOW_H 32