examples/SysLibs/CentRepExample/centrepexample.cpp File Reference

Go to the source code of this file.

Functions

 _LIT (KTitle,"Central repository example")
 _LIT (KTextPressAKey,"\n\nPress any key to step through the example")
 _LIT (KExit,"\nPress any key to exit the application ")
 _LIT (KPressAKey,"\nPress any key to continue \n")
 _LIT (KErr,"\nThe repository file has not been set up. Please see the instructions in centrepexample.cpp for how to do this")
 _LIT (KOpen,"\n\nOpening the repository and displaying some initial settings")
 _LIT (KChangeSet,"\nChanging some settings in the repository")
 _LIT (KReadSet,"\nReading the changed settings")
 _LIT (KTransact,"\n\nPerforming read and write transactions")
 _LIT (KDelete,"\n\nCreating integer and real number settings and deleting them")
 _LIT (KMove,"\n\nMoving the key to target position")
 _LIT (KReset,"\nResetting settings to default values, and getting notifications that the changes have occurred")
 _LIT (KFind,"\nFinding settings for simple and structured data")
 _LIT (KNonExisting,"\n\nValue of new setting is %d")
 _LIT (KInt,"\nValue of setting with key x01 is %d")
 _LIT (KReal,"\nValue of setting with key x02 is %f")
 _LIT (KInteg,"\nValue of setting with key x06 is %d \n")
 _LIT (KIntBefore,"\nValue of setting with key x01 before reset is %d")
 _LIT (KIntAfter,"\nValue of setting with key x01 after reset is %d")
 _LIT (KIdsFound,"\nFound %d settings")
 _LIT (KStringName,"Another string")
 _LIT (KString1_UpdatedValue,"Value of setting with key x05 is %s")
LOCAL_C void MainL ()
GLDEF_C TInt E32Main ()

Variables

const TUint32 KNonExistentSetting = 0x10
const TUint32 KInt1 = 0x01
const TUint32 KInt3 = 0x06
const TUint32 KReal1 = 0x02
const TUint32 KString1 = 0x05
const TInt KInt1_InitialValue = 1
const TInt KInt1_UpdatedValue = 73
const TReal KReal1_InitialValue = 14.91
const TReal KReal1_UpdatedValue = 72.8
const TUint32 KMoveTarget = 0x30

Detailed Description

Definition in file centrepexample.cpp.


Function Documentation

GLDEF_C TInt E32Main (  ) 

Returns standard error code on exit

Secure variant only Process entry point. Called by client using RProcess API

Returns:
Standard Epoc error code on process exit
Standard Epoc error code on process exit Secure variant only Process entry point. Called by client using RProcess API

Entry point for the example

A normal Symbian OS executable provides an E32Main() function which is called by the operating system to start the program.

The below section is added to make the code compatible with v9.1 This is because only exe files are compatible with v9.1

Standard entrypoint function for UI applications.

Returns:
Return code from EikStart::RunApplication.

E32Main() contains the program's start up code, the entry point for an EXE.

Definition at line 500 of file centrepexample.cpp.


Generated by  doxygen 1.6.2