vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / filetypes / NewFileTypeWindow.h
blob37d52c77f3c9f5d0a32978941e68c96eec5d566d
1 /*
2 * Copyright 2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef NEW_FILE_TYPE_WINDOW_H
6 #define NEW_FILE_TYPE_WINDOW_H
9 #include <Messenger.h>
10 #include <Window.h>
12 class BButton;
13 class BMenu;
14 class BTextControl;
16 class FileTypesWindow;
19 class NewFileTypeWindow : public BWindow {
20 public:
21 NewFileTypeWindow(FileTypesWindow* target, const char* currentType);
22 virtual ~NewFileTypeWindow();
24 virtual void MessageReceived(BMessage* message);
25 virtual bool QuitRequested();
27 private:
28 BMessenger fTarget;
29 BMenu* fSupertypesMenu;
30 BTextControl* fNameControl;
31 BButton* fAddButton;
34 #endif // NEW_FILE_TYPE_WINDOW_H