00001 /* 00002 * Copyright (c) 2011 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/shared_ptr.hpp> 00010 #include <string> 00011 00012 #include <Swiften/Elements/JingleTransportPayload.h> 00013 00014 namespace Swift { 00015 class JingleIBBTransportPayload : public JingleTransportPayload { 00016 public: 00017 typedef boost::shared_ptr<JingleIBBTransportPayload> ref; 00018 00019 enum StanzaType { 00020 IQStanza, 00021 MessageStanza, 00022 }; 00023 00024 void setStanzaType(StanzaType stanzaType) { 00025 this->stanzaType = stanzaType; 00026 } 00027 00028 StanzaType getStanzaType() const { 00029 return stanzaType; 00030 } 00031 00032 int getBlockSize() const { 00033 return blockSize; 00034 } 00035 00036 void setBlockSize(int blockSize) { 00037 this->blockSize = blockSize; 00038 } 00039 00040 private: 00041 int blockSize; 00042 StanzaType stanzaType; 00043 }; 00044 }