1// Copyright 1999, Be Incorporated. All Rights Reserved.
2// Copyright 2000-2004, Jun Suzuki. All Rights Reserved.
3// Copyright 2007, Stephan A��mus. All Rights Reserved.
4// This file may be used under the terms of the Be Sample Code License.
5#ifndef MEDIA_FILE_LIST_VIEW_H
6#define MEDIA_FILE_LIST_VIEW_H
7
8
9#include <Entry.h>
10#include <ListView.h>
11
12
13class BMediaFile;
14struct entry_ref;
15
16
17class MediaFileListItem : public BStringItem {
18public:
19				MediaFileListItem(BMediaFile* file, const entry_ref& ref);
20	virtual		~MediaFileListItem();
21
22	entry_ref	fRef;
23	BMediaFile*	fMediaFile;
24};
25
26
27class MediaFileListView : public BListView {
28public:
29								MediaFileListView();
30	virtual						~MediaFileListView();
31
32protected:
33	virtual void				KeyDown(const char *bytes, int32 numBytes);
34	virtual void				SelectionChanged();
35
36public:
37			bool				AddMediaItem(BMediaFile* file,
38									const entry_ref& ref);
39
40			void				SetEnabled(bool enabled);
41			bool				IsEnabled() const;
42
43private:
44			bool				fEnabled;
45};
46
47#endif //MEDIACONVERTER_H
48