ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #05466
Re: [sdk] QR code support
Hi,
On Wednesday 04 December 2013 11:39:04 Sam Bull wrote:
> Any SDK devs have any comment on this? It would help guide the direction
> of development on our app, if we have an idea of whether this will
> happen or not.
I'm not a SDK dev but I'm the author of 2 apps with QR code scanning support
so I might be able to give some insight.
In my humble opinion, this is not critical enough to be addressed in the SDK
anytime soon given the other open work packages and issues there are still
around. However, feel free to reuse the code from Tagger and/or Authenticator.
It's quite simple, you just need to copy the classes you need and package them
up in a plugin (or register it through main.cpp).
Feel free to ping me in IRC for assistance if you run into troubles.
Hope that helps,
Michael
>
> On Fri, 2013-11-29 at 20:21 +0000, Sam Bull wrote:
> > As QR codes have become such a common integral part of phone apps, is
> > there any plan to support them in the SDK, so they don't need to be
> > reimplemented in each app?
> >
> > Obviously, there are two parts to this, so I'll give some ideas of what
> > I'm expecting.
> >
> > == Scanning a QR code ==
> > It would be useful to be able to scan QR codes from many different apps,
> > without needing to manually switch to another app.
> >
> > This could be implemented as an SDK element, so a QR code can be scanned
> > directly in the app.
> >
> > Another approach would be to launch an installed QR code app. This could
> > give more flexibility, as other apps might work with things other than
> > QR codes or have other features.
> >
> > For this approach, I would expect to be able to call something which
> >
> > opens the default scanner app, which should be able to open directly in
> > scanning mode, then return the result directly to the calling app as it
> > exits.
> >
> > == Generating a QR code ==
> > It would also be really great to have an SDK element that can generate a
> > QR code from some text. This could just inherit from Image or something.
> >
> > This could have a really simple interface, so it could be used something
> >
> > like:
> > QRCode {
> >
> > text: "Text to be encoded"
> >
> > }
> >
> > Obviously, the image would update whenever the text property is changed,
> > making it trivial to generate these.
References