summaryrefslogtreecommitdiffstats
blob: 4bf72fef385689ce20638361027b079e8b1b7cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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];
}