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 35 private: 36 const BMessage fMessage; 37 BString fAccountName; 38 }; 39 40 41 #endif // SETTINGS_H 42