Public Member Functions | |
~CCentRepExample () | |
void | ResetL () |
void | OpenRepositoryL () |
void | RdChgSetL () |
void | ReadSettingsL () |
void | ChangeSettingsL () |
void | MoveSettingsL () |
void | ResetAndNotifyL () |
void | FindSettingsL () |
void | TransactionFuncL () |
void | DeleteL () |
Static Public Member Functions | |
static CCentRepExample * | NewLC () |
CCentRepExample demonstrates some uses of the CRepository class. CRepository provides access to the Symbian platform central repository, which is used to store system and application settings.
The class demonstrates how to open a repository, read, write, and delete settings, perform operations in a transaction, find settings, restore default settings, and request change notifications.
Definition at line 55 of file centrepexample.h.
CCentRepExample::~CCentRepExample | ( | ) |
Destructor
Definition at line 128 of file centrepexample.cpp.
CCentRepExample * CCentRepExample::NewLC | ( | ) | [static] |
Allocates and constructs a CCentRepExample object and leaves it on the cleanup stack. Initialises all member data to their default values.
Definition at line 102 of file centrepexample.cpp.
void CCentRepExample::ResetL | ( | ) |
Resets the whole repository to the state of the initialization file originally used to set it up. KErrNotSupported, system-wide error codes.
Definition at line 144 of file centrepexample.cpp.
void CCentRepExample::OpenRepositoryL | ( | ) |
Creates a CRepository object for accessing the repository with the specified UID and displays some of the initial settings. KErrNotFound, KErrAbort, KErrPermissionDenied, KErrArgument, system-wide error codes.
Definition at line 167 of file centrepexample.cpp.
void CCentRepExample::ReadSettingsL | ( | ) |
Reads the Changed settings and prints them. KErrNotFound, KErrAbort, KErrPermissionDenied, KErrArgument, system-wide error codes.
Definition at line 217 of file centrepexample.cpp.
void CCentRepExample::ChangeSettingsL | ( | ) |
Sets an existing setting to a new value or creates a new setting with a value if the setting doesn't exist. KErrAbort, KErrPermissionDenied, KErrArgument, system-wide error codes.
Definition at line 197 of file centrepexample.cpp.
void CCentRepExample::MoveSettingsL | ( | ) |
Moves a key from one location to another. KErrAbort, KErrPermissionDenied, KErrArgument, system-wide error codes.
Definition at line 358 of file centrepexample.cpp.
void CCentRepExample::ResetAndNotifyL | ( | ) |
Sets KInt1 to a different value, resets it and gets notification that this value has changed. KErrAlreadyExists error from IPC or server side resource allocation failure
Definition at line 319 of file centrepexample.cpp.
void CCentRepExample::FindSettingsL | ( | ) |
Finds all the settings for both simple and structured data. Finds all the settings that exist and match the specification given by a partialKey and a mask. Matches occur whenever (key & mask) == (partialKey & mask). KErrAbort, KErrPermissionDenied, KErrArgument, system-wide error codes.
Definition at line 256 of file centrepexample.cpp.
void CCentRepExample::TransactionFuncL | ( | ) |
Perform read and write operations using transactions. KErrLocked, panic.
Definition at line 374 of file centrepexample.cpp.
void CCentRepExample::DeleteL | ( | ) |
Deletes 3 settings KInt1_InitialValue, KMoveTarget and KReal1 KErrAbort, KErrPermissionDenied, KErrArgument, system-wide error codes.
Definition at line 447 of file centrepexample.cpp.