2 * Copyright (C) 2010 Stephan Aßmus <superstippi@gmx.de>
4 * All rights reserved. Distributed under the terms of the MIT License.
6 #ifndef AuthenticationPanel_h
7 #define AuthenticationPanel_h
15 class AuthenticationPanel
: public BWindow
{
17 AuthenticationPanel(BRect parentFrame
= BRect());
18 virtual ~AuthenticationPanel();
20 virtual bool QuitRequested();
22 virtual void MessageReceived(BMessage
*message
);
24 bool getAuthentication(const BString
& text
, const BString
& previousUser
,
25 const BString
& previousPass
, bool previousRememberCredentials
,
26 bool badPassword
, BString
& user
, BString
& pass
,
27 bool* rememberCredentials
);
30 BRect m_parentWindowFrame
;
31 BTextControl
* m_usernameTextControl
;
32 BTextControl
* m_passwordTextControl
;
33 BCheckBox
* m_hidePasswordCheckBox
;
34 BCheckBox
* m_rememberCredentialsCheckBox
;
36 BButton
* m_cancelButton
;
40 sem_id m_exitSemaphore
;
43 #endif // AuthenticationPanel_h