summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-21 14:11:16 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-21 14:11:16 (GMT)
commiteed31ed4b074fc5ee7ef29d6a1f488d589251659 (patch)
treec001bcb24c5a1601ea2b7b2541d215e2ee036035 /Slimber/FileVCardCollection.cpp
parent358f741f45ac92d07b923afd51aeb39704277374 (diff)
downloadswift-eed31ed4b074fc5ee7ef29d6a1f488d589251659.zip
swift-eed31ed4b074fc5ee7ef29d6a1f488d589251659.tar.bz2
Use VCard to set name.
Diffstat (limited to 'Slimber/FileVCardCollection.cpp')
-rw-r--r--Slimber/FileVCardCollection.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Slimber/FileVCardCollection.cpp b/Slimber/FileVCardCollection.cpp
index 60be5c0..1568b33 100644
--- a/Slimber/FileVCardCollection.cpp
+++ b/Slimber/FileVCardCollection.cpp
@@ -1,14 +1,18 @@
#include "Slimber/FileVCardCollection.h"
+#include "Swiften/Elements/VCard.h"
namespace Swift {
FileVCardCollection::FileVCardCollection(boost::filesystem::path dir) : vcardsPath(dir) {
+ vcard = boost::shared_ptr<VCard>(new VCard());
}
boost::shared_ptr<VCard> FileVCardCollection::getOwnVCard() const {
+ return vcard;
}
-void FileVCardCollection::setOwnVCard(boost::shared_ptr<VCard> vcard) {
+void FileVCardCollection::setOwnVCard(boost::shared_ptr<VCard> v) {
+ vcard = v;
}
}