vfs: check userland buffers before reading them.
[haiku.git] / src / preferences / keymap / KeymapApplication.h
blob2f73ca2cabeecc1f681140d5d241acc11bf9ad45
1 /*
2 * Copyright 2004-2014 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Jérôme Duval
7 * John Scipione, jscipione@gmail.com
8 * Sandor Vroemisse
9 */
10 #ifndef KEYMAP_APPLICATION_H
11 #define KEYMAP_APPLICATION_H
14 #include "KeymapWindow.h"
16 #include <Application.h>
17 #include <Catalog.h>
18 #include <Entry.h>
19 #include <Locale.h>
21 #include "ModifierKeysWindow.h"
24 static const uint32 kMsgShowModifierKeysWindow = 'smkw';
25 static const uint32 kMsgCloseModifierKeysWindow = 'hmkw';
26 static const uint32 kMsgUpdateModifierKeys = 'umod';
27 static const uint32 kMsgUpdateNormalKeys = 'ukey';
30 class KeymapApplication : public BApplication {
31 public:
32 KeymapApplication();
34 void MessageReceived(BMessage* message);
35 bool UseKeymap(BEntry* keymap);
37 protected:
38 void _ShowModifierKeysWindow();
40 private:
41 KeymapWindow* fWindow;
42 ModifierKeysWindow* fModifierKeysWindow;
46 #endif // KEYMAP_APPLICATION_H