RemoteDrawingEngine: Reduce RP_READ_BITMAP result timeout.
[haiku.git] / src / apps / login / LoginView.h
blob657f038695f78a8c1d933f97d87da1ff34f7cb4d
1 /*
2 * Copyright 2008, François Revol, <revol@free.fr>. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _LOGINVIEW_H_
6 #define _LOGINVIEW_H_
8 #include <Button.h>
9 #include <CheckBox.h>
10 #include <View.h>
11 #include <ListItem.h>
12 #include <ListView.h>
13 #include <StringView.h>
14 #include <TextControl.h>
16 const uint32 kUserSelected = 'usel';
17 const uint32 kUserInvoked = 'uinv';
18 const uint32 kLoginEdited = 'logc';
19 const uint32 kPasswordEdited = 'pasc';
20 const uint32 kHidePassword = 'hidp';
21 const uint32 kAddNextUser = 'adnu';
22 const uint32 kSetProgress = 'setp';
24 class LoginView : public BView {
25 public:
26 LoginView(BRect frame);
27 virtual ~LoginView();
28 void AttachedToWindow();
29 void MessageReceived(BMessage *message);
30 void Pulse();
32 private:
33 void AddNextUser();
34 void EnableControls(bool enable);
36 BListView* fUserList;
37 BTextControl* fLoginControl;
38 BTextControl* fPasswordControl;
39 BCheckBox* fHidePasswordCheckBox;
40 BButton* fHaltButton;
41 BButton* fRebootButton;
42 BButton* fLoginButton;
43 BStringView* fInfoView;
47 #endif // _LOGINVIEW_H_