vfs: check userland buffers before reading them.
[haiku.git] / src / apps / login / LoginWindow.cpp
blob9d7b5469ddb408c72c6a68cbaf46148261276eff
1 /*
2 * Copyright 2008, François Revol, <revol@free.fr>. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <Catalog.h>
9 #include "LoginWindow.h"
10 #include "LoginView.h"
12 #undef B_TRANSLATION_CONTEXT
13 #define B_TRANSLATION_CONTEXT "Login Window"
15 #define WINDOW_FEEL B_NORMAL_WINDOW_FEEL
16 //#define WINDOW_FEEL B_FLOATING_ALL_WINDOW_FEEL
18 LoginWindow::LoginWindow(BRect frame)
19 : BWindow(frame, B_TRANSLATE("Welcome to Haiku"), B_TITLED_WINDOW_LOOK,
20 WINDOW_FEEL,
21 B_NOT_MOVABLE | B_NOT_CLOSABLE | B_NOT_ZOOMABLE |
22 B_NOT_MINIMIZABLE | B_NOT_RESIZABLE |
23 B_ASYNCHRONOUS_CONTROLS,
24 B_ALL_WORKSPACES)
26 LoginView *v = new LoginView(Bounds());
27 AddChild(v);
28 SetPulseRate(1000000LL);
32 LoginWindow::~LoginWindow()