00001
00002
00003
00004
00005
00006
00007 #pragma once
00008
00009 #include <boost/shared_ptr.hpp>
00010 #include <vector>
00011
00012 #include <Swiften/Elements/JingleDescription.h>
00013 #include <Swiften/Elements/StreamInitiationFileInfo.h>
00014
00015 namespace Swift {
00016 class JingleFileTransferDescription : public JingleDescription {
00017 public:
00018 typedef boost::shared_ptr<JingleFileTransferDescription> ref;
00019
00020 void addOffer(const StreamInitiationFileInfo& offer) {
00021 offers.push_back(offer);
00022 }
00023
00024
00025 const std::vector<StreamInitiationFileInfo>& getOffers() const {
00026 return offers;
00027 }
00028
00029 void addRequest(const StreamInitiationFileInfo& request) {
00030 reqeusts.push_back(request);
00031 }
00032
00033 const std::vector<StreamInitiationFileInfo>& getRequests() const {
00034 return reqeusts;
00035 }
00036
00037 private:
00038 std::vector<StreamInitiationFileInfo> offers;
00039 std::vector<StreamInitiationFileInfo> reqeusts;
00040 };
00041 }