vfs: check userland buffers before reading them.
[haiku.git] / src / apps / diskprobe / AttributeWindow.h
blob418434e5c93ca0254da204034ad2a596fd02a410
1 /*
2 ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the MIT License.
4 */
5 #ifndef ATTRIBUTE_WINDOW_H
6 #define ATTRIBUTE_WINDOW_H
9 #include "ProbeWindow.h"
11 class ProbeView;
12 class TypeEditorView;
15 class AttributeWindow : public ProbeWindow {
16 public:
17 AttributeWindow(BRect rect, entry_ref *ref, const char *attribute = NULL,
18 const BMessage *settings = NULL);
19 virtual ~AttributeWindow();
21 virtual void MessageReceived(BMessage *message);
22 virtual bool QuitRequested();
23 virtual bool Contains(const entry_ref &ref, const char *attribute);
25 private:
26 ProbeView *fProbeView;
27 TypeEditorView *fTypeEditorView;
28 char *fAttribute;
31 #endif /* ATTRIBUTE_WINDOW_H */