summaryrefslogtreecommitdiffstats
path: root/doc/simulator.qdoc
blob: 605e66c7d3bd61088eeeffae367f27acbec96417 (plain)
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
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
/****************************************************************************
**
** This file is part of the documentation of the Qt Toolkit.
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** 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 info@qt.nokia.com.
**
****************************************************************************/


// **********************************************************************
// NOTE: the sections are not ordered by their logical order to avoid
// reshuffling the file each time the index order changes (i.e., often).
// Run the fixnavi.pl script to adjust the links to the index order.
// **********************************************************************

// VERSION UPDATE

/*!
    \contentspage{index.html}{Simulator}
    \page index.html
    \nextpage simulator-description.html

    \title Qt Simulator Manual

    \section1 Version 1.2.0

    With Qt Simulator, you can test Qt applications that are intended for
    mobile devices in an environment similar to that of the device. You can
    change the information that the device has about its configuration and
    environment.

    Qt Simulator does not support any device specific APIs by design. Therefore,
    applications that run well on Qt Simulator also run on any device that hosts the
    Qt and Qt Mobility libraries. However, this means that you cannot use
    Qt Simulator to test applications that use device specific libraries, such as
    Symbian C++ APIs.

    \image qt-simulator.png "Qt Simulator"

    \note Please report bugs and suggestions to the
    \l{http://bugreports.qt.nokia.com}{JIRA task tracker}.

    \list
        \o \l{Introducing Qt Simulator}
        \o \l{Starting Qt Simulator}
        \o \l{Quick Tour}
        \o \l{Checking Application Layout}
        \o \l{Interacting with Applications}
        \o \l{Simulating Device Use}
        \o \l{Simulating Storage Devices}
        \o \l{Simulating Networking}
        \o \l{Simulating Location}
        \o \l{Importing Contacts}
        \o \l{Simulating Messaging}
        \o \l{Simulating Sensors}
        \o \l{Importing Calendar Events}
        \o \l{Simulating Feedback}
        \o \l{Accessing Document Gallery}
        \o \l{Simulating Camera}
        \o \l{Simulating Near Field Communication}
        \o \l{Simulating Touch}
        \o \l{Scripting}
        \o \l{Adding New Device Models}
        \o \l{Declaring Qt Mobility APIs}
        \o \l{Using Bearer Management}
        \o \l{Testing Applications Using the Qt Mobility Service Framework}
        \o \l{Known Issues}
    \endlist
*/

/*!

    \contentspage index.html
    \previouspage simulator-starting.html
    \page simulator-quick-tour.html
    \nextpage simulator-views.html

    \title Quick Tour

    This section describes the Qt Simulator interface.

    \image qt-simulator-quick-tour.png "Qt Simulator Control dialog"

    Qt Simulator displays a device with the application open on the screen. To interact with
    the application, use the mouse and keyboard. To move the device window, drag the device
    frame.

    The \gui{Qt Simulator Control} dialog provides the following controls:

    \list

    \o \gui {Menu} - Open Qt Simulator views.

    \o \gui{Quick access buttons} - Check how the application handles changes in device
    state, such as battery level, network mode, signal strength, and power state. Run your
    favorite scripts.

    \o \gui{Views} - Adjust the properties of the simulated device, manage
    applications running on Qt Simulator, and see how the application looks on
    different devices.

    \endlist

    To filter views, enter a setting name into the search field.

    \image qt-simulator-search-advanced.png "Search field and Advanced settings button"

    Click the \inlineimage qt-simulator-advanced-button.png "Advanced button"
    button on the title bar of a view to show advanced and rarely used
    settings.

*/


/*!

    \contentspage index.html
    \previouspage simulator-description.html
    \page simulator-starting.html
    \nextpage simulator-quick-tour.html

    \title Starting Qt Simulator

    You can start Qt Simulator directly from Qt Creator to quickly test and debug
    applications:

    \list 1

    \o In Qt Creator, select \gui {File > Open File or Project} to open a
    project.

    \o Click the \gui{Project} button and select the project:

    \image qt-creator-project-button.png "Project button"

    The button shows the name of your project and the
    currently active build configuration.

    \note If \gui Simulator is not listed as a target, select \gui Projects to
    and add it as a build target for the project.

    \o Click \inlineimage qtcreator-run.png
    to build and run the application.

    \endlist

*/



