• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/SecurityLabel.h

00001 /*
00002  * Copyright (c) 2010 Remko Tronçon
00003  * Licensed under the GNU General Public License v3.
00004  * See Documentation/Licenses/GPLv3.txt for more information.
00005  */
00006 
00007 #pragma once
00008 
00009 #include <vector>
00010 
00011 #include <string>
00012 #include <Swiften/Elements/Payload.h>
00013 
00014 namespace Swift {
00015   class SecurityLabel : public Payload {
00016     public:
00017       typedef boost::shared_ptr<SecurityLabel> ref;
00018       SecurityLabel() {}
00019 
00020       const std::string& getDisplayMarking() const { return displayMarking_; }
00021 
00022       void setDisplayMarking(const std::string& displayMarking) { 
00023         displayMarking_ = displayMarking;
00024       }
00025 
00026       const std::string& getForegroundColor() const { 
00027         return foregroundColor_; 
00028       }
00029 
00030       void setForegroundColor(const std::string& foregroundColor) { 
00031         foregroundColor_ = foregroundColor;
00032       }
00033 
00034       const std::string& getBackgroundColor() const { 
00035         return backgroundColor_; 
00036       }
00037 
00038       void setBackgroundColor(const std::string& backgroundColor) { 
00039         backgroundColor_ = backgroundColor;
00040       }
00041 
00042       const std::string& getLabel() const { return label_; }
00043 
00044       void setLabel(const std::string& label) {
00045         label_ = label;
00046       }
00047 
00048       const std::vector<std::string>& getEquivalentLabels() const { return equivalentLabels_; }
00049 
00050       void addEquivalentLabel(const std::string& label) {
00051         equivalentLabels_.push_back(label);
00052       }
00053 
00054     private:
00055       std::string displayMarking_;
00056       std::string foregroundColor_;
00057       std::string backgroundColor_;
00058       std::string label_;
00059       std::vector<std::string> equivalentLabels_;
00060   };
00061 }

Generated on Fri Oct 12 2012 21:00:19 for Swiften by  doxygen 1.7.1