Files
libreoffice/sd/source/ui/remotecontrol/OSXNetworkService.hxx
Siqi LIU 65134fb75c minor updates for avahi/bonjour refacotration
Change-Id: I89e0115ddbea953de4ee0468c66e949070087a96
2013-07-25 17:28:02 +02:00

38 lines
972 B
C++

#ifndef OSX_NETWORK_SERVICE_HXX
#define OSX_NETWORK_SERVICE_HXX
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <vector>
#include <iostream>
#include <osl/conditn.hxx> // Include this early to avoid error as check() gets defined by some SDK header to empty
#include <premac.h>
#import <CoreFoundation/CoreFoundation.h>
#include <postmac.h>
#import "OSXNetworkService.h"
#include "ZeroconfService.hxx"
namespace sd {
class OSXNetworkService : public ZeroconfService
{
private:
OSXBonjourService *osxservice;
public:
OSXNetworkService(const std::string& aname = "", unsigned int aport = 1599)
: ZeroconfService(aname, aport){}
void clear() {
[osxservice dealloc];
}
void setup() {
osxservice = [[OSXBonjourService alloc] init];
[osxservice publishImpressRemoteServiceOnLocalNetworkWithName: @""];
};
};
}
#endif