Re: [GSOC weekly update] iOS remote control

2013-06-11 Thread Andrzej J. R. Hunt
On 11/06/13 16:11, Tor Lillqvist wrote: > Actually I wonder why the thumbnails need to be Base64 encoded at all; > surely the communication is not going through any 7-bit > short-lines-of-text -enforcing channel;) Would it not be possible to > just pass the PNG (IIRC) bytes as such as a binary blob

Re: [GSOC weekly update] iOS remote control

2013-06-11 Thread Siqi Liu
Hello Tor, In fact, I've posed the same question when I see that base64 encoding thing... I'm not sure if that change anything if we also want some bluetooth transmission. For now I think I would stick to the existing protocol and focus on getting iOS remote to work as expected and then try to imp

Re: [GSOC weekly update] iOS remote control

2013-06-11 Thread Tor Lillqvist
Actually I wonder why the thumbnails need to be Base64 encoded at all; surely the communication is not going through any 7-bit short-lines-of-text -enforcing channel;) Would it not be possible to just pass the PNG (IIRC) bytes as such as a binary blob? Prefixed by information about its length, pres

Re: [GSOC weekly update] iOS remote control

2013-06-11 Thread Siqi Liu
Hello everyone, It seems that we can simply use plist to get the decoding done...and since we don't need encoding on the remote end, the problem was solved with this one-liner: [NSPropertyListSerialization propertyListWithData:[plist dataUsingEncoding: NSASCIIStringEncoding] options:0 format:NULL

Re: [GSOC weekly update] iOS remote control

2013-06-11 Thread Siqi Liu
Hello all, Thanks for your help, it's great to have many helping hands here :) I think I would write my own implementation since it doesn't seem to be really complicated... I will not create a separate utility class but instead add it to a category for NSData. I will test that today and let you k

Re: [GSOC weekly update] iOS remote control

2013-06-10 Thread Tor Lillqvist
> > > I faced this problem too and used boost :) > > I don't think we want to drag in boost in an otherwise clean Objective-C -only app. (Cédric's code at least includes a boost header, too.) --tml ___ LibreOffice mailing list LibreOffice@lists.freedeskt

Re: [GSOC weekly update] iOS remote control

2013-06-10 Thread Tor Lillqvist
> > > One last question: in order to do base64 decoding for the preview images, > I've used a base64 decoder which is under Public Domain License. Can we > include this kind of license in LibreOffice? I've reproduced the license > below. > > // Created by Kiichi Takeuchi on 4/20/10. > > // Copy

[GSOC weekly update] iOS remote control

2013-06-09 Thread Siqi Liu
Hello everyone, During the last week I've been working on getting the basic communication works between ios device and the libreoffice server. Here is the first weekly update for you. *[Current Progress]* For now, the iOS device can connect to a given ip address, send commands (pairing request, g