docs/ikteam: Delete most files.
[haiku.git] / src / preferences / sounds / HEventList.h
blobc68c9f59bcb807de9279305ba6eab1573d315f27
1 /*
2 * Copyright 2003-2008 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
5 * Authors:
6 * Jérôme Duval
7 * Oliver Ruiz Dorantes
8 * Atsushi Takamatsu
9 */
10 #ifndef __HEVENTLIST_H__
11 #define __HEVENTLIST_H__
14 #include <ColumnListView.h>
15 #include <String.h>
18 enum {
19 kEventColumn,
20 kSoundColumn,
24 class HEventRow : public BRow {
25 public:
26 HEventRow(const char* event_name,
27 const char* path);
28 virtual ~HEventRow();
30 const char* Name() const { return fName.String(); }
31 const char* Path() const { return fPath.String(); }
32 void Remove(const char* type);
33 void SetPath(const char* path);
35 private:
36 BString fName;
37 BString fPath;
41 enum {
42 M_EVENT_CHANGED = 'SCAG'
46 class HEventList : public BColumnListView {
47 public:
48 HEventList(const char* name = "EventList");
49 virtual ~HEventList();
50 void RemoveAll();
51 void SetType(const char* type);
52 void SetPath(const char* path);
54 protected:
55 virtual void SelectionChanged();
57 private:
58 char* fType;
62 #endif // __HEVENTLIST_H__