libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / apps / soundrecorder / SoundListView.h
blob9ce078e90ae3cd1e0c5759fb47506a1b788de207
1 /*
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)
6 */
8 #ifndef SOUNDLISTVIEW_H
9 #define SOUNDLISTVIEW_H
11 #include <ListView.h>
13 class SoundListView : public BListView {
14 public:
15 SoundListView(const BRect & area, const char * name, uint32 resize);
16 virtual ~SoundListView();
18 virtual void Draw(BRect updateRect);
19 virtual void AttachedToWindow();
23 #include <ListItem.h>
25 class SoundListItem : public BStringItem {
26 public:
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; }
33 private:
34 BEntry fEntry;
35 bool fIsTemp;
39 #endif /* SOUNDLISTVIEW_H */