xref: /haiku/src/preferences/keymap/KeymapApplication.h (revision a2618d1f2218bf54e257ec947440a81a8b0bc113)
1 // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
2 //
3 //	Copyright (c) 2004, Haiku
4 //
5 //  This software is part of the Haiku distribution and is covered
6 //  by the Haiku license.
7 //
8 //
9 //  File:        KeymapApplication.h
10 //  Author:      Sandor Vroemisse, Jérôme Duval
11 //  Description: Keymap Preferences
12 //  Created :    July 12, 2004
13 //
14 // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
15 
16 #ifndef KEYMAP_APPLICATION_H
17 #define KEYMAP_APPLICATION_H
18 
19 #include <Application.h>
20 #include <Entry.h>
21 #include "KeymapWindow.h"
22 
23 #define APP_SIGNATURE		"application/x-vnd.haiku.Keymap"
24 
25 class KeymapApplication : public BApplication {
26 public:
27 	KeymapApplication();
28 	void	MessageReceived(BMessage *message);
29 
30 	bool	UseKeymap( BEntry *keymap );
31 
32 protected:
33 	KeymapWindow		*fWindow;
34 
35 	bool 	IsValidKeymap( BFile *inFile );
36 	int		NotifyInputServer();
37 
38 };
39 
40 #endif // KEYMAP_APPLICATION_H
41