/*!
    \contentspage index.html
    \previouspage simulator-application.html
    \page simulator-generic.html
    \nextpage simulator-drives.html

    \title Simulating Device Use

    \image qt-simulator-generic-settings.png "Generic settings"

    You can use Qt Simulator to test applications that use the
    \l{http://doc.qt.nokia.com/qtmobility/systeminfo.html}{System Info API}
    to access general information from the mobile device.
    Mobile devices have been designed for use when mobile. Keep the characteristics of
    mobile devices in mind when you create applications for them. Use Qt Simulator to
    simulate the behavior of applications on different device models in different
    conditions:

    \list

    \o \l{Running Out of Battery Power}
    \o \l{Using Silent and Offline Profiles}
    \o \l{Changing Device Language}
    \o \l{Supporting Device Features}
    \o \l{Accessing Services}
    \o \l{Handling User Input}
    \o \l{Identifying Devices}
    \o \l{Using Colors}
    \omit \o \l{Turning off Screen Saver} \endomit

    \endlist

    \section1 Running Out of Battery Power

    Mobile devices are not constantly connected to a power outlet, but run on battery power.
    Optimize power consumption to keep the total consumption at an acceptable level and to
    prevent users from running out of battery power. In addition, make sure that applications
    run successfully in low-memory condition or display a clear and informative error message.

    You can write a script that decreases the battery level setting, to check how applications
    behave when the device runs out of power. You can load an example script that decreases the
    value for battery level, \tt{scripts/examples/runOutOfBattery.qs}.
    For more information on loading scripts, see \l{Scripting}.

    You can also check how applications behave, when the mobile device is connected to a
    power outlet or it is charging.

    Change the \gui{Battery level} and \gui{Power state} settings in the \gui{Generic}
    view.

    \section1 Using Silent and Offline Profiles

    Profiles allow users to adjust and customize ringing tones, alert tones, and other
    mobile device tones for different events, environments, or caller groups. Users can
    change the active profile on their devices.

    The \gui{Offiline} profile (flight mode) prevents mobile devices from accidentally
    switching on, sending, or receiving messages, or using WLAN, Bluetooth, GPS, or
    FM radio. In addition, it closes any Internet connection that may be in operation
    when users select the profile.

    Test applications with different profiles to make sure that:

    \list

    \o Application sounds do not override the currently selected profile. Sounds
    should not play in the \gui{Silent} profile, unless the application is intended for
    audio playback.

    \o Applications work correctly in the \gui{Offline} profile, with the
    phone capabilities and network connections disabled.

    \endlist

    In the \gui {Generic} view, \gui{Profile} field, select profiles to test the application with a
    particular profile.

    \section1 Changing Device Language

    Implement predefined texts in the application UI using logical names instead of
    hard-coding them to the application. This enables localization by changing the
    language packet (LOC file) that is used.

    After translation, UI texts in different languages may take up more space than the original
    text. To prepare for text expansion, avoid using long and difficult UI text.

    Do not truncate the predefined UI texts even if the components may do it automatically.
    This makes it difficult to understand the texts and creates a feeling of unfinished
    software.

    You can fine-tune UI text strings to different display sizes by producing
    separate text strings for the small and large displays (orientation, aspect ratio,
    physical size). This avoids the problem of having abbreviated text strings when there
    is plenty of display space available.

    When users change the language settings on the mobile device, the localized version should
    be started automatically.

    Click the \gui{Advanced Settings} button to display the language settings in the
    \gui{Generic} view:

    \list

    \o \gui{Language} displays the current system language as a two-letter ISO 639-1
    language code. For example, EN.

    \o \gui{Country code} displays the current system country code as a two-letter
    ISO 3166-1 country code.

    \o \gui{Available languages} displays available Qt language translations as two-letter
    ISO 639-1 language codes. If translations cannot be found, it displays the current system
    language.

    \endlist

    Change the \gui{Language} and \gui{Country code} settings
    to test that the localized versions of your application start correctly and look
    and function as they should.

    Click \gui{Show} next to \gui{Available languages}, and then click \gui Add to add new
    language codes. Use the ISO 639-1 language codes.

    \omit ### Is a link to the country code list needed here? \endomit

    \section1 Supporting Device Features

    Mobile devices support different sets of device features, depending on their configuration
    and the underlying hardware. When you develop applications for multiple devices, you can
    programmatically determine which platform, software version, languages, features, and
    accessories a particular device supports. This allows you to programmatically enable and
    disable application functions for a particular device.

    Change the \gui{Features} in the \gui{Generic} view to check how your
    application behaves when a particular device feature is supported or not supported.
    For example, devices can support several physical connection methods, such as \gui{Bluetooth},
    \gui{Infrared}, and \gui{USB} (universal serial bus) for downloading data. Devices can also
    have a \gui{Memory Card} available for storing the data.

    Change the \gui{Operating System}, \gui{Qt}, and \gui{Firmware} \gui{Versions} to check
    how your application behaves on a specific version. Click \gui{Change} to specify the
    version. Specify firmware versions as follows:
    \bold major.minor.build. If a particular version does not include the build part, set it to 0.
    If a particular element is not available at all, the API returns the error
    \bold {Not Installed}.

    \section1 Accessing Services

    The basis for access security is the effective identification of the users and the
    equipment they are using. The device can be protected with a lock code, while the
    SIM card, memory card, and applications can have their own PIN codes and passwords.
    For enterprise applications, this can mean that only a specific user with a specific
    application, device, memory card, and SIM card can access the corporate data.

    Devices are identified by international mobile equipment identity (IMEI) and
    international mobile subscriber identity (IMSI) numbers. Change the \gui{IMEI} and
    \gui{IMSI} numbers in the \gui{Generic} view to test access security for
    applications.

    \section1 Handling User Input

    In order to support as many target devices as possible, applications must support
    different input control configurations:

    \list

    \o Hardware keypad and touch

    \o Touch-only

    \o Hardware keypad only

    \endlist

    For devices that support both hardware keypad and touch interactions, consider which
    is the best mode of interaction for the application. For touch-only devices, all
    interactions should naturally be touch-optimised.

    For devices that support only the hardware keypad, touch-only components can be
    flagged out of the application. This way it is possible to create applications that
    will function with different device configurations.

    Change the \gui{Input methods} in the \gui{Generic} view to test how
    the application handles different input methods.

    \section1 Identifying Devices

    You can specify the \gui{Manufacturer}, \gui{Model}, and \gui{Product name} to
    allow applications to identify the device. You can write any values in the fields.
    For example, you could set \gui{Manufacturer} to \bold {Nokia} and \gui{Model} to \bold {N97}.

    \section1 Using Colors

    Like computer monitors, mobile devices use an additive color process. Unlike print
    media, which begin with a white surface, the computer screen begins as a black surface
    to which colored light red, green, and blue (RGB) is added.

    Although early mobile devices supported very few colors, color support is now quite
    robust, with a large proportion of devices providing 12-bit (4,096 colors),
    16-bit (65,536 colors), or 24-bit (16 million colors) color support. However,
    similar to the variety in screen size, many devices in use support varying color depths,
    with newer, low-cost models typically supporting 12- or 16-bit color depths.

    Applications can query the color scheme of the mobile device and adapt to it. For
    example, applications can switch to a night color scheme when brightness falls
    below a certain value.

    Change the \gui{Color depth} and \gui{Brightness} values in the \gui{Generic}
    view to change the way the application perceives them.

    \omit

    \section1 Turning off Screen Saver

    Applications can turn off the screen saver on the mobile device. However, if the screen
    saver is secure by policy, the policy is be honored and screen saver cannot be
    turned off.

    As a rule, do not override screen saver settings because they work automatically
    according to user-set preferences. The application can monitor the screen saver status
    to detect whether the device is in active use.

    You can override the settings in special cases, such as in a navigation
    application. However, the application should monitor the device status to check
    whether the prerequisites are still valid. For example:

    \list

        \o Is the device connected to a power supply (charger or car kit)?
        \o Does the application require lights on the foreground?
        \o Is the battery level sufficient?

    \endlist

    Select the \gui {Screen saver inhibited} check box in the \gui {Generic} view
    to turn off the screen saver.

    \endomit

*/

