xref: /haiku/src/preferences/keymap/KeymapApplication.h (revision a10cf76ef5b9e8c726ebc47183abd6943023cf8f)
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 <storage/Entry.h>
20 
21 #define APP_SIGNATURE		"application/x-vnd.haiku.Keymap"
22 
23 class KeymapWindow;
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