diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-21 19:44:13 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-21 19:54:06 (GMT) |
commit | bbb77132775e69b6df7df4ddf38a429aff733d2b (patch) | |
tree | a512aaa8292ea4afe175446d672261921c2d27c0 /Swiften/VCards | |
parent | 4943167a6451d7a483a2aacb5f3f2bebb82adf0d (diff) | |
download | swift-contrib-bbb77132775e69b6df7df4ddf38a429aff733d2b.zip swift-contrib-bbb77132775e69b6df7df4ddf38a429aff733d2b.tar.bz2 |
Moving queries & responders around.
Diffstat (limited to 'Swiften/VCards')
-rw-r--r-- | Swiften/VCards/GetVCardRequest.h | 24 | ||||
-rw-r--r-- | Swiften/VCards/VCardManager.cpp | 2 | ||||
-rw-r--r-- | Swiften/VCards/VCardMemoryStorageFactory.h | 2 |
3 files changed, 26 insertions, 2 deletions
diff --git a/Swiften/VCards/GetVCardRequest.h b/Swiften/VCards/GetVCardRequest.h new file mode 100644 index 0000000..2c40cd1 --- /dev/null +++ b/Swiften/VCards/GetVCardRequest.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include "Swiften/Queries/GenericRequest.h" +#include "Swiften/Elements/VCard.h" +#include "Swiften/Base/Shared.h" + +namespace Swift { + class GetVCardRequest : public GenericRequest<VCard>, public Shared<GetVCardRequest> { + public: + static ref create(const JID& jid, IQRouter* router) { + return ref(new GetVCardRequest(jid, router)); + } + + private: + GetVCardRequest(const JID& jid, IQRouter* router) : GenericRequest<VCard>(IQ::Get, jid, boost::shared_ptr<Payload>(new VCard()), router) { + } + }; +} diff --git a/Swiften/VCards/VCardManager.cpp b/Swiften/VCards/VCardManager.cpp index c189717..5c26635 100644 --- a/Swiften/VCards/VCardManager.cpp +++ b/Swiften/VCards/VCardManager.cpp @@ -10,7 +10,7 @@ #include "Swiften/JID/JID.h" #include "Swiften/VCards/VCardStorage.h" -#include "Swiften/Queries/Requests/GetVCardRequest.h" +#include "Swiften/VCards/GetVCardRequest.h" namespace Swift { diff --git a/Swiften/VCards/VCardMemoryStorageFactory.h b/Swiften/VCards/VCardMemoryStorageFactory.h index 4b4d2c0..d48794d 100644 --- a/Swiften/VCards/VCardMemoryStorageFactory.h +++ b/Swiften/VCards/VCardMemoryStorageFactory.h @@ -21,4 +21,4 @@ namespace Swift { return new VCardMemoryStorage(); } }; -}
\ No newline at end of file +} |