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