1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
18 #include <osl/conditn.hxx>
20 #import <CoreFoundation/CoreFoundation.h>
22 #import "OSXNetworkService.h"
24 #include "ZeroconfService.hxx"
27 class OSXNetworkService
: public ZeroconfService
30 OSXBonjourService
*osxservice
;
32 OSXNetworkService(const std::string
& aname
= "", unsigned int aport
= 1599)
33 : ZeroconfService(aname
, aport
){}
35 void clear() override
{
38 void setup() override
{
39 osxservice
= [[OSXBonjourService alloc
] init
];
40 [osxservice publishImpressRemoteServiceOnLocalNetworkWithName
: @
""];