• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/AuthResponse.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 #include <boost/optional.hpp>
00011 
00012 #include <Swiften/Elements/Element.h>
00013 #include <Swiften/Base/SafeByteArray.h>
00014 
00015 namespace Swift {
00016   class AuthResponse : public Element {
00017     public:
00018       AuthResponse() {
00019       }
00020 
00021       AuthResponse(const SafeByteArray& value) : value(value) {
00022       }
00023 
00024       AuthResponse(const boost::optional<SafeByteArray>& value) : value(value) {
00025       }
00026 
00027       const boost::optional<SafeByteArray>& getValue() const {
00028         return value;
00029       }
00030 
00031       void setValue(const SafeByteArray& value) {
00032         this->value = boost::optional<SafeByteArray>(value);
00033       }
00034 
00035     private:
00036       boost::optional<SafeByteArray> value;
00037   };
00038 }

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