• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/DeliveryReceipt.h

00001 /*
00002  * Copyright (c) 2011 Tobias Markmann
00003  * Licensed under the BSD license.
00004  * See http://www.opensource.org/licenses/bsd-license.php for more information.
00005  */
00006 
00007 #pragma once
00008 
00009 #include <string>
00010 
00011 #include <string>
00012 
00013 #include <Swiften/Elements/Payload.h>
00014 
00015 namespace Swift {
00016 
00017 class DeliveryReceipt : public Payload {
00018   public:
00019     typedef boost::shared_ptr<DeliveryReceipt> ref;
00020 
00021   public:
00022     DeliveryReceipt() {}
00023 
00024     DeliveryReceipt(const std::string& msgId) : receivedID_(msgId) {}
00025 
00026     void setReceivedID(const std::string& msgId) {
00027       receivedID_ = msgId;
00028     }
00029 
00030     std::string getReceivedID() const {
00031       return receivedID_;
00032     }
00033 
00034   private:
00035     std::string receivedID_;
00036 };
00037 
00038 }

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