1/*
2 * Copyright (C) 2010 Stephan A��mus <superstippi@gmx.de>
3 * Copyright (C) 2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>
4 *
5 * Distributed under the terms of the MIT licence.
6 */
7#ifndef DOWNLOAD_PROGRESS_VIEW_H
8#define DOWNLOAD_PROGRESS_VIEW_H
9
10
11#include <GroupView.h>
12#include <Path.h>
13#include <String.h>
14
15class BEntry;
16class BStatusBar;
17class BStringView;
18class BWebDownload;
19class IconView;
20class SmallButton;
21
22
23enum {
24	SAVE_SETTINGS = 'svst'
25};
26
27
28class ApplicationView : public BGroupView {
29public:
30								ApplicationView(const char* name,
31									const char* icon,
32									const char* description);
33								ApplicationView(const BMessage* archive);
34
35			bool				Init(const BMessage* archive = NULL);
36
37	virtual	void				AttachedToWindow();
38	virtual	void				AllAttached();
39
40	virtual	void				Draw(BRect updateRect);
41
42	virtual	void				MessageReceived(BMessage* message);
43
44			void				ShowContextMenu(BPoint screenWhere);
45
46private:
47			IconView*			fIconView;
48			BStringView*		fNameView;
49			BStringView*		fInfoView;
50			SmallButton*		fTopButton;
51			SmallButton*		fBottomButton;
52};
53
54#endif // DOWNLOAD_PROGRESS_VIEW_H
55