[Libreoffice-commits] core.git: 3 commits - ios/iosremote

siqi me at siqi.fr
Mon Jul 15 04:00:16 PDT 2013


 ios/iosremote/.DS_Store                                      |binary
 ios/iosremote/ic_launcher.psd                                |binary
 ios/iosremote/iosremote/Communication/CommunicationManager.m |   40 +++++++----
 3 files changed, 29 insertions(+), 11 deletions(-)

New commits:
commit a2e2873ac39a7882b1c596b12c402504ffb5a4d8
Author: siqi <me at siqi.fr>
Date:   Mon Jul 15 12:59:06 2013 +0200

    help button

diff --git a/ios/iosremote/.DS_Store b/ios/iosremote/.DS_Store
index 24bebe4..c8e6f9f 100644
Binary files a/ios/iosremote/.DS_Store and b/ios/iosremote/.DS_Store differ
diff --git a/ios/iosremote/iosremote/Communication/CommunicationManager.m b/ios/iosremote/iosremote/Communication/CommunicationManager.m
index 306b6c9..5538736 100644
--- a/ios/iosremote/iosremote/Communication/CommunicationManager.m
+++ b/ios/iosremote/iosremote/Communication/CommunicationManager.m
@@ -18,7 +18,7 @@
 
 #define ExistingServersKey @"CommunicationManager.ExistingServers"
 
- at interface CommunicationManager()
+ at interface CommunicationManager() <UIAlertViewDelegate>
 @end
 
 // Singlton Pattern
@@ -49,7 +49,7 @@
     if([[note name] isEqualToString:@"connection.status.connected"]){
         if (self.state!=CONNECTED){
             NSLog(@"Connected, waiting for pairing response");
-            // A 5 seconds timer waiting for pairing response. 
+            // A 5 seconds timer waiting for pairing response.
             [self.client startConnectionTimeoutTimerwithInterval:5.0];
             self.transmitter = [[CommandTransmitter alloc] initWithClient:self.client];
         }
@@ -61,8 +61,8 @@
             self.state = DISCONNECTED;
             dispatch_async(dispatch_get_main_queue(), ^{
                 UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"Failed to reach server"
-                                                                  message:@"Please verify the IP address and try again later"
-                                                                 delegate:nil
+                                                                  message:@"Please verify your IP address and make sure that LibreOffice Impress is running with impress remote feature enabled. "
+                                                                 delegate:self
                                                         cancelButtonTitle:@"OK"
                                                         otherButtonTitles:@"Help", nil];
                 [message show];
@@ -71,6 +71,24 @@
     }
 }
 
+- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
+    if (buttonIndex == 0){
+        [alertView dismissWithClickedButtonIndex:0 animated:YES];
+    }else if (buttonIndex == 1){
+        [alertView dismissWithClickedButtonIndex:0 animated:YES];
+        UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"Pairing instructions"
+                                                          message:@"1. Launch your LibreOffice Impress on your Computer\n\n"
+                                @"2. Enable Preferences - LibreOffice Impress - General - Enable remote control\n\n"
+                                @"3. Enable Preferences - LibreOffice Impress - Advanced - Enable Experimental Features\n\n"
+                                @"4. Make sure your Computer and your device are connected to the same WiFi network and Enter your Computer's IP address\n\n"
+                                @"5. Connect and Enjoy!\n\n"
+                                                         delegate:nil
+                                                cancelButtonTitle:@"OK"
+                                                otherButtonTitles:nil];
+        [message show];
+    }
+}
+
 - (id) init
 {
     self = [super init];
@@ -108,7 +126,7 @@
             self.servers = [[NSMutableArray alloc] initWithArray:oldSavedArray];
         else
             self.servers = [[NSMutableArray alloc] init];
-    } 
+    }
     return self;
 }
 
@@ -117,12 +135,12 @@
     if (self.state == CONNECTING) {
         return;
     } else {
-            [self.client disconnect];
-            self.state = CONNECTING;
-            // initialise it with a given server
-            self.client = [[Client alloc]initWithServer:server managedBy:self interpretedBy:self.interpreter];
-            self.transmitter = [[CommandTransmitter alloc] initWithClient:self.client];
-            [self.client connect];
+        [self.client disconnect];
+        self.state = CONNECTING;
+        // initialise it with a given server
+        self.client = [[Client alloc]initWithServer:server managedBy:self interpretedBy:self.interpreter];
+        self.transmitter = [[CommandTransmitter alloc] initWithClient:self.client];
+        [self.client connect];
     }
 }
 
commit bd3bbccd59e0f7b67d4082228fe45bfa763fc3f4
Author: siqi <me at siqi.fr>
Date:   Mon Jul 15 12:54:40 2013 +0200

    icon psd

diff --git a/ios/iosremote/ic_launcher.psd b/ios/iosremote/ic_launcher.psd
new file mode 100644
index 0000000..508d947
Binary files /dev/null and b/ios/iosremote/ic_launcher.psd differ
commit eb853a93643cefe6d531004dfbea9b0927123000
Author: siqi <me at siqi.fr>
Date:   Mon Jul 15 12:54:02 2013 +0200

    conflict

diff --git a/ios/iosremote/.DS_Store b/ios/iosremote/.DS_Store
index 493f094..24bebe4 100644
Binary files a/ios/iosremote/.DS_Store and b/ios/iosremote/.DS_Store differ


More information about the Libreoffice-commits mailing list