Documente Academic
Documente Profesional
Documente Cultură
Pekka Kosonen
Head Of Technology Development
Nokia
In the year 2010
- Hybrid application?
Always connected?
Mashup_(web_application_hybrid)
A web page or application that combines data or functionality
from two or more external sources to create a new service.
Mashups and portals are both content aggregation technologies.
Web pages -> Web sites -> Dynamic web sites -> Server-
driven/Database driven Web Sites -> Web Applications
Hybrid is the next logical step
More program than web site
Greater interaction with the end user's computer/OS
The ability to operate without an internet connection present
“best of both worlds"
Today
Adobe AIR
Adobe AIR is a standalone runtime library
Web Runtimes
Many vendors provide web runtimes
Usually a sandbox environment where you can plugin web widgets
Some amount of platform services offered
Microsoft Silverlight
Web browser plug-in that follows along the lines of Flash
Designed to be an application platform from day one
HTML5 Portability
Ease Speed
JavaScript
Resource pool
WebKit Innovation
…but the real world is still
fragmented and not complete
Security Speed
UX
Install base
Discoverability
Continued googling...
Found out that there’s a presentation coming about hybrid applications.
Need to go there!
http://www.see2009.org/page.cfm/action=Seminars/SeminarID=145
Always connected?
Doesn’t need to be connected.
Hybrid Development
Environment
Un
at Are
Easy
ta a
in Qt context
in
WRT
ab
le
Easily approachable web technologies Difficult
Qt C++
Public
Interact with Web Services
QtWebKit allows
Intuitive use of network resources,
Easy to embed web content into an application
Exposing QWidget to HTML
and QObject to JavaScript
Calling JavaScript from Qt and vice versa
Content may be enhanced with native controls
JS
Qt
OS specific
APIs
function setStatus() {
twit.updateStatus( statusupdate.text );
Javascript }
statusupdate.returnPressed.connect(this,setStatu
s);
Platform
Services
Native APIs
Platform
Services
implementation Accessing Native APIs through JS
Download the core of the hybrid app
Statistics:
300 lines of Qt code
Size of .sis file: 20 kB
Development time: approx. 5 hours
HTML, CSS,
JavaScript
Extendability – The features what are offered out of the box are
NEVER enough. You want to extend and we’ll let you.
UI libraries – easy to use nice looking stuff (TODO show flickr demo
and refer to declarative UI)
Security
Architecture - Yes we have some!
Framework
From us
QWebView running
Webkit
From real
developers
Qt script The hybrid app’s core
generator – JS, html,..
pushing stuff to From Qt
the web view
http://labs.trolltech.com/page/Projects/QtScript/Generator
As a hybrid app developer you…
...can use your web skills (HTML, CSS, …) to do the UI
Or, since QWebView has NPAPI -> Flash
Or, you can go nuts and even push native Qt components to webview
Qt is available everywhere
On desktops OSs as well as smartphones
With Qt and Mobility APIs you can make full blown mobile applications
Later on
Provide a JS UI library
Deeper tool integration (Qt Creator)
If you want to know what Qt is
about ;)
Come check tomorrow
9:30 - 12:00 Qt fireworks - demonstrating the potential of Qt.
13-14 Introducing Qt to Symbian Developers
http://www.slideshare.net/pkosonen
We’ll be making it really easy for you
All you need is Qt Creator – no SDKs ;)
24
http://www.slideshare.net/pkosonen