2 * Copyright 2008, François Revol, <revol@free.fr>. All rights reserved.
3 * Distributed under the terms of the MIT License.
8 #include <Application.h>
10 /* try loging in a user */
11 const uint32 kAttemptLogin
= 'logi';
12 const uint32 kHaltAction
= 'halt';
13 const uint32 kRebootAction
= 'rebo';
14 const uint32 kSuspendAction
= 'susp';
15 const uint32 kLoginBad
= 'lgba';
16 const uint32 kLoginOk
= 'lgok';
21 class LoginApp
: public BApplication
{
26 void MessageReceived(BMessage
*message
);
27 void ArgvReceived(int32 argc
, char **argv
);
30 void TryLogin(BMessage
*message
);
31 status_t
ValidateLogin(const char *login
, const char *password
);
32 int getpty(char *pty
, char *tty
);
34 DesktopWindow
* fDesktopWindow
;
35 LoginWindow
* fLoginWindow
;
40 #endif // _LOGINAPP_H_