xref: /haiku/src/preferences/mail/AutoConfigWindow.h (revision c302a243e15e640fae0f689e32cdf0c18749afee)
1 /*
2  * Copyright 2007-2015, 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 AUTO_CONFIG_WINDOW_H
7 #define AUTO_CONFIG_WINDOW_H
8 
9 
10 #include <Box.h>
11 #include <Button.h>
12 #include <View.h>
13 #include <Window.h>
14 
15 #include "MailSettings.h"
16 
17 #include "AutoConfigView.h"
18 #include "ConfigWindow.h"
19 
20 
21 // message constants
22 const int32	kBackMsg = '?bac';
23 const int32	kOkMsg = '?bok';
24 
25 
26 class AutoConfigWindow : public BWindow {
27 public:
28 								AutoConfigWindow(BRect rect,
29 									ConfigWindow* parent);
30 								~AutoConfigWindow();
31 
32 	virtual void				MessageReceived(BMessage* msg);
33 	virtual bool				QuitRequested(void);
34 
35 private:
36 			account_info 		fAccountInfo;
37 
38 			BMailAccountSettings*
39 								GenerateBasicAccount();
40 
41 			BView*				fContainerView;
42 			ConfigWindow*		fParentWindow;
43 			BMailAccountSettings*
44 								fAccount;
45 			AutoConfigView*		fMainView;
46 			ServerSettingsView*	fServerView;
47 			BButton*			fBackButton;
48 			BButton*			fNextButton;
49 
50 			bool				fMainConfigState;
51 			bool				fServerConfigState;
52 			bool				fAutoConfigServer;
53 
54 			AutoConfig			fAutoConfig;
55 };
56 
57 
58 #endif	// AUTO_CONFIG_WINDOW_H
59