vfs: check userland buffers before reading them.
[haiku.git] / src / apps / packageinstaller / PackageTextViewer.h
blob76be4409c4862ac1e4e70aad2ef6a56f2dbcbb32
1 /*
2 * Copyright (c) 2007, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
5 * Author:
6 * Ɓukasz 'Sil2100' Zemczak <sil2100@vexillium.org>
7 */
8 #ifndef PACKAGETEXTVIEWER_H
9 #define PACKAGETEXTVIEWER_H
11 #include <View.h>
12 #include <TextView.h>
14 #include "BlockingWindow.h"
16 class PackageTextViewer : public BlockingWindow {
17 public:
18 PackageTextViewer(const char* text,
19 bool disclaimer = false);
21 virtual void MessageReceived(BMessage* message);
23 private:
24 void _InitView(const char *text, bool disclaimer);
28 #endif