1/*
2 * Copyright 2007-2011, Haiku, Inc. All rights reserved.
3 * Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved.
4 * Copyright 2011, Clemens Zeidler <haiku@clemens-zeidler.de>
5 * Distributed under the terms of the MIT License.
6 */
7#ifndef CONFIG_VIEWS_H
8#define CONFIG_VIEWS_H
9
10
11#include <Box.h>
12#include <image.h>
13
14#include "MailSettings.h"
15#include <ProtocolConfigView.h>
16#include "FilterConfigView.h"
17
18
19class BTextControl;
20class BListView;
21class BMenuField;
22class BButton;
23struct entry_ref;
24
25
26class ProtocolsConfigView;
27
28
29BView* CreateConfigView(entry_ref addon, MailAddonSettings& settings,
30	BMailAccountSettings& accountSettings, image_id* image);
31
32
33class AccountConfigView : public BBox {
34public:
35								AccountConfigView(BRect rect,
36									BMailAccountSettings *account);
37
38	virtual void				DetachedFromWindow();
39	virtual void				AttachedToWindow();
40	virtual void				MessageReceived(BMessage *msg);
41
42			void				UpdateViews();
43
44private:
45			BTextControl*		fNameControl;
46			BTextControl*		fRealNameControl;
47			BTextControl*		fReturnAddressControl;
48			BMailAccountSettings	*fAccount;
49};
50
51
52class InProtocolsConfigView : public BBox {
53public:
54								InProtocolsConfigView(
55									BMailAccountSettings* account);
56
57			void 				DetachedFromWindow();
58private:
59			BMailAccountSettings*	fAccount;
60			BView*				fConfigView;
61			image_id			fImageID;
62};
63
64
65class OutProtocolsConfigView : public BBox {
66public:
67								OutProtocolsConfigView(
68									BMailAccountSettings* account);
69			void 				DetachedFromWindow();
70private:
71			BMailAccountSettings*	fAccount;
72			BView*				fConfigView;
73			image_id			fImageID;
74};
75
76
77#endif	/* CONFIG_VIEWS_H */
78