summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Slimber/CLI/main.cpp')
-rw-r--r--Slimber/CLI/main.cpp27
1 files changed, 5 insertions, 22 deletions
diff --git a/Slimber/CLI/main.cpp b/Slimber/CLI/main.cpp
index 287859b..d254cb1 100644
--- a/Slimber/CLI/main.cpp
+++ b/Slimber/CLI/main.cpp
@@ -4,35 +4,18 @@
* See Documentation/Licenses/GPLv3.txt for more information.
*/
-#include <string>
-#include <boost/bind.hpp>
-
-#include "Swiften/Base/Platform.h"
-#include "Slimber/Server.h"
-#include "Slimber/FileVCardCollection.h"
-#include "Swiften/LinkLocal/LinkLocalServiceBrowser.h"
-#include "Swiften/LinkLocal/DNSSD/DNSSDBrowseQuery.h"
-#include "Swiften/LinkLocal/DNSSD/DNSSDRegisterQuery.h"
-//#include "Swiften/LinkLocal/DNSSD/Bonjour/BonjourQuerier.h"
#include "Swiften/EventLoop/SimpleEventLoop.h"
-#include "Swiften/Application/Platform/PlatformApplication.h"
+#include "Slimber/CLI/DummyMenulet.h"
+#include "Slimber/MainController.h"
using namespace Swift;
int main() {
SimpleEventLoop eventLoop;
- /*
- boost::shared_ptr<BonjourQuerier> querier(new BonjourQuerier());
- querier->start();
- LinkLocalServiceBrowser browser(querier);
- browser.start();
- */
-
-/*
- FileVCardCollection vCardCollection(PlatformApplication("Slimber").getSettingsDir());
- Server server(5222, 5562, linkLocalRoster, dnsSDService, &vCardCollection);
- */
+ DummyMenulet menulet;
+ MainController controller(&menulet);
+
eventLoop.run();
return 0;
}