2 * Copyright 2007-2012, 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.
7 #ifndef FILTER_CONFIG_VIEW_H
8 #define FILTER_CONFIG_VIEW_H
16 #include <MailSettings.h>
18 #include <MenuField.h>
20 #include "FilterList.h"
23 class FilterSettingsView
;
26 class FiltersConfigView
: public BBox
{
29 BMailAccountSettings
& account
);
32 void AttachedToWindow();
33 void DetachedFromWindow();
34 void MessageReceived(BMessage
*msg
);
37 BMailProtocolSettings
* _MailSettings();
38 ::FilterList
* _FilterList();
40 void _SelectFilter(int32 index
);
41 void _SetDirection(direction direction
);
42 void _SaveConfig(int32 index
);
45 BMailAccountSettings
& fAccount
;
48 ::FilterList fInboundFilters
;
49 ::FilterList fOutboundFilters
;
51 BMenuField
* fChainsField
;
53 BMenuField
* fAddField
;
54 BButton
* fRemoveButton
;
55 FilterSettingsView
* fFilterView
;
61 #endif // FILTER_CONFIG_VIEW_H