--- a/qtmobility/plugins/contacts/symbiansim/symbiansim_defines.pri Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/plugins/contacts/symbiansim/symbiansim_defines.pri Mon May 03 13:18:40 2010 +0300
@@ -13,4 +13,28 @@
LIBS += -letel \
-letelmm
}
+
+ contains(S60_VERSION, 3.1) {
+
+ # In S60 3.1 we need to use TMobilePhoneBookInfoV1 instead of TMobilePhoneBookInfoV5.
+ # Note: Etel testsserver uses V5 always.
+ !contains(DEFINES, SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER) {
+ DEFINES += SYMBIANSIM_BACKEND_PHONEBOOKINFOV1
+ }
+
+ # S60 3.1 device will reboot when removing several nonexisting contacts in
+ # sequence. The first remove operation will succeed but right after the second
+ # remove operation has completed the device reboots. To prevent rebooting
+ # we read the reserved slots before and really remove those contacts that
+ # really exist.
+ DEFINES += SYMBIANSIM_BACKEND_CHECK_BEFORE_REMOVE
+ }
+
+ # In pre 10.1 platforms we need a small delay between requests to prevent
+ # S60 3.2 devices from rebooting and S60 5.0 devices from reporting a
+ # server busy error. Not sure if this is really needed for S60 3.1 but
+ # it does not hurt.
+ contains(S60_VERSION, 3.1) | contains(S60_VERSION, 3.2) | contains(S60_VERSION, 5.0) {
+ DEFINES += SYMBIANSIM_BACKEND_USE_DELAY
+ }
}