/*!
    \contentspage index.html
    \previouspage simulator-drives.html
    \page simulator-networking.html
    \nextpage simulator-location.html

    \title Simulating Networking

    Mobile applications can be divided into stand-alone and client-server applications.
    However, the difference is not always clear. Stand-alone applications may offer the
    possibility to refresh or update information from a server, and client-server
    applications may store recent information on the device, thus enabling use of the
    application without server connection.

    Additionally, connection to a server can be established through a variety of services,
    such as Bluetooth, WLAN, or the mobile network. If possible, the application should use
    the most sensible connection method, such as a WLAN for internet connection, when
    available.

    Hide the complexity of network connectivity in your applications. Short network coverage
    problems should not cause loss of users' work or stop them from working. Connection
    status should be displayed clearly. Synchronization should be automatic but under user
    control.

    When users move around with their mobile device, the device connects to
    available cells with sufficient signal strength. You can change the network settings to
    test how the application handles roaming from one cell or network to another.

    You can use Qt Simulator to test applications that use the
    \l{http://doc.qt.nokia.com/qtmobility/bearer-management.html}
    {Bearer Management API}
    to manage the connectivity state to the network.
    Change the \gui{Network mode properties}, such as \gui{Status} and
    \gui{Signal strength} in the \gui{Network} view.

    \image qt-simulator-network.png "Network settings"

    You can also load the \c sysinfonetwork.qs example script to test how your
    application behaves when the device moves between cells with varying signal strength
    in a GSM network. For more information on loading scripts, see \l{Scripting}.

*/

/*!
    \contentspage index.html
    \previouspage simulator-networking.html
    \page simulator-location.html
    \nextpage simulator-contacts.html

    \title Simulating Location

    Applications can use the
    \l{http://doc.qt.nokia.com/qtmobility/location-overview.html}
    {Location API} to access basic geographical information
    obtained from satellite or other sources about the user, including latitude and
    longitude, bearing, speed and altitude. This allows you to develop a range of
    geographical applications, for example, maps.

    The Location API provides a library for location positioning, landmark management,
    and mapping and navigation. You can simulate position and speed.

    \note You can also use Qt Simulator to test applications that use landmark management,
    mapping, and navigation in Qt Simulator, but there are no specific controls for
    simulating these features.

    Global positioning system (GPS) connections can consume the battery power rapidly,
    so you should take this into account when designing applications that access this
    functionality.

    \section1 Location Positioning

    Location-based services (LBS) use coordinates from the world geodetic system (WGS 84),
    which is also used as a reference system by the GPS.
    The coordinates are based on values for latitude, longitude, and altitude (elevation
    above sea level).

    The North Pole is 90 degrees North (+90 degrees) and the South Pole is 90 degrees South
    (-90 degrees). The Equator is defined as 0 degrees; locations above it have positive
    latitudes (0 to +90 degrees); those below (0 to -90 degrees) negative ones.

    There are two definitions of North Pole; Magnetic North Pole and True (Geographical)
    North Pole. Any application with a compass must check how the API defines North Pole.

    The Magnetic North Pole is the point to which compasses point. The True North Pole
    defines latitude as +90 degrees.

    Meridians are constant longitudinal (north-south) values. The Prime (Greenwich)
    Meridian's value is 0 degrees. WGS84, which LBS use, defines its zero meridian some
    100 meters east of the Prime one. Locations east of the Prime Meridian have positive
    longitudinal values (0 to +180 degrees), those west (0 to -180 degrees) have negative
    ones.

    Latitude lines are smaller near the poles. At the equator, one degree of longitude
    is roughly 111.3 km, whereas at 60 degrees of latitude one degree of longitude is
    only 55.8 km.

    \image location-info.png

    To test an application that uses LBS, specify the following values in the \gui{Location}
    view:

    \image qt-simulator-location.png "Location"

    \list

        \o In the \gui Latitude and \gui Longitude fields, specify the reported position
        (in decimal degrees). To adjust the position, you can specify the accuracy of the
        provided latitude-longitude value (in meters) in the \gui {Horizontal Accuracy}
        field.
        \o In the \gui Altitude field, specify the elevation from sea level of the
        reported position (in meters). To adjust the altitude, you can specify the accuracy
        of the reported value (in meters) in the \gui {Vertical Accuracy} field.
        \o in the \gui Direction field, specify the bearing of the device (in degrees),
        relative to true north.
        \o In the \gui {Ground speed} or \gui {Vertical speed} field, specify the velocity of
        the device (in meters per second) that reported the position.
        \o In the \gui {Magnetic variation} field, specify the angle between the horizontal
        component of the magnetic field and true north (in degrees). A positive value
        indicates a clockwise direction from true north and a negative value indicates a
        counter-clockwise direction.
        \o In the \gui Timestamp field, specify the date and time at which the position was
        reported.



    \endlist

    \section1 Simulating GPS Satellites

    To test satellite-monitoring applications, you can simulate GPS satellites. Open
    advanced settings to change satellite properties in the \gui{Satellites} view:

    \image qt-simulator-location-satellite.png "Satellites"

    \list

        \o In the \gui PRN field, select the pseudo-random noise (PRN) code that identifies
        the satellite. To use other than the pre-defined values, click \gui {Change PRN} and
        specify the PRN of a satellite.

        \o In the \gui Azimuth field, specify the direction of the satellite from the
        current position (in degrees), as an offset to true north.

        \o In the \gui Elevation field, specify the angle (in degrees) to see the satellite
        from the current position.

        \o In the \gui {Signal strength} field, specify the satellite signal strength
        in decibels.

        \o Select the \gui {In use} check box to specify that the satellite is used to
         determine the current position.

    \endlist

*/

