summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-21 09:11:26 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-21 09:11:26 (GMT)
commitabba8740ba29f05eef23a826e3095214f51bd0a4 (patch)
tree49c9c176669c6ff41c266b36f4c0e5beb028ba5c /Slimber/Cocoa/Slimber.mm
parent1642d13e5e8d593a36ef1945387794e0d13247be (diff)
downloadswift-contrib-abba8740ba29f05eef23a826e3095214f51bd0a4.zip
swift-contrib-abba8740ba29f05eef23a826e3095214f51bd0a4.tar.bz2
Create Slimber controller.
Diffstat (limited to 'Slimber/Cocoa/Slimber.mm')
-rw-r--r--Slimber/Cocoa/Slimber.mm18
1 files changed, 18 insertions, 0 deletions
diff --git a/Slimber/Cocoa/Slimber.mm b/Slimber/Cocoa/Slimber.mm
new file mode 100644
index 0000000..4bf72fe
--- /dev/null
+++ b/Slimber/Cocoa/Slimber.mm
@@ -0,0 +1,18 @@
+#include "Slimber/Cocoa/Slimber.h"
+
+#include "Swiften/LinkLocal/AppleDNSSDService.h"
+#include "Slimber/Cocoa/Menulet.h"
+#include "Slimber/Server.h"
+
+using namespace Swift;
+
+Slimber::Slimber() {
+ dnsSDService = boost::shared_ptr<AppleDNSSDService>(new AppleDNSSDService());
+ server = new Server(5222, 5562, dnsSDService);
+ menulet = [[Menulet alloc] init];
+}
+
+Slimber::~Slimber() {
+ delete server;
+ [menulet release];
+}