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_
7
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>
15
16const uint32 kUserSelected = 'usel';
17const uint32 kUserInvoked = 'uinv';
18const uint32 kLoginEdited = 'logc';
19const uint32 kPasswordEdited = 'pasc';
20const uint32 kHidePassword = 'hidp';
21const uint32 kAddNextUser = 'adnu';
22const uint32 kSetProgress = 'setp';
23
24class LoginView : public BView {
25public:
26				LoginView(BRect frame);
27	virtual		~LoginView();
28	void		AttachedToWindow();
29	void		MessageReceived(BMessage *message);
30	void		Pulse();
31
32private:
33	void		AddNextUser();
34	void		EnableControls(bool enable);
35
36	BListView*		fUserList;
37	BTextControl*	fLoginControl;
38	BTextControl*	fPasswordControl;
39	BCheckBox*		fHidePasswordCheckBox;
40	BButton*		fHaltButton;
41	BButton*		fRebootButton;
42	BButton*		fLoginButton;
43	BStringView*	fInfoView;
44};
45
46
47#endif	// _LOGINVIEW_H_
48