/*!
    \contentspage index.html
    \previouspage simulator-generic.html
    \page simulator-drives.html
    \nextpage simulator-networking.html

    \title Simulating Storage Devices

    One or several storage devices, such as memory cards, can be added to mobile devices to increase the available
    storage space. Devices may also have internal non-removable memory cards or internal mass
    storage. That is, multiple drives are supported.

    Applications can use the \l{http://doc.qt.nokia.com/qtmobility/systeminfo.html}
    {System Info API} to check how much space is available in a
    particular storage. To test the applications, specify
    the space available on the device in the \gui{Available space} field in
    \gui{Storage Properties} in the \gui{Storage} view.

    \image qt-simulator-drives.png "Storage settings"

*/

/*!
    \contentspage index.html
    \previouspage simulator-location.html
    \page simulator-contacts.html
    \nextpage simulator-messaging.html

    \title Importing Contacts

    You can use Qt Simulator to test applications that use the
    \l{http://doc.qt.nokia.com/qtmobility/contacts.html}{Contacts API} to
    access
    address book information. The applications can create, edit, list, delete, and look up
    contact information whether it is stored locally or remotely.

    You can use the predefined contacts in the \gui{Contacts} view to test applications. Click
    \gui{Import} to import new contact information from vCard files (\c {.vcf}).

    \image qt-simulator-contacts.png "Contacts"

    The initial contact list is created from the data in \tt{stubdata/standardcontacts.vcf}
    during Qt Simulator startup. The \e {Self Simulator} contact is read from
    \tt{stubdata/standardselfcontact.vcf}.

    To export contact information to a vCard file, select \gui Export.
*/

/*!
    \contentspage index.html
    \previouspage simulator-quick-tour.html
    \page simulator-views.html
    \nextpage simulator-application.html

    \title Checking Application Layout

    Unlike PC displays, which have standardised to two or three common sizes,
    mobile phone displays still come in many shapes and sizes. The screens have
    grown larger, while smaller screens still exist at the lower end of the market.
    Displays typically support both portrait and landscape modes.

    The screen size of mobile devices is significantly smaller than that available
    on desktop devices. Carefully consider what is the most relevant content to
    present on the application UI, as it might not be reasonable to try and fit as
    much content into the screen as you might have in a desktop application.

    Relate the position and size of widgets to the dimensions of the display.
    This enables the same set of information to be presented on the screen in all
    resolutions; higher resolution devices just display finer graphics.

    Change the settings in the \gui{Model} view to check application
    layout.

    \image qt-simulator-view-settings.png "Model settings"

    \section1 Changing Device Models

    Each unique mobile device targets a different market niche, a combination of form,
    functionality, and price, which expands the total addressable market for mobile
    applications. The characteristics of your target devices, such as screen size and
    orientation, touch support, and the availability of a keyboard or home screen, affect
    application design.

    In the \gui{Device} field, select different device models to test the application
    on them.

    \section1 Rotating Devices

    Rotation changes the orientation of the primary display between portrait and
    landscape. Rotation is effected by a sensor.

    By default, all applications can present in portrait or landscape orientation.
    Based on the product ID, one orientation is considered dominant. Because most
    application software must deploy to multiple devices, ensure that your
    application layout is properly usable in all orientations.

    Applications can auto-rotate the screen according to the current device
    orientation or lock the screen into a particular orientation. Click the rotation
    buttons to change the orientation of the device. When the \gui {Rotate screen}
    check box is selected, the screen is auto-rotated to match the orientation of
    the device. However, some devices do not support screen rotation for all possible
    orientations. Deselect the check box to rotate the device without changing
    the orientation of the screen.

    \image qt-simulator-view-rotation.png "Rotation buttons"

    \section1 Changing Screen Resolution

    In addition to the display size in pixels, physical screen dimensions have an
    impact on designs. Devices with the same size display can vary in physical
    dimensions and, consequently, in screen resolution. The implications are most
    obvious on images, particularly on those that contain graphic text or fine details.
    For example, on devices that share a 240-pixel screen width, a logo that is legible
    at 154 pixels per inch may be somewhat less so at 199 pixels per inch.

    You can use Qt Simulator to ensure that screens designed on a large computer monitor
    are suitable once transferred to a mobile device and that critical visual elements
    remain legible at all supported screen sizes.

    Move the \gui{Zoom} slider to the left to scale the device to its real size and to the
    right to make each device pixel correspond to a pixel on the screen. However, Windows
    always reports the DPI of the screen as 96 pixels per inch, and therefore, Qt Simulator
    cannot reliably detect the DPI of the screen. The same problem might arise on some Linux systems
    that use a fixed value for the DPI.

    Click the \gui {Configure DPI Correction} button to make the \gui {Native size}
    setting match the real size of the device. In the \gui Configuration dialog,
    you can use the following approaches
    to scale the screen to the correct size:

    \list

        \o In the \gui {Diagonal in inches} field, enter the diagonal of the display
        in inches.

        \o In the \gui {Manual Correction} group, place a ruler next to the line,
        and then move the slider to the 10 inch or 4 centimeter mark on the ruler.

        \o In the \gui {Correction Factor} field, enter a value to scale the
        screen. This value is adjusted automatically when you edit the other
        fields.

    \endlist

    Qt Simulator scales fonts according to the screen DPI. Always specify font size in points,
    not pixels, to have them scaled correctly on different screen sizes.

    \omit ### Add an image of a screen in both ends of the scale\endomit



*/

