Social App Development with Qt
-
Upload
andri-yadi -
Category
Technology
-
view
1.012 -
download
1
description
Transcript of Social App Development with Qt
Social App Development with Qt
Nokia Dev Con 2011, INAICTA, jakarta, oct 5, 2011
about andri yadi a (at) dycode (dot) com @andri_yadi
4 years in a row
start my own company & code for food
8 years in mobile development
a movie freak
the ceo
about arif setiawan arif (at) dycode (dot) com @ken121f
master degree in computer engineering
hardcore c/c++ developer
Nokia platform team lead
raise your hand if you’re
developers!
first of all, it’s “qute” not “qiu ti” nor “qi te”
C++ platform-independent
multi platform native-app development
operating systems (Symbian, MeeGo, android, MacOS,
Windows)
native apps access operating system & its function directly
multi platform native-app development
operating systems (Symbian, MeeGo, android, MacOS,
Windows)
Qt framework same code works on all platforms, covers many usecases (GPS, camera)
all you need is Qt SDK 1.1.3
released on Sept 29, 2011
Qt Quick Qt User Interface Creation Kit
Qt Meta-object Language (QML) declarative programming no C++ skill required Qt Creator IDE
Qt mobility bearer management API
contacts
location
messaging
multimedia
publish & subscribe
sensors
service framework
mobility 1.0
camera
document gallery
feedback
Landmarks, map, navigation
organizer
mobility 1.1
mobility 1.2 it’s all about NFC, final for MeeGo system information
social media apps
users need & want to pay social apps
social media apps
social apps on Ovi
social media apps build new social platform and/or leverage existing ones
OAuth
OAuth 1.0 under the hood
complicated! kqoauth is your
friend
show provider’s auth. page in embedded
browser
user grants authorization
redirect to dummy URL with access_token
parse access_token value from URL
save access_token to persistent storage
consumer provider
/dialog/oauth? client_id={APP_ID}&response_type=token&redirect_uri={DUMMY_URL}&scope={SCOPE}
user grants authorization
http://{DUMMY_URL}/#access_token={ACCESS_TOKEN}&expires_in={EXPIRE}
parse access_token value from URL
save access_token to persistent storage
consumer provider
if you think that’s still too hard, there’s thin wrapper
qfacebook(http://gitorious.net/qfacebook)
/oauth2/authenticate? client_id={CLIENT_ID}&response_type=token&redirect_uri={DUMMY_URL}
user grants authorization
http://{DUMMY_URL}/#access_token={ACCESS_T
OKEN}
parse access_token value from URL
save access_token to persistent storage
consumer provider
demo
Movreak movie grid city
Movie detail
Share button
Harmattan ShareUI
QML
Twitter Wrapper
kqOAuth qjson
Qt SDK
signal & slot
Twitter demo architecture
twitter HTTP
user tap sign in to Twitter
request authorization
access token received show auth page
save access_token to persistent storage
QML C++ (kqOAuth)
let’s see the code
where to go from here
Nokia developer - http://developer.nokia.com/
Qt – http://developer.nokia.com/Develop/Qt/
latest Qt SDK download – http://developer.nokia.com/Develop/Qt/Tools
all about NFC - http://developer.nokia.com/Develop/NFC/
kqOAuth - http://gitorious.org/kqoauth
qjson - http://gitorious.org/qjson