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/main.cpp
parent358f741f45ac92d07b923afd51aeb39704277374 (diff)
downloadswift-contrib-eed31ed4b074fc5ee7ef29d6a1f488d589251659.zip
swift-contrib-eed31ed4b074fc5ee7ef29d6a1f488d589251659.tar.bz2
Use VCard to set name.
Diffstat (limited to 'Slimber/main.cpp')
-rw-r--r--Slimber/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Slimber/main.cpp b/Slimber/main.cpp
index 31ae15a..40f41c8 100644
--- a/Slimber/main.cpp
+++ b/Slimber/main.cpp
@@ -8,7 +8,10 @@
#include "Swiften/LinkLocal/AvahiDNSSDService.h"
#endif
#include "Slimber/Server.h"
+#include "Slimber/FileVCardCollection.h"
+#include "Swiften/LinkLocal/LinkLocalRoster.h"
#include "Swiften/EventLoop/SimpleEventLoop.h"
+#include "Swiften/Application/Platform/PlatformApplication.h"
using namespace Swift;
@@ -24,7 +27,11 @@ int main() {
new AvahiDNSSDService());
#endif
- Server server(5222, 5562, dnsSDService);
+ boost::shared_ptr<LinkLocalRoster> linkLocalRoster = boost::shared_ptr<LinkLocalRoster>(new LinkLocalRoster(dnsSDService));
+
+ FileVCardCollection vCardCollection(PlatformApplication("Slimber").getSettingsDir());
+
+ Server server(5222, 5562, linkLocalRoster, dnsSDService, &vCardCollection);
eventLoop.run();
return 0;
}