Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: s32crypt.h
Link against: estor.lib

Class RSecureStorePagePool

RSecureStorePagePool

Support

Supported from 5.0

Description

Uses an encrypted store to implement the page pool interface MPagePool.

A secure store page pool uses a cache to store pages in-memory and to cache frequently accessed pages. You should provide a cache object (CPageCache) to the pool for this purpose.

Derivation

MPagePoolInterface to a page pool, the storage abstraction used by the B-trees API
RSecureStorePagePoolUses an encrypted store to implement the page pool interface MPagePool
RStorePagePoolUses a store to implement the page pool interface MPagePool
TCachePagePoolProvides a page pool with cached pages

Defined in RSecureStorePagePool:
DoDeleteL(), ExtendL(), RSecureStorePagePool(), ReadL(), WriteL()

Inherited from MPagePool:
Delete(), DeleteL(), Pop(), PushL()

Inherited from RStorePagePool:
Close(), Create(), Discard(), HasAvailable(), IsDirty(), IsEmpty(), MarkCurrent(), MarkDirty(), Open(), ReclaimAllL(), ReclaimL(), Release(), Token()

Inherited from TCachePagePool:
AcquireL(), AllocL(), AssignL(), Flush(), FlushL(), LockL(), Purge(), Set(), Unlock(), UpdateL()

See also:


Construction


RSecureStorePagePool()

RSecureStorePagePool(const CBoundedSecurityBase& aKey);

Description

Constructor with security model.

Parameters

const CBoundedSecurityBase& aKey

Security model to use for the encryption


RSecureStorePagePool()

RSecureStorePagePool(CPageCache& aCache,const CBoundedSecurityBase& aKey);

Description

Constructor with page cache and security model.

Parameters

CPageCache& aCache

Page cache

const CBoundedSecurityBase& aKey

Security model to use for the encryption

[Top]


Store management


DoDeleteL()

protected: void DoDeleteL(TPageRef aRef);

Description

Deletes a specified page.

Parameters

TPageRef aRef

Reference to page to delete


ExtendL()

protected: TPageRef ExtendL(const TAny* aPage,TPageReclamation aReclamation);

Description

Adds a new page to the pool.

Parameters

const TAny* aPage

Data for the page

TPageReclamation aReclamation

Flags that define how allocated pages can be reclaimed

Return value

TPageRef

Reference to newly created page


ReadL()

protected: void ReadL(TPageRef aRef,TAny* aPage);

Description

Reads a specified page from the pool.

Parameters

TPageRef aRef

Reference to page to read

TAny* aPage

On return, the page data


WriteL()

protected: void WriteL(TPageRef aRef,const TAny* aPage,TPageChange aChange);

Description

Writes data to a page in the pool.

Parameters

TPageRef aRef

Reference to the page to which to write

const TAny* aPage

Data to write

TPageChange aChange

Flags that define how a page should be treated when it is unlocked for writing