134c28c69SFrançois Revol/*
234c28c69SFrançois Revol * Copyright 2008, Fran��ois Revol, <revol@free.fr>. All rights reserved.
334c28c69SFrançois Revol * Distributed under the terms of the MIT License.
434c28c69SFrançois Revol */
534c28c69SFrançois Revol#ifndef _LOGINVIEW_H_
634c28c69SFrançois Revol#define _LOGINVIEW_H_
734c28c69SFrançois Revol
8d5cec752SFrançois Revol#include <Button.h>
9d5cec752SFrançois Revol#include <CheckBox.h>
1064811019SFrançois Revol#include <View.h>
1164811019SFrançois Revol#include <ListItem.h>
1264811019SFrançois Revol#include <ListView.h>
138b2e7d30SFrançois Revol#include <StringView.h>
1464811019SFrançois Revol#include <TextControl.h>
1564811019SFrançois Revol
16d5cec752SFrançois Revolconst uint32 kUserSelected = 'usel';
17d5cec752SFrançois Revolconst uint32 kUserInvoked = 'uinv';
1864811019SFrançois Revolconst uint32 kLoginEdited = 'logc';
1964811019SFrançois Revolconst uint32 kPasswordEdited = 'pasc';
20d5cec752SFrançois Revolconst uint32 kHidePassword = 'hidp';
2164811019SFrançois Revolconst uint32 kAddNextUser = 'adnu';
2264811019SFrançois Revolconst uint32 kSetProgress = 'setp';
2364811019SFrançois Revol
2464811019SFrançois Revolclass LoginView : public BView {
25d5cec752SFrançois Revolpublic:
26d5cec752SFrançois Revol				LoginView(BRect frame);
27d5cec752SFrançois Revol	virtual		~LoginView();
28d5cec752SFrançois Revol	void		AttachedToWindow();
29d5cec752SFrançois Revol	void		MessageReceived(BMessage *message);
308b2e7d30SFrançois Revol	void		Pulse();
31d5cec752SFrançois Revol
32d5cec752SFrançois Revolprivate:
33d5cec752SFrançois Revol	void		AddNextUser();
34d5cec752SFrançois Revol	void		EnableControls(bool enable);
35d5cec752SFrançois Revol
36d5cec752SFrançois Revol	BListView*		fUserList;
37d5cec752SFrançois Revol	BTextControl*	fLoginControl;
38d5cec752SFrançois Revol	BTextControl*	fPasswordControl;
39d5cec752SFrançois Revol	BCheckBox*		fHidePasswordCheckBox;
40d5cec752SFrançois Revol	BButton*		fHaltButton;
41d5cec752SFrançois Revol	BButton*		fRebootButton;
42d5cec752SFrançois Revol	BButton*		fLoginButton;
438b2e7d30SFrançois Revol	BStringView*	fInfoView;
4464811019SFrançois Revol};
4564811019SFrançois Revol
4634c28c69SFrançois Revol
4734c28c69SFrançois Revol#endif	// _LOGINVIEW_H_
48