RStoreReclaim Class Reference
Performs space reclamation or compaction on a permanent file store in incremental steps.
Reclaiming unused space makes it available for re-use by the store. Compacting makes unused space available for re-use by the relevant system pool for example, the filing system in the case of file-based stores.
Once compaction is complete, the store must be committed.
Notes:
Space reclamation and compaction are only supported by the file store CPermanentFileStore and are not supported by embedded or direct file stores.
Use active objects when implementing space reclamation or compaction asynchronously.
This class performs incremental compaction/reclamation. These operations can be performed in a possibly long running single step using
CStreamStore
functions.
Constructor & Destructor Documentation
RStoreReclaim()
RStoreReclaim
|
(
|
)
|
[inline]
|
Member Functions Documentation
Available()
TInt
|
Available
|
(
|
)
|
const [inline]
|
Returns the amount of free space currently available within the store. The function may be called at any time during space reclamation or compaction.
Close()
Stops space reclamation or compaction. All allocated resources are freed.
Notes:
If a cleanup item was placed on the cleanup stack when the
RStoreReclaim
object was prepared for space reclamation or compaction (i.e. by a call to
OpenLC()
or
CompactLC()
), then this function need not be called explicitly; clean up is implicitly done by
CleanupStack::PopAndDestroy()
.
The
ResetL()
member function can be used to restart abandoned space reclamation or compaction activity.
CompactL(CStreamStore &, TInt &)
CompactLC(CStreamStore &, TInt &)
Next(TPckgBuf< TInt > &, TRequestStatus &)
NextL(TInt &)
IMPORT_C void
|
NextL
|
(
|
TInt
&
|
aStep
|
)
|
|
NextL(TPckgBuf< TInt > &, TRequestStatus &)
OpenL(CStreamStore &, TInt &)
OpenLC(CStreamStore &, TInt &)
Release()
IMPORT_C void
|
Release
|
(
|
)
|
|
ResetL(TInt &)
IMPORT_C void
|
ResetL
|
(
|
TInt
&
|
aCount
|
)
|
|
Member Data Documentation
MIncrementalCollector * iCol
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.