×
Namespaces

Variants
Actions
(Difference between revisions)

Qt Mobility API Basic Examples Part 1

From Nokia Developer Wiki
Jump to: navigation, search
skumar_rao (Talk | contribs)
jimgilmour1 (Talk | contribs)
m (minor spelling)
Line 23: Line 23:
 
Qt Mobility API Basic Examples (Part 1)
 
Qt Mobility API Basic Examples (Part 1)
  
Below are list of Examples that demonstrates the capability of Qt Mobility also 6 Sample Applications that can be created using Qt Mobilty APIs.
+
Below are list of Examples that demonstrates the capability of Qt Mobility also 6 Sample Applications that can be created using Qt Mobility APIs.
  
 
=== '''''General Pre-requisite for the examples to run on device'''''  ===
 
=== '''''General Pre-requisite for the examples to run on device'''''  ===
Line 33: Line 33:
 
* Use Carbide.c++ or ADT to open the project  
 
* Use Carbide.c++ or ADT to open the project  
 
* Add certificate and keys for required capability
 
* Add certificate and keys for required capability
* Add pakage file to project  
+
* Add package file to project  
 
* Build to get the sisx file
 
* Build to get the sisx file
  
Line 101: Line 101:
 
=== '''''QMessageStoreExample'''''  ===
 
=== '''''QMessageStoreExample'''''  ===
 
This example reads all SMS & MMS messages from phone and displays in a
 
This example reads all SMS & MMS messages from phone and displays in a
tree like sructure. when a node is selected the user can see the detailed message.
+
tree like structure. when a node is selected the user can see the detailed message.
  
 
http://wiki.forum.nokia.com/index.php/File:QMessageStoreExample.zip
 
http://wiki.forum.nokia.com/index.php/File:QMessageStoreExample.zip
Line 128: Line 128:
 
=== '''''Qt SMS Preview'''''  ===
 
=== '''''Qt SMS Preview'''''  ===
 
This Example application keep an eye on the inbox if a message is received  
 
This Example application keep an eye on the inbox if a message is received  
this application will show a Dialog with full content / summary of the sms on screen. By  
+
this application will show a Dialog with full content / summary of the SMS on screen. By using this application user do not have to open viewer to see what the message is all about.
using this application user donot have to open viewer to see what the message is all about.
+
  
 
'''''Note:''''' For SMS Monitoring the Qt Extension APIs are used (this sample application will be updated to use Qt Mobility only in future.)
 
'''''Note:''''' For SMS Monitoring the Qt Extension APIs are used (this sample application will be updated to use Qt Mobility only in future.)
Line 143: Line 142:
  
 
=== '''''Qt iReached'''''  ===
 
=== '''''Qt iReached'''''  ===
This example application will send a message to a predefined number when phone detects a  
+
This example application will send a message to a predefined number when phone detects a pre-fixed co-ordinates by user.  
pre-fixed co-ordinates by user.  
+
  
 
http://wiki.forum.nokia.com/index.php/File:QtIReached.zip
 
http://wiki.forum.nokia.com/index.php/File:QtIReached.zip
Line 159: Line 157:
 
How many times have you spend ages trying to explain somebody where you are so that your  
 
How many times have you spend ages trying to explain somebody where you are so that your  
 
friend can come to same position, and waste lots of time and money using call. With this application  
 
friend can come to same position, and waste lots of time and money using call. With this application  
you can send a SMS that contains a link to your current position, receiver just have to click on the  
+
you can send a SMS that contains a link to your current position, receiver just have to click on the link to see your position on Google MAP.
link to see your position on Google MAP.
+
  
 
http://wiki.forum.nokia.com/index.php/File:QtIAmHere.zip
 
http://wiki.forum.nokia.com/index.php/File:QtIAmHere.zip

Revision as of 11:16, 26 April 2010

ID Creation date 03rd Apr 2010
Platform S60 5th Edition Tested on devices Nokia N97 Mini
Category Qt for Symbian Subcategory Qt Mobility API
Keywords (APIs, classes, methods, functions): Qt Mobility APIs

Tip.pngTip: Read this article before moving forward: Setting up environment for Qt Mobility API

Contents

Overview

Qt Mobility API Basic Examples (Part 1)

Below are list of Examples that demonstrates the capability of Qt Mobility also 6 Sample Applications that can be created using Qt Mobility APIs.

General Pre-requisite for the examples to run on device

  • Qt 4.6.2
  • Qt Mobility Beta
  • Symbian.C++ 5th Edition (can any other SDK where Qt Mobility is Available)

General Instructions for building the code examples

  • Use Carbide.c++ or ADT to open the project
  • Add certificate and keys for required capability
  • Add package file to project
  • Build to get the sisx file

