root/src/preferences/keymap/KeymapListItem.h
/*
 * Copyright 2004-2009 Haiku Inc. All rights reserved.
 * Distributed under the terms of the MIT License.
 *
 * Authors:
 *              Sandor Vroemisse
 *              Jérôme Duval
 */
#ifndef KEYMAP_LIST_ITEM_H
#define KEYMAP_LIST_ITEM_H


/*
 * A BStringItem modified so that it holds the BEntry object of the
 * corresponding keymap.
 */


#include <ListItem.h>
#include <Entry.h>


class KeymapListItem : public BStringItem {
public:
                                                                KeymapListItem(entry_ref& keymap,
                                                                        const char* name = NULL);

                        entry_ref&                      EntryRef() { return fKeymap; };

protected:
                        entry_ref                       fKeymap;
};

#endif  // KEYMAP_LIST_ITEM_H