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 () |
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 39 of file centrepexample.h.
| CCentRepExample::~CCentRepExample | ( | ) |
Destructor
Definition at line 112 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 86 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 128 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 151 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 201 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 181 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 342 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 303 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 240 of file centrepexample.cpp.
| void CCentRepExample::TransactionFuncL | ( | ) |
Perform read and write operations using transactions. KErrLocked, panic.
Definition at line 358 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 431 of file centrepexample.cpp.
1.5.3