/* * Copyright (c) 2011 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Swift { class IQRouter; class ClientBlockListManager { public: ClientBlockListManager(IQRouter *iqRouter); ~ClientBlockListManager(); bool isSupported() const; /** * Returns the blocklist. */ boost::shared_ptr getBlockList(); private: void handleBlockListReceived(boost::shared_ptr payload, ErrorPayload::ref); private: IQRouter* iqRouter; boost::shared_ptr > getRequest; boost::shared_ptr > blockResponder; boost::shared_ptr > unblockResponder; boost::shared_ptr blockList; }; }