• Main Page
  • Classes
  • Files
  • File List

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

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