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 <Swiften/Queries/GenericRequest.h> 00010 #include <Swiften/Elements/VCard.h> 00011 00012 00013 namespace Swift { 00014 class SetVCardRequest : public GenericRequest<VCard> { 00015 public: 00016 typedef boost::shared_ptr<SetVCardRequest> ref; 00017 00018 static ref create(VCard::ref vcard, IQRouter* router) { 00019 return ref(new SetVCardRequest(vcard, router)); 00020 } 00021 00022 private: 00023 SetVCardRequest(VCard::ref vcard, IQRouter* router) : GenericRequest<VCard>(IQ::Set, JID(), vcard, router) { 00024 } 00025 }; 00026 }