xref: /haiku/src/preferences/keymap/KeymapListItem.h (revision cda5b8808fd0262f0fac472f6cfa809f846a83cf)
1 /*
2  * Copyright 2004-2006 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 
10 /*
11  * A BStringItem modified such that it holds
12  * the BEntry object it corresponds with
13  */
14 
15 #ifndef KEYMAP_LIST_ITEM_H
16 #define KEYMAP_LIST_ITEM_H
17 
18 #include <ListItem.h>
19 #include <Entry.h>
20 
21 class KeymapListItem : public BStringItem {
22 public:
23 	KeymapListItem( entry_ref &keymap, const char* name = NULL);
24 	entry_ref & KeymapEntry() { return fKeymap; };
25 
26 protected:
27 	entry_ref	fKeymap;
28 };
29 
30 #endif //KEYMAP_LIST_ITEM_H
31