SlideShare a Scribd company logo
1 of 40
Download to read offline
The Mobility Project
Alex Luddy
Purpose

• Fuel your ideas for using the Qt APIs from the
  Mobility project




                                                   1
Agenda

• Background

• Content Overview
  – Some examples

• Questions




                     2
Traditional Qt




                 3
Qt Going Forward




                   4
Mobility Project




                   5
Mobility and Applications




                            6
Qt Mobility Details

• The Mobility project is creating Qt APIs

• APIs will have supported functional back-ends on
  all platforms where it makes sense

• Some APIs on Qt labs now




                                                     7
The Story of Bob the Developer

• Wants to make a mobile application

• Wants the application to be cross-platform



• A Web feed reader…




                                               8
Bearer Management

• Enables roaming between
 connections

• Choose most appropriate
 connection

• Manage connections




                            9
Bearer Management




                    10
Bearer Management Demo




                         11
Bearer Management Example

class BearerCloud : public QGraphicsScene

{

     // ...

     QNetworkConfigurationManager manager;

};




                                             12
Bearer Management Example

connect(&manager,

    SIGNAL(configurationAdded(QNetworkConfiguration)),

    this, SLOT(configurationAdded(QNetworkConfiguration)));

connect(&manager,

    SIGNAL(configurationUpdated(QNetworkConfiguration)),

    this, SLOT(configurationUpdated(QNetworkConfiguration)));




                                                                13
Bearer Management Example

void BearerCloud::configurationAdded(

    const QNetworkConfiguration& configuration)

{

    const QNetworkConfiguration::StateFlags state =

            config.state();



    // position in cloud based on state

}




                                                      14
Back to Bob

• Efficient Internet connection



• Web feed reader with contact interest
  information…




                                          15
Contacts

• Work with contact data

• Add custom data

• Introspect contact data

• Enumerate contact stores
  – Local and remote




                             16
Contacts




           17
Contacts Example: Show Contacts

// prepare fetch request

QContactManager* manager = new QContactManager();

QContactFetchRequest* fetchRequest = new QContactFetchRequest;

fetchRequest->setManager(manager);



connect(fetchRequest,
  SIGNAL(progress(QContactFetchRequest*,bool)), this,
  SLOT(showContacts(QContactFetchRequest*,bool)));



m_fetchRequest->start()



                                                                 18
Contacts Example: Show Contacts

void Example::showContacts(QContactFetchRequest* request,
    bool appendOnly)

