vfs: check userland buffers before reading them.
[haiku.git] / src / apps / haiku3d / MainWindow.h
blob389c966d336a0d0828e1e3035f90692b7e590dfb
1 /*
2 * Copyright 2009, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Alexandre Deckner <alex@zappotek.com>
7 */
8 #ifndef _MAINWINDOW_H
9 #define _MAINWINDOW_H
11 #include <DirectWindow.h>
13 class RenderView;
15 class MainWindow: public BDirectWindow {
16 public:
17 MainWindow(BRect frame, const char* title);
18 ~MainWindow();
20 virtual bool QuitRequested();
21 virtual void MessageReceived(BMessage* message);
22 virtual void DirectConnected(direct_buffer_info* info);
24 protected:
25 RenderView* fRenderView;
28 #endif /* _MAINWINDOW_H */