• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/JingleFileTransferHash.h

00001 /*
00002  * Copyright (c) 2011 Tobias Markmann
00003  * Licensed under the simplified BSD license.
00004  * See Documentation/Licenses/BSD-simplified.txt for more information.
00005  */
00006 
00007 #pragma once
00008 
00009 #include <boost/shared_ptr.hpp>
00010 #include <map>
00011 #include <string>
00012 
00013 #include <Swiften/Elements/JingleDescription.h>
00014 
00015 namespace Swift {
00016 
00017 class JingleFileTransferHash : public Payload {
00018 public:
00019   typedef std::map<std::string, std::string> HashesMap;
00020 public:
00021   typedef boost::shared_ptr<JingleFileTransferHash> ref;
00022 
00023   void setHash(const std::string& algo, const std::string& hash) {
00024     hashes[algo] = hash;
00025   }
00026 
00027   const HashesMap& getHashes() const {
00028     return hashes;
00029   }
00030 
00031 private:
00032   HashesMap hashes;
00033 };
00034   
00035 }

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