/*!
    \contentspage index.html
    \previouspage index.html
    \page simulator-description.html
    \nextpage simulator-starting.html

    \title Introducing Qt Simulator

    Qt Simulator allows you to quickly test and debug applications that
    target mobile devices, without the overhead of emulating the device
    at hardware level. It provides special versions of the Qt and
    Qt Mobility libraries that forward the display and settings to it.

    You can link applications that use the Qt and Qt Mobility APIs to these
    libraries to run them inside Qt Simulator. This allows you to see how applications
    look and function on different devices in different situations. For example, you can
    view the application layout on Symbian and Maemo devices, in both landscape and
    portrait orientation. Or you can check how your application behaves when
    device battery power decreases to low or critical level.

    \image qt-simulator-devices.png "Symbian non-touch and Maemo devices"

    Qt Simulator does not support any device specific APIs by design. Therefore,
    applications that run well on Qt Simulator also run on any device that hosts the
    Qt and Qt Mobility libraries.

    The following Qt Mobility components are supported:
    \list
    \o \l{http://doc.qt.nokia.com/qtmobility/bearer-management.html}{Bearer Management}
    \o \l{http://doc.qt.nokia.com/qtmobility/multimedia.html#camera-support}{Camera}
    \o \l{http://doc.qt.nokia.com/qtmobility-1.2/connectivity-api.html}{Connectivity}
    \o \l{http://doc.qt.nokia.com/qtmobility/contacts.html}{Contacts}
    \o \l{http://doc.qt.nokia.com/qtmobility/gallery.html}{Document Gallery}
    \o \l{http://doc.qt.nokia.com/qtmobility/feedback.html}{Feedback}
    \o \l{http://doc.qt.nokia.com/qtmobility/location-overview.html}{Location}
    \o \l{http://doc.qt.nokia.com/qtmobility/messaging.html}{Messaging}
    \o \l{http://doc.trolltech.com/qtmobility/organizer.html}{Organizer}
    \o \l{http://doc.qt.nokia.com/qtmobility/publ-subs.html}{Publish and Subscribe}
    \o \l{http://doc.qt.nokia.com/qtmobility/service-frameworks.html}{Qt Service Framework}
    \o \l{http://doc.qt.nokia.com/qtmobility/sensors-api.html}{Sensors}
    \o \l{http://doc.qt.nokia.com/qtmobility/systeminfo.html}{System Information}
    \o \l{http://doc.qt.nokia.com/qtmobility/versit.html}{Versit}
    \endlist

    \note Qt Simulator does not have support for catching memory leaks in applications.
    Memory leaks occur when memory that has been allocated is not freed. To catch memory
    leaks, use the dynamic analysis tools available for the platform. For example, you can
    use Valgrind on Maemo and Symbian Emulator and Carbide tools on Symbian.
*/

/*!
    \contentspage index.html
    \previouspage simulator-touch.html
    \page simulator-scripting.html
    \nextpage simulator-adding-models.html

    \title Scripting

    The Qt Simulator JavaScript interface enables you to automate recurring
    sets of changes or to simulate a continuously changing environment.

    \image qt-simulator-scripting.png "Scripting"

    \section1 Locating Scripts

    Create a script (.js or .qs) that sets the device to its desired state when you
    open an application in Qt Simulator. Place the script in the \tt{scripts/autostart/}
    folder to run it automatically when Qt Simulator starts.

    You can then use the \gui{Device Control} dialog to change the default
    settings according to your test cases. To run the same tests repeatedly
    or to test complicated sequences of events, create scripts and place them in
    the \tt{scripts} folder.

    Place you favorite scripts in the \tt{scripts/favorites/} folder.

    Example scripts are located in \tt{scripts/examples/}.

    To open the folder that contains the scripts in a file browser,
    select \gui {Open Folder}.

    \section1 Running Scripts

    To run a script:

    \list 1

    \o Click the \gui{JS} quick access button to
    bring up a list of scripts in the \tt{scripts/favorites/} folder.

    \o Double-click a script in the \gui{Scripting} tab that shows
    the scripts in the \tt{scripts/} folder.

    \o Place a script in the \tt{scripts/autostart} folder to run it when Qt Simulator
    starts.

    \o Add the \c {-runscript <script file>} parameter to a call of the Qt Simulator application
    on the command line to trigger the execution of a script in the currently running Qt Simulator
    instance externally.

    \endlist

    The \gui{Active scripts} field shows a list of currently active scripts.
    To pause or resume a script, select it and click \gui{Pause}. To abort a script,
    select it and click \gui{Abort}.


    \section1 Function Reference

    The following objects and functions are added to the common JavaScript global scope:
    \list
       \o yield(ms): delay execution of this script for the given number of milliseconds
       \o simulator: \l{SimulatorScriptInterface}
       \o location: \l{LocationScriptInterface}
       \o sensors: \l{SensorsScriptInterface}
       \o sysinfo.generic: \l{GenericSystemInfoScriptInterface}
       \o sysinfo.network: \l{NetworkSystemInfoScriptInterface}
       \o sysinfo.storage: \l{StorageSystemInfoScriptInterface}
    \endlist
*/

