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