diff options
Diffstat (limited to 'Swiften/Queries/Requests')
-rw-r--r-- | Swiften/Queries/Requests/GetVCardRequest.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Swiften/Queries/Requests/GetVCardRequest.h b/Swiften/Queries/Requests/GetVCardRequest.h new file mode 100644 index 0000000..e403096 --- /dev/null +++ b/Swiften/Queries/Requests/GetVCardRequest.h @@ -0,0 +1,16 @@ +#pragma once + +#include <cassert> + +#include "Swiften/Queries/GenericRequest.h" +#include "Swiften/Elements/VCard.h" + +namespace Swift { + class GetVCardRequest : public GenericRequest<VCard> { + public: + GetVCardRequest(const JID& jid, IQRouter* router) : + GenericRequest<VCard>(IQ::Get, jid, boost::shared_ptr<Payload>(new VCard()), router) { + assert(jid.isBare()); + } + }; +} |