diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-08-05 16:58:24 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-08-05 16:58:24 (GMT) |
commit | 1873eca1f2147fa18f03fdd849fdd73d1a012be1 (patch) | |
tree | 9a32b219c601940ae0741bd50434bfabec9a1402 /Slimber | |
parent | 8de45cd97339e94ae0dc120f068248b5795e118b (diff) | |
download | swift-contrib-1873eca1f2147fa18f03fdd849fdd73d1a012be1.zip swift-contrib-1873eca1f2147fa18f03fdd849fdd73d1a012be1.tar.bz2 |
Slimber: Use DNSSD factory.
Diffstat (limited to 'Slimber')
-rw-r--r-- | Slimber/MainController.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Slimber/MainController.cpp b/Slimber/MainController.cpp index baf032c..c8c2ad1 100644 --- a/Slimber/MainController.cpp +++ b/Slimber/MainController.cpp @@ -8,7 +8,7 @@ #include "Swiften/Application/Platform/PlatformApplication.h" #include "Swiften/LinkLocal/LinkLocalService.h" #include "Swiften/LinkLocal/LinkLocalServiceBrowser.h" -#include "Swiften/LinkLocal/DNSSD/Bonjour/BonjourQuerier.h" +#include "Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.h" #include "Slimber/Server.h" #include "Slimber/FileVCardCollection.h" #include "Slimber/MenuletController.h" @@ -21,7 +21,11 @@ MainController::MainController(Menulet* menulet) : menulet(menulet) { menuletController->onRestartRequested.connect(boost::bind( &MainController::handleRestartRequested, this)); - dnsSDQuerier = boost::shared_ptr<BonjourQuerier>(new BonjourQuerier()); + dnsSDQuerier = PlatformDNSSDQuerierFactory().createQuerier(); + if (!dnsSDQuerier) { + // TODO + assert(false); + } linkLocalServiceBrowser = new LinkLocalServiceBrowser(dnsSDQuerier); linkLocalServiceBrowser->onServiceAdded.connect( |