/*!
    \contentspage index.html
    \previouspage simulator-scripting.html
    \page simulator-adding-models.html
    \nextpage simulator-declaring-qt-mobility-apis.html

    \title Adding New Device Models

    Qt Simulator contains predefined configuration files for several Nokia devices.
    You can add devices by creating configuration files that specify the screen
    size. That is, the size of the area on which Qt Simulator draws the
    application. You can also add an image of the device in PNG format.
    In the configuration file, specify the position of the screen within the image.

    The graphics and settings for the device models are stored in the \c {models/}
    folder next to your Qt Simulator executable. On Mac OS they are inside
    the simulator.app application bundle.

    To add a new device, create a subfolder
    and put a \c {<your device name>.config} file into it. It is easiest to
    copy and modify one of the existing files.

    <orientation> parameters may be one of the following: topUp, topDown, leftUp,
    rightUp, faceUp, faceDown

    Device configuration files have a key:value syntax, with the following valid keys:
    \list
        \o \c {name:<string>} - required. Name to show in the device selection
        drop down menu.

        \o \c {resolutionWidth:<integer>} - required. Width of the device screen.

        \o \c {resolutionHeight:<integer>} - required. Height of the device screen.

        \o \c {diagonalInInch:<float>} - required. Length of the screen diagonal
        in inches.

        \o \c {mockup:<path>} - required. Path to the image for the device.
        Relative to the \c{.config} file.

        \o \c {offsetX:<integer>} - required. Offset of the screen top left
        corner from the top left corner of the mockup image.

        \o \c {offsetY:<integer>} - required. Offset of the screen top left
        corner from the top left corner of the mockup image.

        \o \c{defaultFontSize:<integer>} - optional (default: 12). Font size the
        device uses if it is not set explicitly.

        \o \c {forceDpi:<integer>} - optional. Renders the screen by using
        this DPI value instead of the physical DPI computed from the
        \c {diagonalInInch} value.

        \o \c {style:<string>,<string>} - optional. The first string names the Qt style to be
        used for applications running in Qt Simulator. The second string is optional, only
        used for the s60 style and denotes the theme to be used. The only valid name is
        "nseriesblack"

        \o \c {button:<key name>,<key text>,<x>,<y>,<width>,<height>} -
        optional, may be used more than once. When the user clicks inside the
        rectangle defined by \c {x,y,width,height} send the key specified by \c {key name} and
        \c {key text} to the application. \c {key name} must be the name of a value in the
        Qt::Keys enum. \c {key text} is the value the \c {text()} member of the generated
        QKeyEvent returns. In order to make the \c {comma} key work the text has to be escaped.
        Just use \c {"\,"} (without quotaion marks) here.

        \o \c {menuImage:<orientation>,<string>} - optional.
        Images to use as menu mockups. The first parameter determines the orientation the menu
        should be used for, the second one the image path. The images may contain transparent
        areas to be aligned horizontally or vertically. The images are always positioned in the
        top left corner of the display. To make the menu appear to the right of the screen, add
        a transparent area on the left side of the image.

        \o \c {availableGeometry: <orientation>,<x>,<y>,<width>,<height>} - optional.
        The first parameter determines, which orientation should be affected by the given values.
        The other values define the screen area which is available for an application when menus
        are shown. If no menus are specified or the window is shown in full screen mode, the
        whole display is used.
    \endlist

    In addition to that, it is possible to run a script whenever your device is chosen in the
    device selection. Therefore just add a file named
    <name of your device (given in the .config file)>.qs to \c {scripts/devices}.
*/

/*!
    \contentspage index.html
    \previouspage simulator-serviceframework.html
    \page simulator-known-issues.html

    \title Known Issues

    In Linux, if hardware acceleration for graphics is not available, black
    corners appear around the device and the background turns black when rotating
    the device.
*/

/*!
    \contentspage index.html
    \previouspage simulator-contacts.html
    \page simulator-messaging.html
    \nextpage simulator-sensors.html

    \title Simulating Messaging

    The term messaging comprises text messaging, picture messaging, multimedia messaging,
    instant messaging, and e-mail. Text messaging is enabled by the Short Message Service (SMS).
    When providing email services to mobile device users, mobile devices rely upon the services
    provided by remote e-mail servers. They support the POP3, IMAP4 and SMTP protocols for
    connecting to these servers.

    You can use Qt Simulator to test applications that use the
    \l{http://doc.qt.nokia.com/qtmobility/messaging.html}{Messaging API} to
    access 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.

    In the \gui{Messaging} view, click \gui {Trigger} to trigger incoming email or SMS from
    a random person in the contact list.

    \image qt-simulator-messaging.png "Messaging view"

    Click \gui{Import} to import a whole
    directory of email messages that are stored in maildir format.

    During startup, Qt Simulator imports the directory \tt{stubdata/standardmessages/}.

*/

