plugins/contacts/symbiansim/symbiansim_defines.pri
changeset 0 876b1a06bc25
equal deleted inserted replaced
-1:000000000000 0:876b1a06bc25
       
     1 
       
     2 symbian: {
       
     3     # Uncomment this to use Etel test server (instead of real Etel APIs)
       
     4     #DEFINES += SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER
       
     5 
       
     6     # add either real or test libraries for Etel
       
     7     contains(DEFINES, SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER): {
       
     8         message("Using Etel Test Server (not real Etel)")
       
     9         INCLUDEPATH +=$${EPOCROOT}epoc32/include/internal
       
    10         LIBS += -leteltestserverclient
       
    11     } else {
       
    12         message("Using real Etel APIs")
       
    13         LIBS += -letel \
       
    14                 -letelmm
       
    15     }
       
    16     
       
    17     contains(S60_VERSION, 3.1) {
       
    18         
       
    19         # In S60 3.1 we need to use TMobilePhoneBookInfoV1 instead of TMobilePhoneBookInfoV5.
       
    20         # Note: Etel testsserver uses V5 always.
       
    21         !contains(DEFINES, SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER) {
       
    22             	DEFINES += SYMBIANSIM_BACKEND_PHONEBOOKINFOV1
       
    23         }
       
    24     }
       
    25 
       
    26     # Enable checking the existence of a contact before trying to remove it.
       
    27     # This is needed because a contact backend is supposed to give an error
       
    28     # when trying to remove a nonexistent contact, but SIM store does not
       
    29     # give an error in such situations.
       
    30     # In S60 3.1 devices the consequences are even worse; the device will
       
    31     # reboot when trying to remove several nonexistent contacts in a row.
       
    32     # The first remove operation will succeed but right after the second
       
    33     # remove operation has completed the device reboots.
       
    34     DEFINES += SYMBIANSIM_BACKEND_CHECK_BEFORE_REMOVE
       
    35     
       
    36     contains(S60_VERSION, 3.1) | contains(S60_VERSION, 3.2) | contains(S60_VERSION, 5.0) {
       
    37     
       
    38        # In pre 10.1 platforms we need a small delay between requests to prevent
       
    39        # S60 3.2 devices from rebooting and S60 5.0 devices from reporting a
       
    40        # server busy error. Not sure if this is really needed for S60 3.1 but
       
    41        # it does not hurt.     
       
    42        DEFINES += SYMBIANSIM_BACKEND_USE_DELAY
       
    43        
       
    44        # In pre 10.1 platforms we need to check extra detail support 
       
    45        # (nickname/additional number/email) by trying to write them to sim card. 
       
    46        # This is because when using RMobilePhoneStore::GetInfo() it does not
       
    47        # report them correctly. There is another API for checking this but
       
    48        # it cannot be used as it is not public on these platforms.
       
    49        DEFINES += SYMBIANSIM_BACKEND_TEST_EXTRADETAILS
       
    50     }     
       
    51 }