LibreOffice Module sd (master) 1
OSXNetworkService.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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
10
11#include <errno.h>
12#include <stdlib.h>
13#include <string.h>
14#include <algorithm>
15#include <vector>
16#include <iostream>
17
18#include <osl/conditn.hxx>
19#include <premac.h>
20#import <CoreFoundation/CoreFoundation.h>
21#include <postmac.h>
22#import "OSXNetworkService.h"
23
24#include "ZeroconfService.hxx"
25
26namespace sd {
28 {
29 private:
31 public:
32 OSXNetworkService(const std::string& aname = "", unsigned int aport = 1599)
33 : ZeroconfService(aname, aport){}
34
35 void clear() override {
36 [osxservice dealloc];
37 }
38 void setup() override {
40 [osxservice publishImpressRemoteServiceOnLocalNetworkWithName: @""];
41 };
42 };
43}
FILE * init(int, char **)
OSXNetworkService(const std::string &aname="", unsigned int aport=1599)
OSXBonjourService * osxservice