/*!
    \contentspage index.html
    \previouspage simulator-messaging.html
    \page simulator-sensors.html
    \nextpage simulator-organizer.html

    \title Simulating Sensors

    Mobile devices contain built-in sensors, such as an accelerometer, a compass, and ambient
    light or proximity sensors. The availability of sensors depends on the device model.

    The following types of interaction can be enabled by using the sensors on the device:

    \list

    \o Changing application settings based on the ambient light conditions, such as
    bright sunshine or night time.

   \o Changing the screen orientation on the device from portrait to landscape as
    the device is rotated.

    \o Silencing an incoming call when the device orientation is changed (for example, on a
    table) from screen down to screen up and back again.

    \o Allowing movement gestures, such as device rotation, to trigger an action.

    \o In a map application, changing the orientation of a map based on the device
    compass orientation.

    \o Triggering an action when the device comes in close proximity to the user's hand
    or head.

    \endlist

    You can test applications that use the
    \l{http://doc.qt.nokia.com/qtmobility/sensors-api.html}{Sensors API} in
    Qt Simulator.
    The \gui{Sensors} view contains controls to set the values the sensors currently
    return.

    \image qt-simulator-sensors.png "Sensors view"

    \section1 Changing Light Conditions

    Specify the ambient light state in the \gui {Ambient light} field.
    The listed values correspond to predefined amounts of units of illuminance
    (LUX): 0, 10, 100, 500, 5 000. To test using other LUX values, specify them
    in the \gui {Light (LUX)} field or use the slider to set the value.

    \section1 Device Movement

    The accelerometer sensor channel detects movement gestures, such as moving a mobile
    device up or down. The three-dimensional Cartesian coordinate system is used to
    illustrate direction of the acceleration, as shown in the figure below. The x and y axes
    define a plane where z-axis direction is perpendicular to the xy plane. When a device moves
    along an axis in the positive direction, the acceleration is positive. When the device
    moves in the negative direction, the acceleration is negative. For example, when a device
    moves along the x-axis to the direction of -x, the acceleration is negative.

    \image sensors-coordinates2.jpg "Acceleration"

    A mobile device placed screen up on a desk experiences a force of approximately 9.8 on
    the z axis (that is, upwards). This is the proper acceleration the device experiences
    relative to freefall.

    To simulate movement of the device:

    \list

        \o Click or right-click the image of the device in the \gui Orientation
        field and hold down the mouse button to rotate the image.

        \o Click the rotation buttons buttons to rotate the image:
        \image qt-simulator-sensors-rotation.png "Rotation buttons in Sensors view"

        \o Use the sliders to specify values for the x, y, and z axis in the
        \gui {Accelerometer x}, \gui {Accelerometer y}, and \gui {Accelerometer z}
        fields.

    \endlist

    \section1 Device Rotation

    The rotation sensor channel uses three angles, measured in degrees to define the
    orientation of the device in three-dimensional space. These angles are defined using right
    hand rotation with axes as defined by the right hand cartesian coordinate system.

    \image sensors-rotation.jpg "Rotation"

    Click or right-click the image of the device in the \gui Orientation field and hold down
    the mouse button to apply the angles to the device. You can also click the rotation buttons.
    This allows you to test how the application
    handles the interaction related to rotating the device.

    For more information about how the angles are applied, see
    \l{http://doc.qt.nokia.com/qtmobility-1.1.0/qrotationreading.html#qrotationreading-units}{QRotationReading Units}.

    \section1 Compass Orientation

    The compass returns the azimuth of the device as degrees from magnetic north in a clockwise
    direction based on the top of the device.

    \note The top of the device is a fixed point and may not represent the orientation that the
    user is holding the device in.

    The calibration status of the device must be accurate for the azimuth to be accurate.
    It takes some time to calibrate the magnetic north sensor and, even after being calibrated,
    it can become uncalibrated. So, for an application to be sure the data coming from the magnetic
    north sensor channel is accurate, it must monitor changes in the calibration property and
    inform the user if something needs to be done to recalibrate the sensor.

    Use sliders to set the \gui {Compass calibration level} and \gui {Compass azimuth} values.

    \section1 Proximity

    Proximity indicates how far away from the device the user is. Use the button to toggle between
    \gui {Near} and \gui {Far} distance.

    \section1 Using a Fixed Timestamp

    Many sensors update frequently, and therefore sensor readings done by the client
    application contain a fresh timestamp by default. To disable that and provide a fixed timestamp
    manually, select the \gui Override radio button in the \gui Timestamp group and specify
    a date and time.

*/

/*!
    \contentspage index.html
    \previouspage simulator-bearermanagement.html
    \page simulator-serviceframework.html
    \nextpage simulator-known-issues.html

    \title Testing Applications Using the Qt Mobility Service Framework

    The \l{http://qt.nokia.com/doc/qtmobility-1.1.0/service-frameworks.html}{Qt Service Framework}
    defines a unified way of finding, implementing and accessing services across multiple
    platforms.

    A service is an independent component that allows a client to perform a well-defined
    operation. Clients can find services based on their name and version as well as the
    interface that is implemented by the service object. Once the service has been identified,
    the framework starts the service and returns a pointer to it. Services are implemented as plugins.

    You can use the service framework to unify and access multiple platform specific service
    implementations via the same Qt-based client application. However,
    the service database is not shared between desktop applications and applications compiled
    for the Qt Simulator. Therefore, to test client applications using the service framework
    on Qt Simulator, you must use the \c{servicefw} command-line application
    \omit Ship it! Path? \endomit to register a service.

    To tell Qt where to look for plugins, either add them to the search path by calling
    QCoreApplication::addLibraryPath() or set the QT_PLUGIN_PATH.
*/


/*!
    \contentspage index.html
    \previouspage simulator-views.html
    \page simulator-application.html
    \nextpage simulator-generic.html

    \title Interacting with Applications

    You can run several applications simultaneously in Qt Simulator. They can be managed
    in the \gui Applications view.

    \image qt-simulator-application.png "Application view"

    The title of the active application is displayed in the \gui {Topmost widget's title}
    field.

    To test menu commands, click them in the \gui {Application's menu bar} field.
    The actions are simulated on the device screen.

    To quit the active application, click \gui Quit.

*/


/*!
    \contentspage index.html
    \previouspage simulator-declaring-qt-mobility-apis.html
    \page simulator-bearermanagement.html
    \nextpage simulator-serviceframework.html

    \title Using Bearer Management

    The Bearer Management API controls the connectivity state
    of the system and allows programs to start or stop interfaces or roam transparently
    between access points.

    The API was introduced in Qt Mobility 1.0.0 and is included in Qt 4.7. Qt Simulator
    uses Qt 4.7, and therefore, you can use either the Qt 4.7 Network module or the
    Qt Mobility 1.0.0 Bearer Management module in applications targeting the Qt Simulator.

    For now we recommend using the Qt Mobility module by adding
    \code
    CONFIG += mobility
    MOBILITY += bearer
    \endcode
    to the application pro file. This way, the application will compile for the Qt Simulator as
    well as current devices.

    The second way requires at least Qt 4.7 and is thus unavailable on current devices:
    \code
    QT += network
    \endcode
*/


/*!
    \contentspage index.html
    \previouspage simulator-sensors.html
    \page simulator-organizer.html
    \nextpage simulator-feedback.html

    \title Importing Calendar Events

    You can use Qt Simulator to test applications that use the
    \l{http://doc.trolltech.com/qtmobility/organizer.html}{Organizer API} to
    access calendar,
    scheduling and personal data. The applications can create, edit, list, delete, and look up event
    information that is stored locally.

    \image qt-simulator-organizer.png "Organizer"

    You can use the predefined events in the \gui{Organizer} view to test applications. Click
    \gui{Import} to import new events in the iCalendar (\c {.ics}) format. It is a widely supported
    exchange format for organizer data.

    Click \gui {Export} to export the test data to an .ics file.

*/


