vfs: check userland buffers before reading them.
[haiku.git] / src / servers / app / OffscreenServerWindow.h
blob34e3d522f39a2764dc5aba8617dff4c642bf9874
1 /*
2 * Copyright 2005-2008, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
8 #ifndef OFFSCREEN_SERVER_WINDOW_H
9 #define OFFSCREEN_SERVER_WINDOW_H
12 #include "ServerWindow.h"
15 class OffscreenServerWindow : public ServerWindow {
16 public:
17 OffscreenServerWindow(const char *title, ServerApp *app,
18 port_id clientPort, port_id looperPort,
19 int32 handlerID, ServerBitmap* bitmap);
20 virtual ~OffscreenServerWindow();
22 // util methods.
23 virtual void SendMessageToClient(const BMessage* msg,
24 int32 target = B_NULL_TOKEN,
25 bool usePreferred = false) const;
27 virtual ::Window* MakeWindow(BRect frame, const char* name,
28 window_look look, window_feel feel, uint32 flags,
29 uint32 workspace);
31 private:
32 ServerBitmap* fBitmap;
35 #endif // OFFSCREEN_SERVER_WINDOW_H