1 /* 2 * Copyright 2009, Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Alexandre Deckner <alex@zappotek.com> 7 */ 8 #ifndef _MAINWINDOW_H 9 #define _MAINWINDOW_H 10 11 #include <DirectWindow.h> 12 13 class RenderView; 14 15 class MainWindow: public BDirectWindow { 16 public: 17 MainWindow(BRect frame, const char* title); 18 ~MainWindow(); 19 20 virtual bool QuitRequested(); 21 virtual void MessageReceived(BMessage *message); 22 virtual void DirectConnected(direct_buffer_info* info); 23 24 protected: 25 RenderView* fRenderView; 26 }; 27 28 #endif /* _MAINWINDOW_H */ 29