xref: /haiku/src/preferences/mail/AutoConfigWindow.h (revision 2b76973fa2401f7a5edf68e6470f3d3210cbcff3)
1 /*
2  * Copyright 2007-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 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 class AutoConfigWindow : public BWindow
26 {
27 public:
28 							AutoConfigWindow(BRect rect, ConfigWindow *parent);
29 							~AutoConfigWindow();
30 		virtual void		MessageReceived(BMessage *msg);
31 		virtual bool		QuitRequested(void);
32 
33 private:
34 		account_info 		fAccountInfo;
35 
36 		BMailAccountSettings*	GenerateBasicAccount();
37 
38 		BView				*fRootView;
39 		BRect				fBoxRect;
40 		ConfigWindow		*fParentWindow;
41 		BMailAccountSettings	*fAccount;
42 		AutoConfigView		*fMainView;
43 		ServerSettingsView	*fServerView;
44 		BButton				*fBackButton;
45 		BButton				*fNextButton;
46 
47 		bool				fMainConfigState;
48 		bool				fServerConfigState;
49 		bool				fAutoConfigServer;
50 
51 		AutoConfig			fAutoConfig;
52 };
53 
54 
55 
56 #endif