2 * Copyright 2005, Jérôme Duval. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Inspired by SoundCapture from Be newsletter (Media Kit Basics: Consumers and Producers)
8 #ifndef SOUNDLISTVIEW_H
9 #define SOUNDLISTVIEW_H
13 class SoundListView
: public BListView
{
15 SoundListView(const BRect
& area
, const char * name
, uint32 resize
);
16 virtual ~SoundListView();
18 virtual void Draw(BRect updateRect
);
19 virtual void AttachedToWindow();
25 class SoundListItem
: public BStringItem
{
27 SoundListItem(const BEntry
& entry
, bool isTemp
);
28 virtual ~SoundListItem();
30 BEntry
& Entry() { return fEntry
; }
31 bool IsTemp() { return fIsTemp
; }
32 void SetTemp(bool isTemp
) { fIsTemp
= isTemp
; }
39 #endif /* SOUNDLISTVIEW_H */