summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/SASL/DIGESTMD5Properties.h')
-rw-r--r--Swiften/SASL/DIGESTMD5Properties.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/Swiften/SASL/DIGESTMD5Properties.h b/Swiften/SASL/DIGESTMD5Properties.h
index d7be40b..a4d2d65 100644
--- a/Swiften/SASL/DIGESTMD5Properties.h
+++ b/Swiften/SASL/DIGESTMD5Properties.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010 Isode Limited.
+ * Copyright (c) 2010-2016 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
@@ -7,30 +7,31 @@
#pragma once
#include <map>
+#include <string>
+
#include <boost/optional.hpp>
-#include <string>
#include <Swiften/Base/API.h>
#include <Swiften/Base/ByteArray.h>
namespace Swift {
- class SWIFTEN_API DIGESTMD5Properties {
- public:
- DIGESTMD5Properties();
-
- boost::optional<std::string> getValue(const std::string& key) const;
+ class SWIFTEN_API DIGESTMD5Properties {
+ public:
+ DIGESTMD5Properties();
+
+ boost::optional<std::string> getValue(const std::string& key) const;
- void setValue(const std::string& key, const std::string& value);
+ void setValue(const std::string& key, const std::string& value);
- ByteArray serialize() const;
+ ByteArray serialize() const;
- static DIGESTMD5Properties parse(const ByteArray&);
+ static DIGESTMD5Properties parse(const ByteArray&);
- private:
- static bool isQuoted(const std::string& property);
+ private:
+ static bool isQuoted(const std::string& property);
- private:
- typedef std::multimap<std::string, ByteArray> DIGESTMD5PropertiesMap;
- DIGESTMD5PropertiesMap properties;
- };
+ private:
+ typedef std::multimap<std::string, ByteArray> DIGESTMD5PropertiesMap;
+ DIGESTMD5PropertiesMap properties;
+ };
}