xref: /haiku/src/add-ons/mail_daemon/inbound_protocols/imap/Settings.h (revision 17889a8c70dbb3d59c1412f6431968753c767bab)
1 /*
2  * Copyright 2011-2013, Axel Dörfler, axeld@pinc-software.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef SETTINGS_H
6 #define SETTINGS_H
7 
8 
9 #include <Message.h>
10 #include <NetworkAddress.h>
11 #include <Path.h>
12 
13 
14 class Settings {
15 public:
16 								Settings(const char* accountName,
17 									const BMessage& archive);
18 								~Settings();
19 
20 			BNetworkAddress		ServerAddress() const;
21 
22 			BString				Server() const;
23 			uint16				Port() const;
24 			bool				UseSSL() const;
25 
26 			BString				Username() const;
27 			BString				Password() const;
28 
29 			BPath				Destination() const;
30 
31 			int32				MaxConnections() const;
32 			bool				IdleMode() const;
33 			int32				BodyFetchLimit() const;
34 			bool				DeleteRemoteWhenLocal() const;
35 
36 private:
37 			const BMessage		fMessage;
38 			BString				fAccountName;
39 };
40 
41 
42 #endif	// SETTINGS_H
43