tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sd / source / ui / remotecontrol / OSXNetworkService.hxx
blob78ab13eff8e1a02d55d8fd009bea3c132b0a1eab
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 #pragma once
11 #include <errno.h>
12 #include <stdlib.h>
13 #include <string.h>
14 #include <algorithm>
15 #include <vector>
16 #include <iostream>
18 #include <osl/conditn.hxx>
19 #include <premac.h>
20 #import <CoreFoundation/CoreFoundation.h>
21 #include <postmac.h>
22 #import "OSXNetworkService.h"
24 #include "ZeroconfService.hxx"
26 namespace sd {
27 class OSXNetworkService : public ZeroconfService
29 private:
30 OSXBonjourService *osxservice;
31 public:
32 OSXNetworkService(const std::string& aname = "", unsigned int aport = 1599)
33 : ZeroconfService(aname, aport){}
35 void clear() override {
36 [osxservice dealloc];
38 void setup() override {
39 osxservice = [[OSXBonjourService alloc] init];
40 [osxservice publishImpressRemoteServiceOnLocalNetworkWithName: @""];