S60 3rd edition feature pack 1

Sorting custom objects


Objects stored in RArray or RPointer array can be sorted basing on any properties you like. Everything you have to do is to define a comparison function to be passed to the Sort() routine.

Here is an example on how to sort the custom CPerson objects by the last name. Note the use of CompareC for taking into account the locale specifics, when comparing strings.

Reading profile data in S60 3rd edition

Here's how you can read the current profile data in S60 3rd edition. The public central repository keys are defined in ProfileEngineSDKCRKeys.h. Mika Raento gives you a hint on how to access the hidden profile arguments.

As usual, find the compilable code example attached.

Syndicate content