• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/BlockListPayload.h

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 <vector>
00010 
00011 #include <Swiften/JID/JID.h>
00012 #include <Swiften/Elements/Payload.h>
00013 
00014 namespace Swift {
00015   class BlockListPayload : public Payload {
00016     public:
00017       BlockListPayload() {
00018       }
00019 
00020       void addItem(const JID& item) {
00021         items.push_back(item);
00022       }
00023 
00024       const std::vector<JID>& getItems() const {
00025         return items;
00026       }
00027 
00028     private:
00029       std::vector<JID> items;
00030   };
00031 }

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