diff options
Diffstat (limited to 'Swiften/Elements/SecurityLabel.h')
| -rw-r--r-- | Swiften/Elements/SecurityLabel.h | 93 | 
1 files changed, 54 insertions, 39 deletions
diff --git a/Swiften/Elements/SecurityLabel.h b/Swiften/Elements/SecurityLabel.h index a1714c8..fcaa610 100644 --- a/Swiften/Elements/SecurityLabel.h +++ b/Swiften/Elements/SecurityLabel.h @@ -1,61 +1,76 @@  /* - * Copyright (c) 2010 Remko Tronçon - * Licensed under the GNU General Public License v3. - * See Documentation/Licenses/GPLv3.txt for more information. + * Copyright (c) 2010-2017 Isode Limited. + * All rights reserved. + * See the COPYING file for more information.   */  #pragma once +#include <string>  #include <vector> -#include <string> +#include <Swiften/Base/API.h>  #include <Swiften/Elements/Payload.h>  namespace Swift { -	class SecurityLabel : public Payload { -		public: -			typedef boost::shared_ptr<SecurityLabel> ref; -			SecurityLabel() {} +    class SWIFTEN_API SecurityLabel : public Payload { +        public: +            using ref = std::shared_ptr<SecurityLabel>; + +            SecurityLabel(); + +            virtual ~SecurityLabel(); + +            const std::vector< std::string >& getEquivalentLabels() const { +                return equivalentLabels; +            } + +            void setEquivalentLabels(const std::vector< std::string >& value) { +                this->equivalentLabels = value ; +            } -			const std::string& getDisplayMarking() const { return displayMarking_; } +            void addEquivalentLabel(const std::string& value) { +                this->equivalentLabels.push_back(value); +            } -			void setDisplayMarking(const std::string& displayMarking) {  -				displayMarking_ = displayMarking; -			} +            const std::string& getForegroundColor() const { +                return foregroundColor; +            } -			const std::string& getForegroundColor() const {  -				return foregroundColor_;  -			} +            void setForegroundColor(const std::string& value) { +                this->foregroundColor = value ; +            } -			void setForegroundColor(const std::string& foregroundColor) {  -				foregroundColor_ = foregroundColor; -			} +            const std::string& getDisplayMarking() const { +                return displayMarking; +            } -			const std::string& getBackgroundColor() const {  -				return backgroundColor_;  -			} +            void setDisplayMarking(const std::string& value) { +                this->displayMarking = value ; +            } -			void setBackgroundColor(const std::string& backgroundColor) {  -				backgroundColor_ = backgroundColor; -			} +            const std::string& getBackgroundColor() const { +                return backgroundColor; +            } -			const std::string& getLabel() const { return label_; } +            void setBackgroundColor(const std::string& value) { +                this->backgroundColor = value ; +            } -			void setLabel(const std::string& label) { -				label_ = label; -			} +            const std::string& getLabel() const { +                return label; +            } -			const std::vector<std::string>& getEquivalentLabels() const { return equivalentLabels_; } +            void setLabel(const std::string& value) { +                this->label = value ; +            } -			void addEquivalentLabel(const std::string& label) { -				equivalentLabels_.push_back(label); -			} -		private: -			std::string displayMarking_; -			std::string foregroundColor_; -			std::string backgroundColor_; -			std::string label_; -			std::vector<std::string> equivalentLabels_; -	}; +        private: +            std::vector< std::string > equivalentLabels; +            std::string foregroundColor; +            std::string displayMarking; +            std::string backgroundColor; +            std::string label; +    };  }  | 
 Swift