RemoteDrawingEngine: Reduce RP_READ_BITMAP result timeout.
[haiku.git] / src / preferences / mail / AutoConfigWindow.h
blob642b7c6f8b5f87645f49bcbf6a40077cda25aca5
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
10 #include <Box.h>
11 #include <Button.h>
12 #include <View.h>
13 #include <Window.h>
15 #include "MailSettings.h"
17 #include "AutoConfigView.h"
18 #include "ConfigWindow.h"
21 // message constants
22 const int32 kBackMsg = '?bac';
23 const int32 kOkMsg = '?bok';
26 class AutoConfigWindow : public BWindow {
27 public:
28 AutoConfigWindow(BRect rect,
29 ConfigWindow* parent);
30 ~AutoConfigWindow();
32 virtual void MessageReceived(BMessage* msg);
33 virtual bool QuitRequested(void);
35 private:
36 account_info fAccountInfo;
38 BMailAccountSettings*
39 GenerateBasicAccount();
41 BView* fContainerView;
42 ConfigWindow* fParentWindow;
43 BMailAccountSettings*
44 fAccount;
45 AutoConfigView* fMainView;
46 ServerSettingsView* fServerView;
47 BButton* fBackButton;
48 BButton* fNextButton;
50 bool fMainConfigState;
51 bool fServerConfigState;
52 bool fAutoConfigServer;
54 AutoConfig fAutoConfig;
58 #endif // AUTO_CONFIG_WINDOW_H