1/*
2 * Copyright 2011, Haiku, Inc. All rights reserved.
3 * Copyright 2011, Clemens Zeidler <haiku@clemens-zeidler.de>
4 * Distributed under the terms of the MIT License.
5 */
6#ifndef FOLDER_CONFIG_WINDOW_H
7#define FOLDER_CONFIG_WINDOW_H
8
9
10#include <ListView.h>
11#include <StringView.h>
12#include <Window.h>
13
14#include <MailSettings.h>
15
16#include "Protocol.h"
17#include "Settings.h"
18
19
20class FolderConfigWindow : public BWindow {
21public:
22								FolderConfigWindow(BRect rect,
23									const BMessage& settings);
24
25			void				MessageReceived(BMessage* message);
26
27private:
28			void				_LoadFolders();
29			void				_ApplyChanges();
30
31private:
32			const Settings		fSettings;
33			IMAP::Protocol		fProtocol;
34			IMAP::FolderList	fFolderList;
35
36			BStringView*		fQuotaView;
37			BListView*			fFolderListView;
38};
39
40
41#endif // FOLDER_CONFIG_WINDOW_H
42