diff options
Diffstat (limited to 'Swiften/Elements/StreamFeatures.h')
| -rw-r--r-- | Swiften/Elements/StreamFeatures.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Swiften/Elements/StreamFeatures.h b/Swiften/Elements/StreamFeatures.h index 26dc1ba..10563a9 100644 --- a/Swiften/Elements/StreamFeatures.h +++ b/Swiften/Elements/StreamFeatures.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -8,6 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | #include <vector> | 9 | #include <vector> |
| 10 | #include <string> | 10 | #include <string> |
| 11 | #include <boost/optional.hpp> | ||
| 11 | #include <boost/shared_ptr.hpp> | 12 | #include <boost/shared_ptr.hpp> |
| 12 | 13 | ||
| 13 | #include <Swiften/Base/API.h> | 14 | #include <Swiften/Base/API.h> |
| @@ -68,6 +69,14 @@ namespace Swift { | |||
| 68 | return !authenticationMechanisms_.empty(); | 69 | return !authenticationMechanisms_.empty(); |
| 69 | } | 70 | } |
| 70 | 71 | ||
| 72 | const boost::optional<std::string> getAuthenticationHostname() const { | ||
| 73 | return authenticationHostname_; | ||
| 74 | } | ||
| 75 | |||
| 76 | void setAuthenticationHostname(const boost::optional<std::string> authenticationHostname) { | ||
| 77 | authenticationHostname_ = authenticationHostname; | ||
| 78 | } | ||
| 79 | |||
| 71 | bool hasStreamManagement() const { | 80 | bool hasStreamManagement() const { |
| 72 | return hasStreamManagement_; | 81 | return hasStreamManagement_; |
| 73 | } | 82 | } |
| @@ -92,5 +101,6 @@ namespace Swift { | |||
| 92 | bool hasSession_; | 101 | bool hasSession_; |
| 93 | bool hasStreamManagement_; | 102 | bool hasStreamManagement_; |
| 94 | bool hasRosterVersioning_; | 103 | bool hasRosterVersioning_; |
| 104 | boost::optional<std::string> authenticationHostname_; | ||
| 95 | }; | 105 | }; |
| 96 | } | 106 | } |
Swift