Skip to main content

Posts

Showing posts from October, 2011

Read/Edit Phone Contacts Using Qt

Here I'm posting a code snippet I used to modify my contacts on both SIM card and phone memory. What this code does is that it loops over all available memories on phone and edits each number according to a criteria I set. To simplify the code, I removed the business parts and posted only the parts related to Qt Framework and the loop over the contacts.  The skeleton of the process is as follows: Get all available manager on device. In my case they where "symbian" (i.e: phone memory) and "symbiansim" (i.e: SIM card) Loop over the list of managers. For each manager, get the ids of available contacts. For each contact id, get all the available phone numbers. For each phone number, decide if it needs to be changed (the business part), or just output the number or use it however you want. A couple of flags are set to save any changes in a number/contact [*.pro] symbian:TARGET.CAPABILITY += ReadUserData WriteUserData CONFIG += mobility MOBILITY += c...