summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/VCards')
-rw-r--r--Swiften/VCards/GetVCardRequest.h24
-rw-r--r--Swiften/VCards/VCardManager.cpp2
-rw-r--r--Swiften/VCards/VCardMemoryStorageFactory.h2
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
+}