/*!
    \contentspage index.html
    \previouspage simulator-organizer.html
    \page simulator-feedback.html
    \nextpage simulator-documentgallery.html

    \title Simulating Feedback

    Touch devices provide feedback when users interact with the touch screen. Feedback consists of
    small signs (audio, vibration) that accompany touch events. These signs provide immediate physical
    confirmation that a touch event has been registered. Feedback thus enables a more responsive
    interaction experience by eliminating the passive feeling of touch UIs.

    The technology available today usually only provides haptic effects, which deal with the sense of
    touch, and audio effects.

    \section1 Providing Haptic Feedback

    Providing haptic feedback reduces the number of mistakes made by the user.
    It also improves user performance in terms of speed and accuracy, because haptic feedback is perceived
    more quickly than visual or audio feedback, which can be difficult for users to perceive when they
    are distracted or on the move.

    Furthermore, haptic feedback is silent, nonvisual, and individually communicated; it can be used
    for communicating information privately.

    Haptic feedback provides intuitive confirmation of an action. This is especially useful in case
    of gestures and strokes, where real-time confirmation of a successful action is essential.

    When creating custom components, consider using haptic feedback in:

    \list

        \o Buttons and sliders

        \o Strokes and gestures

        \o Notifications

    \endlist

    Providing real-time feedback is essential for confirming successful action. Lack of feedback is
    usually the best option for indicating that the user lost control of an object and an action was
    not completed. Users prefer short and gentle vibrations as gesture confirmation. Audio feedback
    can also be used, but it should be configurable by the user.

    \list

        \o Use soft feedback for successful actions.

        \o Use sharper, more disruptive feedback for unsuccessful actions.

    \endlist

    Haptic feedback is applied in order to increase usability. To achieve this goal, the triggering
    actions, feedback duration, patterns, and sequences must be planned carefully.

    When using haptic feedback, consider the following:

    \list

        \o Providing haptic feedback increases power consumption. Thus, excessive use of haptic
        feedback will drain the battery.

        \o If haptic feedback is used for every possible UI event, the device vibrates all the
        time and the vibration will no longer be meaningful for the user. Additionally, continuous
        haptic feedback may become irritating.

        \o When using different vibration patterns, they should be easy to differentiate; at
        maximum, use seven different patterns. Rhythmic patterns are easier to remember.

        \o Vibration sequences should be short in order to keep the feedback pleasant. Avoid
        sequences longer than 50 ms.

        \o If audio feedback is used, vibration sequences and audio should be synchronised.

        \o Haptic feedback should also be supported by a change in the visual style of the
        element, especially in case of buttons.

    \endlist

    \section1 Testing Feedback Effects

    You can use Qt Simulator to test applications that use
    l{http://doc.qt.nokia.com/qtmobility/feedback.html}{Feedback API} to manage
    device vibration
    and audio feedback.

    \image qt-simulator-feedback.png "Feedback"

    The \gui {Vibration Actuator} is used to control a mobile device's vibrator and the
    \gui {Audio Actuator} to play audio feedback. Usually, you do not have to change the
    settings. However, you can disable an actuator to check that the application behaves
    correctly if another application is using all actuators, for example.

    If you use feedback effects, such as haptic data files or audio files in your application, you
    can view their name, state, and duration in Qt Simulator while they run (some MIME types
    may not support duration information). This allows you to test that the application runs and
    terminates effects correctly.

    \note Qt Simulator only displays feedback effects that are triggered explicitly by using the
    Feedback API. The default feedback effects are not displayed.

*/


/*!
    \contentspage index.html
    \previouspage simulator-feedback.html
    \page simulator-documentgallery.html
    \nextpage simulator-camera.html

    \title Accessing Document Gallery

    You can use Qt Simulator to test applications that use the
    \l{http://doc.qt.nokia.com/qtmobility/gallery.html}{Document Gallery API}
    to access a
    gallery of documents and media stored on a device. The applications can find and navigate
    documents, as well as display document properties.

    You can use the documents delivered with Qt Simulator to test applications. In the
    \gui{Document Gallery} view, you can view information about the test documents, such as
    document location, file size, image size, and description. Double-click images to preview
    them.

    \note You cannot add your own test documents to the document gallery.

    \image qt-simulator-document-gallery.png "Document Gallery"
*/


/*!
    \contentspage index.html
    \previouspage simulator-documentgallery.html
    \page simulator-camera.html
    \nextpage simulator-nfc.html

    \title Simulating Camera

    You can use Qt Simulator to test applications that use the
    \l{http://doc.qt.nokia.com/qtmobility/multimedia.html}{Multimedia Kit API}
    to access
    the functions of a system camera.

    \image qt-simulator-camera.png "Camera"

    In the \gui Camera view, select the camera to simulate if the device has more than one
    camera. The \gui Back or \gui Front camera are predefined. To add another camera, click
    \gui Add.

    In the \gui Image field, you can enter text to display on the camera image. You can also
    display an actual image (in .png, .xpm, or .jpg format) from the development PC file
    system.

    \image qt-simulator-camera-image.png "Image in Camera view"

*/


/*!
    \contentspage index.html
    \previouspage simulator-adding-models.html
    \page simulator-declaring-qt-mobility-apis.html
    \nextpage simulator-bearermanagement.html

    \title Declaring Qt Mobility APIs

    To use the Qt Mobility APIs or develop applications for Symbian
    devices, you must modify the application .pro file to declare the Qt
    Mobility APIs that you use.

    Each Mobility API has its corresponding value that you have to add
    as a value of MOBILITY to use the API. For a list of the APIs and the
    corresponding values that you can assign to MOBILITY, see the
    \l {http://doc.qt.nokia.com/qtmobility/quickstart.html}{Quickstart Example}.

    For example, to use the System Info API, you must declare it, as
    illustrated by the following code snippet:

    \code

    CONFIG += mobility
    MOBILITY = systeminfo

    \endcode