5.1.1 Module Level Functions

The following free functions - functions that do not belong to any class - are defined in the Contact module:

open( [filename[, mode]])

Opens a contacts database and returns a ContactDb object. filename should be a full Unicode path name. If filename is not given, opens the default contacts database. If mode is not given, the database must exist. If mode is 'c', the database is created if it does not already exist. If mode is 'n', a new, empty database is created, overwriting the possible previous database.

Warning: Using open together with the additional parameters filename or mode is intended for testing purposes only. Due to S60 SDK functionality, the open method can sometimes be unreliable with these parameters.

See About this document... for information on suggesting changes.