[Libreoffice-commits] core.git: 2 commits - ios/iosremote sd/source
Siqi LIU
me at siqi.fr
Fri Jul 19 10:08:09 PDT 2013
ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard | 1
sd/source/ui/remotecontrol/DiscoveryService.mm | 1
sd/source/ui/remotecontrol/OSXNetworkService.h | 33 +++++++++
sd/source/ui/remotecontrol/OSXNetworkService.mm | 43 ++++++++++++
4 files changed, 77 insertions(+), 1 deletion(-)
New commits:
commit dcae25c5edf083b4beabcd91215df686d7aa24f6
Author: Siqi LIU <me at siqi.fr>
Date: Fri Jul 19 19:06:17 2013 +0200
server-end bonjour protocol implementation
Change-Id: I2676d5ebb7da232141769c44b7e5de13c257954d
diff --git a/sd/source/ui/remotecontrol/DiscoveryService.mm b/sd/source/ui/remotecontrol/DiscoveryService.mm
new file mode 100644
index 0000000..3cad7cd
--- /dev/null
+++ b/sd/source/ui/remotecontrol/DiscoveryService.mm
@@ -0,0 +1 @@
+#include "DiscoveryService.cxx"
\ No newline at end of file
diff --git a/sd/source/ui/remotecontrol/OSXNetworkService.h b/sd/source/ui/remotecontrol/OSXNetworkService.h
new file mode 100644
index 0000000..f0af0da
--- /dev/null
+++ b/sd/source/ui/remotecontrol/OSXNetworkService.h
@@ -0,0 +1,33 @@
+/* -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_OSXNETWORKSERVICE_H
+#define INCLUDED_OSXNETWORKSERVICE_H
+
+#include <sys/socket.h>
+#include <netinet/in.h>
+
+ #include <premac.h>
+ #import <CoreFoundation/CoreFoundation.h>
+ #import <Foundation/NSNetServices.h>
+ #import <Foundation/NSRunLoop.h>
+ #include <postmac.h>
+
+ at interface OSXNetworkService : NSObject<NSNetServiceDelegate>
+{
+ NSNetService *netService;
+}
+
+- (void) publishImpressRemoteServiceOnLocalNetworkWithName:(NSString *)sName;
+
+ at end
+
+#endif /* INCLUDED_OSXNETWORKSERVICE_H */
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sd/source/ui/remotecontrol/OSXNetworkService.mm b/sd/source/ui/remotecontrol/OSXNetworkService.mm
new file mode 100644
index 0000000..0cbfb3e
--- /dev/null
+++ b/sd/source/ui/remotecontrol/OSXNetworkService.mm
@@ -0,0 +1,43 @@
+/* -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+#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>
+ #import "OSXNetworkService.h"
+#include <postmac.h>
+
+ at implementation OSXNetworkService
+
+- (void) publishImpressRemoteServiceOnLocalNetworkWithName:(NSString *)sName
+{
+ netService = [[NSNetService alloc] initWithDomain:@"local" type:@"_impressremote._tcp" name:sName port:1599];
+
+ if (netService != nil)
+ {
+ [netService setDelegate:self];
+ [netService scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
+ [netService publish];
+ }
+}
+
+-(void)netService:(NSNetService *)aNetService
+ didNotPublish:(NSDictionary *)dict {
+ NSLog(@"Service did not publish: %@", dict);
+}
+
+- (void)dealloc {
+ [netService stop];
+ [netService release];
+ [super dealloc];
+}
+
+ at end
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
commit 6037852b701d42217e934eba4f1a53d1a7a6cfd1
Author: Siqi LIU <me at siqi.fr>
Date: Fri Jul 19 19:05:44 2013 +0200
plain tableview to grouped tableview
Change-Id: I561eaf841b04ab2eb7721b385689110a7191d2c1
diff --git a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard
index e03f4bf..e18dbff 100644
--- a/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard
+++ b/ios/iosremote/iosremote/en.lproj/iPhone_autoSize.storyboard
@@ -584,7 +584,6 @@
<class className="slideShowPreviewTable_vc" superclassName="UITableViewController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/slideShowPreviewTable_vc.h"/>
<relationships>
- <relationship kind="action" name="startPresentationAction:"/>
<relationship kind="outlet" name="optionsTable" candidateClass="UITableView"/>
</relationships>
</class>
More information about the Libreoffice-commits
mailing list