/* * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include namespace Swift { class BlockListImpl : public BlockList { public: BlockListImpl(); virtual State getState() const { return state; } void setState(State state); virtual const std::vector& getItems() const { return items; } void setItems(const std::vector& newItems); void addItem(const JID& item); void removeItem(const JID& item); void addItems(const std::vector& items); void removeItems(const std::vector& items); void removeAllItems(); private: State state; std::vector items; }; }