LibreOffice Module sd (master)
1
sd
source
ui
remotecontrol
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
26
namespace
sd
{
27
class
OSXNetworkService
:
public
ZeroconfService
28
{
29
private
:
30
OSXBonjourService
*
osxservice
;
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
{
39
osxservice
= [[
OSXBonjourService
alloc]
init
];
40
[
osxservice
publishImpressRemoteServiceOnLocalNetworkWithName:
@""
];
41
};
42
};
43
}
OSXNetworkService.h
ZeroconfService.hxx
init
FILE * init(int, char **)
sd::OSXNetworkService
Definition:
OSXNetworkService.hxx:28
sd::OSXNetworkService::OSXNetworkService
OSXNetworkService(const std::string &aname="", unsigned int aport=1599)
Definition:
OSXNetworkService.hxx:32
sd::OSXNetworkService::clear
void clear() override
Definition:
OSXNetworkService.hxx:35
sd::OSXNetworkService::osxservice
OSXBonjourService * osxservice
Definition:
OSXNetworkService.hxx:30
sd::OSXNetworkService::setup
void setup() override
Definition:
OSXNetworkService.hxx:38
sd::ZeroconfService
Definition:
ZeroconfService.hxx:30
OSXBonjourService
Definition:
OSXNetworkService.h:23
sd
Generated on Sun Jul 30 2023 04:27:22 for LibreOffice Module sd (master) by
1.9.3