1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
|
/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:FDL$
** No Commercial Usage
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** GNU Free Documentation License
** Alternatively, this file may be used under the terms of the GNU Free
** Documentation License version 1.3 as published by the Free Software
** Foundation and appearing in the file included in the packaging of this
** file.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
** $QT_END_LICENSE$
**
****************************************************************************/
/*!
\group mobility
\title QtMobility Project APIs
QtMobility Project supplies a set of new APIs for Qt enabling a range of
mobile-centric technologies and features on mobile and non-mobile platforms.
*/
/*!
\page index.html
\startpage index.html Qt Reference Documentation
\title Qt Mobility Project Reference Documentation
\brief An overview of the QtMobility Project APIs.
\tableofcontents
\section1 Overview
\section2 Introducing the QtMobility Project APIs
The QtMobility project covers a diverse range of features and technologies.
It is not a single API but a collection of APIs and frameworks.
This release contains the following APIs:
\annotatedlist mobility
These APIs give the developer a range of desirable functions for a
mobile platform, but now these functions become possible on platforms not
traditionally associated with some of the features. A mobile device
using the QtMobility Project API would be able to
\list
\o Locate services on-board or remotely. Find an optimal
connection to the network for the particular service.
\o Services built on top of these APIs would include Internet
applications such as email and web browsing.
\o Multimedia features enable image and video capture with audio ,
audio recording, and the playing of music or video clips.
\o Location will make the device aware of its geographical location
to support GIS applications.
\o Publish-Subscribe enables communication between separate objects
whether local or remote to the device.
\endlist
The New Qt APIs deliver to developers an enabling package. It
will be used by developers to build a variety of applications and
services that are mobile capable or familiar to mobile users,
irrespective of whether the platform is mobile or not. This means that
there is the possibility of easy transfer of user experience from PC to
phone or vice versa.
\section1 Getting Started
To get started with QtMobility see the
\list
\o \l {Installation Guide}
\o \l {Quickstart guide}{Quickstart Guide}
\o \l {QtMobility Examples}{List of all examples.}
\endlist
For users on the supported Symbian platforms, shown at the bottom of this
page, see the instructions at the
\l{http://library.forum.nokia.com/topic/Qt_for_Symbian_Developers_Library/GUID-7E53D0F7-72CB-41C4-8807-FE7A772B0DB4.html}{Qt For Symbian Developer's Library}
\section2 Known Issues
See \l {Release Notes of the QtMobility Project release}{Release Notes}.
For an overview of Platform Compatibility see \l {Platform Compatibility}.
\section1 The QtMobility APIs
\section2 Service Framework
A platform independent method of finding Services. A 'service' is an
independent component that allows a client to perform a well-defined
operation.
The services are implemented as plugins installed on the device and can
look for supporting external services running on a central server. E.g.
weather, local tourist attractions etc. Default applications can use
the layer to locate servers.
Since this is an abstraction layer then the app does not need to be
concerned with the underlying protocol, where the servers are, the
hardware peculiarities with networking and other low level details.
For more details see the \l {Qt Service Framework} {Service Framework API overview}.
\section2 Messaging
A common interface for handling SMS, MMS, MIME Email and TNEF Email
messages. Enables access to messaging services to search and sort
messages, notify of changes to messages stored, send messages
with or without attachments, retrieve message data, and launch the
preferred messaging client to either display an existing message,
or compose a message.
For more details see the \l {Messaging} {Messaging API overview}.
\section2 Bearer Management
Although not a network manager, this component manages the connectivity
state of the device to the network. So it does not manage network
configurations, which are the role of the platform provider, but it does
allow the user to start or stop network interfaces. Some higher level
management of the connection session may also be possible as well
depending on the platform.
Some platforms can have a set of grouped access points perhaps based on a
common purpose. Bearer Management allows comparison and prioritization
of the access and use of these points.
The aim of Bearer Management is to reduce the need for the developer to be
concerned about trying to locate the best connection from a list of
possible IP bearers and 3G connections. The user can select the best or
it can be selected transparently so that WLAN roaming can occur
seemlessly.
Some examples of the Bearer Management functionality,
\list
\o On demand use of the appropriate Access Point. When a user starts
to use a browser, the appropriate access point is selected from those
available and a connection is transparently made.
\o Always-on applications such as email or IM roam automatically
between cellular packet data and WLAN networks. The application developer
is in control and for example the application can gracefully close TCP
connections over the old bearer after setting up new TCP connections
over the new bearer.
\o Application developer can create a settings user interface, where
the user can select a certain connection to be used with the application
\o A connection manager application can be implemented with Qt. This
application enumerates available connections, shows counters, and allows
the user to connect or disconnect
\endlist
For more details, see the \l {Bearer management} {Bearer Management API overview}.
\section2 Publish and Subscribe
Will enable context sensitive access to information in future releases.
Data is organized as a tree, with data being able to 'shadow' other
data with the 'same key', a string specifying the leaf or node. The
context is an example of a context ontology, a defined set of
relationships. As the context changes the values of the objects change
but the relationships remain the same. It is intended to be an enabling
technology, the basis of a range future applications.
At this stage the API is intended to act as a common communications
method between applications, whether local or remote.
For more details, see the \l {Publish and Subscribe} {Publish and Subscribe API overview}.
\section2 Contacts
The structure and retrieval of contact data from local or remote backends.
It includes the ability to create, edit, list, delete and lookup contact
information whether it is stored locally or remotely.
For more details, see the \l {Contacts} {Contacts API overview}.
\section2 Location
The location API is composed of 3 components. Location positioning,
landmarks, and mapping and navigation. The location positioning API provides an easy to
use interface that encapsulates basic geographical information obtained
from satellite or other sources about the user, including latitude and
longitude, bearing, speed and altitude. The Landmarks API allows storage and
retrieval of points of interests while the Maps and Navigation API provides
mapping, geocoding and routing functionality.
For more details, see the \l {Location API} {Location API overview}.
\section2 Multimedia
An API to play audio and video of various formats. Record audio. The playing
and managing of an FM radio. This includes the typical functionality you
would find on a music and video player, combined with an FM radio.
For more details see the \l {Multimedia} {Multimedia API overview}.
\section2 System Information
An API to discover system related information and capabilities. Information
available will cover software version numbers, hardware features,
network connection types and status, display, data storage devices,
device information and the screensaver.
For more details see the \l {System Information} {System Information API overview}.
\section2 Sensors
An API for accessing hardware sensors. This covers both high-level
sensors such as screen orientation (portrait, landscape) and low-level,
real-time sensors such as accelerometer data.
For more details see the \l{Sensors}{Sensors API overview}.
\section2 Versit (vCard)
An API to manage Versit \reg documents, such as vCards.
For more details see the \l{Versit}{Versit API overview}.
\section2 Organizer
An API for management of calendar, scheduling and personal data
from local or remote backends. It includes the ability to create,
edit, list, delete and lookup organizer information whether it is stored
locally or remotely.
For more details, see the \l {Organizer} {Organizer API overview}.
\section2 Versit (Organizer)
This is a continuation of the Versit API to interface the Organizer API
with iCalendar documents using the same framework as for vCards.
\section2 Camera
The Camera API provides control of system camera devices. Providing
support for still or video image capture with sound support. This functionality
is part of the Multimedia API.
For more details, see the \l {Multimedia} {Multimedia API overview}.
\section2 Landmarks
The Landmarks portion of the Location API facilitates the creation,
retrieval, updating and deletion of landmarks from arbitrary data stores.
For more details, see the \l {Landmarks} {Landmarks API overview}.
\section2 Document Gallery
An API for accessing collections of documents and media and their meta-data.
The Document Gallery provides an interface to a searchable index of
document meta-data. The gallery may be queried to discover the meta-data
of documents, or to discover documents with desired meta-data.
For more details, see the \l {Document Gallery}{Document Gallery overview}.
\section2 Feedback
The Feedback API enables a client to control the vibration of the device
or the piezo feedback from the screen.
For more details, see the \l {Feedback}{Feedback API Overview}.
\section1 The QtMobility Namespace
The QtMobility APIs are placed into the QtMobility namespace. This is
done to facilitate the future migration of QtMobility APIs into Qt. See
the \l {Quickstart guide} for an example on how
the namespace impacts on application development.
\section1 Platform Compatibility
\raw HTML
<table cellpadding="2" cellspacing="1" border="1" width="90%">
<tbody>
<tr>
<td>Color</td>
<td>Explanation</td>
</tr>
<tr>
<td bgcolor="green"></td>
<td>A functional backend for the API on the platform is complete.</td>
</tr>
<tr>
<td bgcolor="yellow"></td>
<td>A functional backend for the API on the platform is being worked on, however it is not functionally complete.</td>
</tr>
<tr>
<td bgcolor="lightgray"></td>
<td>A functional backend for the API on the platform is being worked on. At this point it is far from functionally complete or there is no platform specific code inside QDF source code.</td>
</tr>
<tr>
<td bgcolor="gray"></td>
<td>A functional backend for the API on the platform is not being worked on. It is possible for others to implement and integrate support. Alternatively, the platform does not support the feature.</td>
</tr>
</tbody>
</table>
<br />
<b>Tier 1 Platforms</b><br />
QtMobility API development focuses on Nokia platforms. These platforms are part of our ongoing QA, which includes unit test coverage per API and rigorous testing via test utilities and other system test processes.
<br />
<b>Tier 2 Platforms</b><br />
These platforms are not currently under active development or QA. Contributions to these platforms are welcome.
<br />
<br />
<table align="center" cellpadding="2" cellspacing="1" border="1" rules="all" width="90%">
<tbody>
<tr>
<td rowspan="2"> </td>
<td rowspan="2"><b>API Maturity Level</b></td>
<td colspan="7" align="center" bgcolor="#96E066"><b>Tier 1 Platforms</b></td>
<td colspan="3" align="center" bgcolor="#96E066"><b>Tier 2 Platforms</b></td>
</tr>
<tr>
<td><b>S60 3rd Edition, Feature Pack 1</b></td>
<td><b>S60 3rd Edition, Feature Pack 2</b></td>
<td><b>S60 5th Edition</b></td>
<td><b>Symbian</b></td>
<td nowrap="nowrap"><b>Maemo 5</b></td>
<td><b>Harmattan</b></td>
<td><b>MeeGo</b></td>
<td><b>Windows XP/Vista</b></td>
<td><b>Linux</b></td>
<td nowrap="nowrap"><b>Mac OS X</b></td>
</tr>
<tr>
<td nowrap="nowrap">Service Framework</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
</tr>
<tr>
<td>Messaging</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="yellow"></td>
<td bgcolor="yellow"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
</tr>
<tr>
<td>Bearer Management</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="grey">3)</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
</tr>
<tr>
<td>Publish and Subscribe</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
</tr>
<tr>
<td>Contacts</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
</tr>
<tr>
<td>Location</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
</tr>
<tr>
<td>Multimedia</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
</tr>
<tr>
<td>System Information</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
</tr>
<tr>
<td>Sensors</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
</tr>
<tr>
<td>Versit(vCard)</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
</tr>
<tr>
<td>Versit(Organizer)</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
</tr>
<tr>
<td>Camera</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
</tr>
<tr>
<td>Organizer</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
</tr>
<tr>
<td>Landmarks</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
</tr>
<tr>
<td>Document Gallery</td>
<td>FINAL</td>
<td bgcolor="yellow"></td>
<td bgcolor="yellow"></td>
<td bgcolor="yellow"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="yellow"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
</tr>
<tr>
<td>Maps/Navigation</td>
<td>FINAL</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
</tr>
<tr>
<td>Feedback</td>
<td>FINAL</td>
<td bgcolor="yellow">1)</td>
<td bgcolor="yellow">1)</td>
<td bgcolor="yellow">2)</td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
</tr>
<tr>
<td>Connectivity (Bluetooth)</td>
<td>BETA</td>
<td bgcolor="yellow"></td>
<td bgcolor="yellow"></td>
<td bgcolor="yellow"></td>
<td bgcolor="green"></td>
<td bgcolor="yellow"></td>
<td bgcolor="yellow"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
<td bgcolor="green"></td>
<td bgcolor="gray"></td>
</tr>
<tr>
<td>Connectivity (NFC)</td>
<td>BETA</td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
<td bgcolor="yellow"></td>
<td bgcolor="yellow"></td>
<td bgcolor="yellow"></td>
<td bgcolor="yellow"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
<td bgcolor="gray"></td>
</tr>
<p></p>
<p></p>
</tbody>
</table>
\endraw
1) S60 3.1, 3.2 no ramp up/down for attack/fade.
2) S60 5 only vibration available.
3) QtMobility Bearer does not support MeeGo. Use Qt 4.7 based Bearer API instead.
\section1 Feedback and bug reports
Email any inquiries and feedback about QtMobility to qt-mobility-feedback@trolltech.com
And please report any bugs you may find to \l {http://bugreports.qt.nokia.com}
\section1 Acknowledgements
The icheck tool uses the following third-party component:
\bold {Open Source front-end for C++ (MIT license)}, Roberto Raggi <roberto.raggi@gmail.com>, QTMOBILITY/tools/icheck/parser/src
*/
|