Examples

QSystemDeviceInfoExample

This example shows how to read device information like

  • IMEI
  • IMSI
  • Manufacturer
  • Model
  • ProductName

using QSystemDeviceInfo and shows on a Qt Dialog

http://wiki.forum.nokia.com/index.php/File:QSystemDeviceInfoExample.zip

QSystemDisplayInfoExample

This example shows how to read device display information like 1. Brightness 2. ColorDepth using QSystemDisplayInfo and shows on a Qt Dialog.

http://wiki.forum.nokia.com/index.php/File:QSystemDisplayInfoExample.zip

QSystemInfoExample

This example shows how to read System information like

  • CurrentLanguage
  • AvailableLanguages Array
  • CurrentCountryCode
  • Version [OS, Core & Firmware]
  • Device connection features like
    • Bluetooth
    • CameraFeature
    • FM RadioFeature
    • IrFeature
    • LedFeature
    • MemcardFeature
    • UsbFeature
    • VibFeature
    • WlanFeature
    • SimFeature
    • LocationFeature
    • VideoOutFeature
    • HapticsFeature

using QSystemInfo and shows on a Qt Dialog.

http://wiki.forum.nokia.com/index.php/File:QSystemInfoExample.zip

QSystemNetworkInfoExample

This example gets the device network status also if find the corresponding SignalStrength , Mac Address, NetworkName using QSystemNetworkInfo and shows on a Qt Dialog.

http://wiki.forum.nokia.com/index.php/File:QSystemNetworkInfoExample.zip

QSystemStorageInfoExample

This example gets the all drives connected to device and list corresponding total & available using QSystemStorageInfo and shows on a Qt Table Widget.

http://wiki.forum.nokia.com/index.php/File:QSystemStorageInfoExample.zip

QMessageServiceActionExample

This example takes phone number & text body from user and sends a SMS to phone number. It has option to delete the message in case it fails.

http://wiki.forum.nokia.com/index.php/File:QMessageServiceActionExample.zip

QMessageStoreExample

This example reads all SMS & MMS messages from phone and displays in a tree like structure. when a node is selected the user can see the detailed message.

http://wiki.forum.nokia.com/index.php/File:QMessageStoreExample.zip

QContactManagerExample

This example reads all contacts and shows as a list.when an element is selected the user can see the detailed of the contact.

http://wiki.forum.nokia.com/index.php/File:QContactManagerExample.zip

QGeoPositionInfoSourceExample

This example reads current coordinates (using data network)and shows on a dialog. Mobility API used : QGeoPositionInfoSource & related APIs

http://wiki.forum.nokia.com/index.php/File:QGeoPositionInfoSourceExample.zip

Sample Applications using above Qt Mobility APIs

Qt Forward SMS

This Sample application takes a destination Mobile number, and keep an eye on the inbox if a message is received then a notification message will be send to destination phone number with details / full content of the received SMS

http://wiki.forum.nokia.com/index.php/File:QtForwardSMS.zip

Qt SMS Preview

This Example application keep an eye on the inbox if a message is received this application will show a Dialog with full content / summary of the SMS on screen. By using this application user do not have to open viewer to see what the message is all about.

Note: For SMS Monitoring the Qt Extension APIs are used (this sample application will be updated to use Qt Mobility only in future.)

http://wiki.forum.nokia.com/index.php/File:Qt_SMS_Preview.zip

Qt Call Alert

This Example application observes of any calls and sends a message to a predefined number.

Note: For Call Monitoring the Qt Extension APIs are used (this sample application will be updated to use Qt Mobility only in future.)

http://wiki.forum.nokia.com/index.php/File:Qt_Call_Alert.zip

Qt iReached

This example application will send a message to a predefined number when phone detects a pre-fixed co-ordinates by user.

http://wiki.forum.nokia.com/index.php/File:QtIReached.zip

Qt AntiTheft

This example application will detect SIM change and send new SIM info's to a pre-defined number, so that user can recover his phone in-case of theft.

Note: this application requires auto-stating a exe on boot-up for that this application uses Symbian "Startup List Management API", will be updated to Qt only when APIs will be made available.

http://wiki.forum.nokia.com/index.php/File:Qt_AntiTheft.zip

Qt iAmHere

How many times have you spend ages trying to explain somebody where you are so that your friend can come to same position, and waste lots of time and money using call. With this application you can send a SMS that contains a link to your current position, receiver just have to click on the link to see your position on Google MAP.

http://wiki.forum.nokia.com/index.php/File:QtIAmHere.zip


Reference links

--skumar_rao 19:12, 2 April 2010 (UTC)

59 page views in the last 30 days.
×