bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / remotecontrol / OSXNetworkService.hxx
blob4f84fd5944980d40f7f413d6e4345b9c712dc011
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9 #ifndef INCLUDED_SD_SOURCE_UI_REMOTECONTROL_OSXNETWORKSERVICE_HXX
10 #define INCLUDED_SD_SOURCE_UI_REMOTECONTROL_OSXNETWORKSERVICE_HXX
12 #include <errno.h>
13 #include <stdlib.h>
14 #include <string.h>
15 #include <algorithm>
16 #include <vector>
17 #include <iostream>
19 #include <osl/conditn.hxx>
20 #include <premac.h>
21 #import <CoreFoundation/CoreFoundation.h>
22 #include <postmac.h>
23 #import "OSXNetworkService.h"
25 #include "ZeroconfService.hxx"
27 namespace sd {
28 class OSXNetworkService : public ZeroconfService
30 private:
31 OSXBonjourService *osxservice;
32 public:
33 OSXNetworkService(const std::string& aname = "", unsigned int aport = 1599)
34 : ZeroconfService(aname, aport){}
36 void clear() SAL_OVERRIDE {
37 [osxservice dealloc];
39 void setup() SAL_OVERRIDE {
40 osxservice = [[OSXBonjourService alloc] init];
41 [osxservice publishImpressRemoteServiceOnLocalNetworkWithName: @""];
45 #endif