00001 /* 00002 * Copyright (c) 2010 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/smart_ptr/make_shared.hpp> 00010 00011 #include <Swiften/Queries/GenericRequest.h> 00012 #include <Swiften/Elements/SecurityLabelsCatalog.h> 00013 00014 00015 namespace Swift { 00016 class GetSecurityLabelsCatalogRequest : public GenericRequest<SecurityLabelsCatalog> { 00017 public: 00018 typedef boost::shared_ptr<GetSecurityLabelsCatalogRequest> ref; 00019 00020 static ref create(const JID& recipient, IQRouter* router) { 00021 return ref(new GetSecurityLabelsCatalogRequest(recipient, router)); 00022 } 00023 00024 private: 00025 GetSecurityLabelsCatalogRequest( 00026 const JID& recipient, 00027 IQRouter* router) : 00028 GenericRequest<SecurityLabelsCatalog>( 00029 IQ::Get, JID(), boost::make_shared<SecurityLabelsCatalog>(recipient), router) { 00030 } 00031 }; 00032 }