1/*
2 * Copyright 2011, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Clemens Zeidler <haiku@clemens-zeidler.de>
7 */
8#ifndef MUSIC_COLLECTION_WINDOW_H
9#define MUSIC_COLLECTION_WINDOW_H
10
11
12#include <OutlineListView.h>
13#include <StringView.h>
14#include <TextControl.h>
15#include <Window.h>
16
17#include "MusicFileListView.h"
18
19
20class MusicCollectionWindow : public BWindow {
21public:
22								MusicCollectionWindow(BRect rect,
23									const char* name);
24	virtual						~MusicCollectionWindow();
25
26	virtual	bool				QuitRequested();
27	virtual void				MessageReceived(BMessage* message);
28
29private:
30			void				_StartNewQuery();
31			BQuery*				_CreateQuery(BString& queryString);
32
33			BTextControl*		fQueryField;
34			BStringView*		fCountView;
35			MusicFileListView*	fFileListView;
36
37			EntryViewInterface*	fEntryViewInterface;
38			QueryHandler*		fQueryHandler;
39			QueryReader*		fQueryReader;
40};
41
42#endif	// MUSIC_COLLECTION_WINDOW_H
43