• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/MUCAdminPayload.h

00001 /*
00002  * Copyright (c) 2010 Kevin Smith
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 <boost/shared_ptr.hpp>
00011 #include <string>
00012 #include <vector>
00013 
00014 #include <Swiften/JID/JID.h>
00015 #include <Swiften/Elements/Payload.h>
00016 #include <Swiften/Elements/MUCOccupant.h>
00017 #include <Swiften/Elements/MUCItem.h>
00018 
00019 namespace Swift {
00020   class MUCAdminPayload : public Payload {
00021     public:
00022       typedef boost::shared_ptr<MUCAdminPayload> ref;
00023 
00024 
00025       MUCAdminPayload() {
00026       }
00027 
00028       void addItem(const MUCItem& item) {items_.push_back(item);}
00029 
00030       const std::vector<MUCItem>& getItems() const {return items_;}
00031 
00032     private:
00033       std::vector<MUCItem> items_;
00034   };
00035 }

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