{

     QList<QContact> results = request->contacts();

     // handle append only case



     // access contacts for display

     for (int i = 0; i < results.size(); ++i) {

         QString display = results[i].displayLabel().label();

         // ...



                                                                19
Back to Bob

• Efficient Internet connection

• Access contact details
  – Add “interest” as custom data



• Web feed reader that can send messages to
  contacts about relevant information..



                                              20
Messaging

• Send (Email, SMS, MMS)

• Work with stored/remote messages

• Access message accounts

• New message notifications

• Retrieve




                                     21
Messaging




            22
Messaging Example: Send Message

// get to address

QString to =
  contact.detail<QContactEmailAddress>().emailAddress();



// prepare message

QMessage message;
message.setType(QMessage::Email);
message.setTo(QMessageAddress(to, QMessageAddress::Email));
message.setSubject(“Boating”);
message.setBody(“Here is a link you might like...”);




                                                              23
Messaging Example: Send Message

// send

QMessageServiceAction service;
connect(&service,
   SIGNAL(stateChanged(QMessageServiceAction::State)), this,
   SLOT(stateChanged(QMessageServiceAction::State)));
service.sendMessage(message);



// check send result
void MessageSender::stateChanged(
    QMessageServiceAction::State state)
{
    if (state == QMessageServiceAction::Successful)
        // all good


                                                               24
Back to Bob

• Efficient Internet connection

• Access contact details

• Send messages to contacts



• The “I am going to be late”
  application…



                                  25
Location

• Where am I?
  – Stream location data

• Be notified when within range of a
  location

• Underlying location technology
  agnostic



                                       26
Location




           27
Location Demo




                28
Location Example

// create source

source = new QNmeaPositionInfoSource(

        QNmeaPositionInfoSource::SimulationMode, this);



// open NMEA data file and set as device for source



source->setUpdateInterval(1500);



connect(source, SIGNAL(positionUpdated(QGeoPositionInfo)),

        this, SLOT(positionUpdated(QGeoPositionInfo)));



                                                             29
Location Example

void MapWindow::positionUpdated(const QGeoPositionInfo& info)

{

    if (info.hasProperty(QGeoPositionInfo::Heading))

        // ...



    QString url = /* ... */

            .arg(QString::number(

            info.coordinate().latitude()))

            // ...




                                                                30
Back to Bob

• Efficient use of network

• Accessing contact details

• Sending messages to contacts

• Knows where user is




                                 31
Other APIs for Application Developers

• Multimedia

• System Information

• Calendar (coming next year)

• Sensors (coming next year)

• More to come…




                                        32
System Developer APIs

• Use case is focused more on development of a
  system rather than an application

• Publish and subscribe

• Service framework




                                                 33
Publish and Subscribe

• Unifies various sources of hierarchical data into a
  single consistent model

• Uses QVariant


/Device/Buttons = 3

/Device/Buttons/1/Name = Context

/Device/Buttons/1/Usable = true

/Device/Buttons/2/Name = Select



                                                        34
Service Framework

• Discover and work with
  services

• Central service registry

• XML definition

• Out-of-process support
  coming next year



                             35
Service Framework




                    36
Content Summary

• Bearer Management, Contacts, Messaging,
 Location, Multimedia, System Information,
 Publish and Subscribe, Service Framework

• …




                                             37
Summary

• Rich cross-platform applications

• Qt brilliant developer offering everywhere




                                               38
Questions

• http://labs.qt.nokia.com/page/Projects/QtMobility

• All API feedback appreciated




                                                      39

More Related Content

What's hot

Developing Driver Terminal for Forage Harvester with QML and Qt
Developing Driver Terminal for Forage Harvester with QML and QtDeveloping Driver Terminal for Forage Harvester with QML and Qt
Developing Driver Terminal for Forage Harvester with QML and Qt
Burkhard Stubert
 

What's hot (20)

Best Practices in Qt Quick/QML - Part 3
Best Practices in Qt Quick/QML - Part 3Best Practices in Qt Quick/QML - Part 3
Best Practices in Qt Quick/QML - Part 3
 
Translating Qt Applications
Translating Qt ApplicationsTranslating Qt Applications
Translating Qt Applications
 
Lockless Producer Consumer Threads: Asynchronous Communications Made Easy
Lockless Producer Consumer Threads: Asynchronous Communications Made EasyLockless Producer Consumer Threads: Asynchronous Communications Made Easy
Lockless Producer Consumer Threads: Asynchronous Communications Made Easy
 
Hello, QML
Hello, QMLHello, QML
Hello, QML
 
Serving QML applications over the network
Serving QML applications over the networkServing QML applications over the network
Serving QML applications over the network
 
Best Practices in Qt Quick/QML - Part III
Best Practices in Qt Quick/QML - Part IIIBest Practices in Qt Quick/QML - Part III
Best Practices in Qt Quick/QML - Part III
 
WT-4064, Build Rich Applications with HTML5 and WebGL, by Tony Parisi
WT-4064, Build Rich Applications with HTML5 and WebGL, by Tony ParisiWT-4064, Build Rich Applications with HTML5 and WebGL, by Tony Parisi
WT-4064, Build Rich Applications with HTML5 and WebGL, by Tony Parisi
 
Qt Application Programming with C++ - Part 1
Qt Application Programming with C++ - Part 1Qt Application Programming with C++ - Part 1
Qt Application Programming with C++ - Part 1
 
Best Practices in Qt Quick/QML - Part 1 of 4
Best Practices in Qt Quick/QML - Part 1 of 4Best Practices in Qt Quick/QML - Part 1 of 4
Best Practices in Qt Quick/QML - Part 1 of 4
 
Developing Driver Terminal for Forage Harvester with QML and Qt
Developing Driver Terminal for Forage Harvester with QML and QtDeveloping Driver Terminal for Forage Harvester with QML and Qt
Developing Driver Terminal for Forage Harvester with QML and Qt
 
WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by Mikael ...
WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by  Mikael ...WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by  Mikael ...
WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by Mikael ...
 
UI Programming with Qt-Quick and QML
UI Programming with Qt-Quick and QMLUI Programming with Qt-Quick and QML
UI Programming with Qt-Quick and QML
 
Best Practices in Qt Quick/QML - Part 2
Best Practices in Qt Quick/QML - Part 2Best Practices in Qt Quick/QML - Part 2
Best Practices in Qt Quick/QML - Part 2
 
OpenGL 4.5 Update for NVIDIA GPUs
OpenGL 4.5 Update for NVIDIA GPUsOpenGL 4.5 Update for NVIDIA GPUs
OpenGL 4.5 Update for NVIDIA GPUs
 
Migrating from OpenGL to Vulkan
Migrating from OpenGL to VulkanMigrating from OpenGL to Vulkan
Migrating from OpenGL to Vulkan
 
Qt Application Programming with C++ - Part 2
Qt Application Programming with C++ - Part 2Qt Application Programming with C++ - Part 2
Qt Application Programming with C++ - Part 2
 
WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...
WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...
WT-4067, High performance WebGL games with the Turbulenz Engine, by Ian Balla...
 
WT-4072, Rendering Web Content at 60fps, by Vangelis Kokkevis, Antoine Labour...
WT-4072, Rendering Web Content at 60fps, by Vangelis Kokkevis, Antoine Labour...WT-4072, Rendering Web Content at 60fps, by Vangelis Kokkevis, Antoine Labour...
WT-4072, Rendering Web Content at 60fps, by Vangelis Kokkevis, Antoine Labour...
 
Build Your Kubernetes Operator with the Right Tool!
Build Your Kubernetes Operator with the Right Tool!Build Your Kubernetes Operator with the Right Tool!
Build Your Kubernetes Operator with the Right Tool!
 
High performance graphics and computation - OpenGL ES and RenderScript
High performance graphics and computation - OpenGL ES and RenderScript High performance graphics and computation - OpenGL ES and RenderScript
High performance graphics and computation - OpenGL ES and RenderScript
 

Viewers also liked

World of Tanks: один миллион игроков онлайн
World of Tanks: один миллион игроков онлайнWorld of Tanks: один миллион игроков онлайн
World of Tanks: один миллион игроков онлайн
Maksim Melnikau
 

Viewers also liked (8)

Qt and the Red Flag Linux Distro
Qt and the Red Flag Linux DistroQt and the Red Flag Linux Distro
Qt and the Red Flag Linux Distro
 
Copy Your Favourite Nokia App with Qt
Copy Your Favourite Nokia App with QtCopy Your Favourite Nokia App with Qt
Copy Your Favourite Nokia App with Qt
 
Discover Qt Learning and Certification
Discover Qt Learning and CertificationDiscover Qt Learning and Certification
Discover Qt Learning and Certification
 
Success Story and Future Challenges of Applying Qt for Embedded Linux
Success Story and Future Challenges of Applying Qt for Embedded LinuxSuccess Story and Future Challenges of Applying Qt for Embedded Linux
Success Story and Future Challenges of Applying Qt for Embedded Linux
 
Amazing KDE (K Desktop Environment)
Amazing KDE (K Desktop Environment)Amazing KDE (K Desktop Environment)
Amazing KDE (K Desktop Environment)
 
Leveraging Open Source- Insight to Foresight
Leveraging Open Source- Insight to ForesightLeveraging Open Source- Insight to Foresight
Leveraging Open Source- Insight to Foresight
 
Kitware: Qt and Scientific Computing
Kitware: Qt and Scientific ComputingKitware: Qt and Scientific Computing
Kitware: Qt and Scientific Computing
 
World of Tanks: один миллион игроков онлайн
World of Tanks: один миллион игроков онлайнWorld of Tanks: один миллион игроков онлайн
World of Tanks: один миллион игроков онлайн
 

Similar to The Mobility Project

Building Kafka Connectors with Kotlin: A Step-by-Step Guide to Creation and D...
Building Kafka Connectors with Kotlin: A Step-by-Step Guide to Creation and D...Building Kafka Connectors with Kotlin: A Step-by-Step Guide to Creation and D...
Building Kafka Connectors with Kotlin: A Step-by-Step Guide to Creation and D...
HostedbyConfluent
 
Ingesting and Processing IoT Data Using MQTT, Kafka Connect and Kafka Streams...
Ingesting and Processing IoT Data Using MQTT, Kafka Connect and Kafka Streams...Ingesting and Processing IoT Data Using MQTT, Kafka Connect and Kafka Streams...
Ingesting and Processing IoT Data Using MQTT, Kafka Connect and Kafka Streams...
confluent
 
Ingesting and Processing IoT Data - using MQTT, Kafka Connect and KSQL
Ingesting and Processing IoT Data - using MQTT, Kafka Connect and KSQLIngesting and Processing IoT Data - using MQTT, Kafka Connect and KSQL
Ingesting and Processing IoT Data - using MQTT, Kafka Connect and KSQL
Guido Schmutz
 

Similar to The Mobility Project (20)

Stream and Batch Processing in the Cloud with Data Microservices
Stream and Batch Processing in the Cloud with Data MicroservicesStream and Batch Processing in the Cloud with Data Microservices
Stream and Batch Processing in the Cloud with Data Microservices
 
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
 
Hazelcast and MongoDB at Cloud CMS
Hazelcast and MongoDB at Cloud CMSHazelcast and MongoDB at Cloud CMS
Hazelcast and MongoDB at Cloud CMS
 
Implementing Domain Events with Kafka
Implementing Domain Events with KafkaImplementing Domain Events with Kafka
Implementing Domain Events with Kafka
 
Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017
Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017
Microservices in GO - Massimiliano Dessì - Codemotion Rome 2017
 
All Streams Ahead! ksqlDB Workshop ANZ
All Streams Ahead! ksqlDB Workshop ANZAll Streams Ahead! ksqlDB Workshop ANZ
All Streams Ahead! ksqlDB Workshop ANZ
 
Developing real-time data pipelines with Spring and Kafka
Developing real-time data pipelines with Spring and KafkaDeveloping real-time data pipelines with Spring and Kafka
Developing real-time data pipelines with Spring and Kafka
 
Fabric - Realtime stream processing framework
Fabric - Realtime stream processing frameworkFabric - Realtime stream processing framework
Fabric - Realtime stream processing framework
 
PayPal datalake journey | teradata - edge of next | san diego | 2017 october ...
PayPal datalake journey | teradata - edge of next | san diego | 2017 october ...PayPal datalake journey | teradata - edge of next | san diego | 2017 october ...
PayPal datalake journey | teradata - edge of next | san diego | 2017 october ...
 
Microservices @ Work - A Practice Report of Developing Microservices
Microservices @ Work - A Practice Report of Developing MicroservicesMicroservices @ Work - A Practice Report of Developing Microservices
Microservices @ Work - A Practice Report of Developing Microservices
 
Building Kafka Connectors with Kotlin: A Step-by-Step Guide to Creation and D...
Building Kafka Connectors with Kotlin: A Step-by-Step Guide to Creation and D...Building Kafka Connectors with Kotlin: A Step-by-Step Guide to Creation and D...
Building Kafka Connectors with Kotlin: A Step-by-Step Guide to Creation and D...
 
Easy integration of Bluemix services with your applications
Easy integration of Bluemix services with your applicationsEasy integration of Bluemix services with your applications
Easy integration of Bluemix services with your applications
 
Unified Stream Processing at Scale with Apache Samza - BDS2017
Unified Stream Processing at Scale with Apache Samza - BDS2017Unified Stream Processing at Scale with Apache Samza - BDS2017
Unified Stream Processing at Scale with Apache Samza - BDS2017
 
Siddhi - cloud-native stream processor
Siddhi - cloud-native stream processorSiddhi - cloud-native stream processor
Siddhi - cloud-native stream processor
 
Simplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring CloudSimplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring Cloud
 
2017 Microservices Practitioner Virtual Summit: Microservices at Squarespace ...
2017 Microservices Practitioner Virtual Summit: Microservices at Squarespace ...2017 Microservices Practitioner Virtual Summit: Microservices at Squarespace ...
2017 Microservices Practitioner Virtual Summit: Microservices at Squarespace ...
 
Cloud Native Spring - The role of Spring Cloud after Kubernetes became a main...
Cloud Native Spring - The role of Spring Cloud after Kubernetes became a main...Cloud Native Spring - The role of Spring Cloud after Kubernetes became a main...
Cloud Native Spring - The role of Spring Cloud after Kubernetes became a main...
 
Ingesting and Processing IoT Data Using MQTT, Kafka Connect and Kafka Streams...
Ingesting and Processing IoT Data Using MQTT, Kafka Connect and Kafka Streams...Ingesting and Processing IoT Data Using MQTT, Kafka Connect and Kafka Streams...
Ingesting and Processing IoT Data Using MQTT, Kafka Connect and Kafka Streams...
 
Ingesting and Processing IoT Data - using MQTT, Kafka Connect and KSQL
Ingesting and Processing IoT Data - using MQTT, Kafka Connect and KSQLIngesting and Processing IoT Data - using MQTT, Kafka Connect and KSQL
Ingesting and Processing IoT Data - using MQTT, Kafka Connect and KSQL
 
Spring Cloud and Netflix OSS overview v1
Spring Cloud and Netflix OSS overview v1Spring Cloud and Netflix OSS overview v1
Spring Cloud and Netflix OSS overview v1
 

More from account inactive

More from account inactive (20)

Meet Qt
Meet QtMeet Qt
Meet Qt
 
KDE Plasma for Mobile Phones
KDE Plasma for Mobile PhonesKDE Plasma for Mobile Phones
KDE Plasma for Mobile Phones
 
Shipping Mobile Applications Using Qt for Symbian
Shipping Mobile Applications Using Qt for SymbianShipping Mobile Applications Using Qt for Symbian
Shipping Mobile Applications Using Qt for Symbian
 
The Future of Qt Widgets
The Future of Qt WidgetsThe Future of Qt Widgets
The Future of Qt Widgets
 
Scripting Your Qt Application
Scripting Your Qt ApplicationScripting Your Qt Application
Scripting Your Qt Application
 
Special Effects with Qt Graphics View
Special Effects with Qt Graphics ViewSpecial Effects with Qt Graphics View
Special Effects with Qt Graphics View
 
Developments in The Qt WebKit Integration
Developments in The Qt WebKit IntegrationDevelopments in The Qt WebKit Integration
Developments in The Qt WebKit Integration
 
Qt Kwan-Do
Qt Kwan-DoQt Kwan-Do
Qt Kwan-Do
 
Development with Qt for Windows CE
Development with Qt for Windows CEDevelopment with Qt for Windows CE
Development with Qt for Windows CE
 
Qt Creator Bootcamp
Qt Creator BootcampQt Creator Bootcamp
Qt Creator Bootcamp
 
Qt Widget In-Depth
Qt Widget In-DepthQt Widget In-Depth
Qt Widget In-Depth
 
Qt State Machine Framework
Qt State Machine FrameworkQt State Machine Framework
Qt State Machine Framework
 
Mobile Development with Qt for Symbian
Mobile Development with Qt for SymbianMobile Development with Qt for Symbian
Mobile Development with Qt for Symbian
 
How to Make Your Qt App Look Native
How to Make Your Qt App Look NativeHow to Make Your Qt App Look Native
How to Make Your Qt App Look Native
 
Animation Framework: A Step Towards Modern UIs
Animation Framework: A Step Towards Modern UIsAnimation Framework: A Step Towards Modern UIs
Animation Framework: A Step Towards Modern UIs
 
Using Multi-Touch and Gestures with Qt
Using Multi-Touch and Gestures with QtUsing Multi-Touch and Gestures with Qt
Using Multi-Touch and Gestures with Qt
 
Debugging Qt, Fixing and Contributing a Bug Report (Using Gitorious)
Debugging Qt, Fixing and Contributing a Bug Report (Using Gitorious)Debugging Qt, Fixing and Contributing a Bug Report (Using Gitorious)
Debugging Qt, Fixing and Contributing a Bug Report (Using Gitorious)
 
The Next Generation Qt Item Views
The Next Generation Qt Item ViewsThe Next Generation Qt Item Views
The Next Generation Qt Item Views
 
Optimizing Performance in Qt-Based Applications
Optimizing Performance in Qt-Based ApplicationsOptimizing Performance in Qt-Based Applications
Optimizing Performance in Qt-Based Applications
 
Qt Licensing Explained
Qt Licensing ExplainedQt Licensing Explained
Qt Licensing Explained
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

The Mobility Project

  • 2. Purpose • Fuel your ideas for using the Qt APIs from the Mobility project 1
  • 3. Agenda • Background • Content Overview – Some examples • Questions 2
  • 8. Qt Mobility Details • The Mobility project is creating Qt APIs • APIs will have supported functional back-ends on all platforms where it makes sense • Some APIs on Qt labs now 7
  • 9. The Story of Bob the Developer • Wants to make a mobile application • Wants the application to be cross-platform • A Web feed reader… 8
  • 10. Bearer Management • Enables roaming between connections • Choose most appropriate connection • Manage connections 9
  • 13. Bearer Management Example class BearerCloud : public QGraphicsScene { // ... QNetworkConfigurationManager manager; }; 12
  • 14. Bearer Management Example connect(&manager, SIGNAL(configurationAdded(QNetworkConfiguration)), this, SLOT(configurationAdded(QNetworkConfiguration))); connect(&manager, SIGNAL(configurationUpdated(QNetworkConfiguration)), this, SLOT(configurationUpdated(QNetworkConfiguration))); 13
  • 15. Bearer Management Example void BearerCloud::configurationAdded( const QNetworkConfiguration& configuration) { const QNetworkConfiguration::StateFlags state = config.state(); // position in cloud based on state } 14
  • 16. Back to Bob • Efficient Internet connection • Web feed reader with contact interest information… 15
  • 17. Contacts • Work with contact data • Add custom data • Introspect contact data • Enumerate contact stores – Local and remote 16
  • 18. Contacts 17
  • 19. Contacts Example: Show Contacts // prepare fetch request QContactManager* manager = new QContactManager(); QContactFetchRequest* fetchRequest = new QContactFetchRequest; fetchRequest->setManager(manager); connect(fetchRequest, SIGNAL(progress(QContactFetchRequest*,bool)), this, SLOT(showContacts(QContactFetchRequest*,bool))); m_fetchRequest->start() 18
  • 20. Contacts Example: Show Contacts void Example::showContacts(QContactFetchRequest* request, bool appendOnly) { QList<QContact> results = request->contacts(); // handle append only case // access contacts for display for (int i = 0; i < results.size(); ++i) { QString display = results[i].displayLabel().label(); // ... 19
  • 21. Back to Bob • Efficient Internet connection • Access contact details – Add “interest” as custom data • Web feed reader that can send messages to contacts about relevant information.. 20
  • 22. Messaging • Send (Email, SMS, MMS) • Work with stored/remote messages • Access message accounts • New message notifications • Retrieve 21
  • 23. Messaging 22
  • 24. Messaging Example: Send Message // get to address QString to = contact.detail<QContactEmailAddress>().emailAddress(); // prepare message QMessage message; message.setType(QMessage::Email); message.setTo(QMessageAddress(to, QMessageAddress::Email)); message.setSubject(“Boating”); message.setBody(“Here is a link you might like...”); 23
  • 25. Messaging Example: Send Message // send QMessageServiceAction service; connect(&service, SIGNAL(stateChanged(QMessageServiceAction::State)), this, SLOT(stateChanged(QMessageServiceAction::State))); service.sendMessage(message); // check send result void MessageSender::stateChanged( QMessageServiceAction::State state) { if (state == QMessageServiceAction::Successful) // all good 24
  • 26. Back to Bob • Efficient Internet connection • Access contact details • Send messages to contacts • The “I am going to be late” application… 25
  • 27. Location • Where am I? – Stream location data • Be notified when within range of a location • Underlying location technology agnostic 26
  • 28. Location 27
  • 30. Location Example // create source source = new QNmeaPositionInfoSource( QNmeaPositionInfoSource::SimulationMode, this); // open NMEA data file and set as device for source source->setUpdateInterval(1500); connect(source, SIGNAL(positionUpdated(QGeoPositionInfo)), this, SLOT(positionUpdated(QGeoPositionInfo))); 29
  • 31. Location Example void MapWindow::positionUpdated(const QGeoPositionInfo& info) { if (info.hasProperty(QGeoPositionInfo::Heading)) // ... QString url = /* ... */ .arg(QString::number( info.coordinate().latitude())) // ... 30
  • 32. Back to Bob • Efficient use of network • Accessing contact details • Sending messages to contacts • Knows where user is 31
  • 33. Other APIs for Application Developers • Multimedia • System Information • Calendar (coming next year) • Sensors (coming next year) • More to come… 32
  • 34. System Developer APIs • Use case is focused more on development of a system rather than an application • Publish and subscribe • Service framework 33
  • 35. Publish and Subscribe • Unifies various sources of hierarchical data into a single consistent model • Uses QVariant /Device/Buttons = 3 /Device/Buttons/1/Name = Context /Device/Buttons/1/Usable = true /Device/Buttons/2/Name = Select 34
  • 36. Service Framework • Discover and work with services • Central service registry • XML definition • Out-of-process support coming next year 35
  • 38. Content Summary • Bearer Management, Contacts, Messaging, Location, Multimedia, System Information, Publish and Subscribe, Service Framework • … 37
  • 39. Summary • Rich cross-platform applications • Qt brilliant developer offering everywhere 38