summaryrefslogtreecommitdiffstats
blob: e6bedf7ab9e7873262ec173899f3b6e91525a968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <boost/enable_shared_from_this.hpp>
#include <boost/thread.hpp>

#include "Swiften/LinkLocal/DNSSDService.h"
#include "Swiften/EventLoop/EventOwner.h"

namespace Swift {
	class AppleDNSSDService : public DNSSDService, public EventOwner, public boost::enable_shared_from_this<AppleDNSSDService> {
		public:
			AppleDNSSDService();
			~AppleDNSSDService();

			virtual void publishService(const std::map<String,String> properties);
			virtual void start();
			virtual void stop();

		private:
			void doStart();

		private:
			boost::thread* thread;
			bool stopRequested;
	};
}