xref: /haiku/src/preferences/keymap/KeymapListItem.h (revision 21258e2674226d6aa732321b6f8494841895af5f)
1 /*
2  * Copyright 2004-2009 Haiku Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Sandor Vroemisse
7  *		Jérôme Duval
8  */
9 #ifndef KEYMAP_LIST_ITEM_H
10 #define KEYMAP_LIST_ITEM_H
11 
12 
13 /*
14  * A BStringItem modified so that it holds the BEntry object of the
15  * corresponding keymap.
16  */
17 
18 
19 #include <ListItem.h>
20 #include <Entry.h>
21 
22 
23 class KeymapListItem : public BStringItem {
24 public:
25 								KeymapListItem(entry_ref& keymap,
26 									const char* name = NULL);
27 
28 			entry_ref&			EntryRef() { return fKeymap; };
29 
30 protected:
31 			entry_ref			fKeymap;
32 };
33 
34 #endif	// KEYMAP_LIST_ITEM_H
35