class CPermanentFileStore : public CFileStore |
Permanent file store.
This type of store supports full manipulation of store contents. Existing streams within this type of store can be changed.
Public Member Functions | |
---|---|
CPermanentFileStore(RFile &) | |
CPermanentFileStore(RFileBuf &, const TUidType &) | |
~CPermanentFileStore() | |
CPermanentFileStore * | CreateL(RFs &, const TDesC &, TUint) |
CPermanentFileStore * | CreateLC(RFs &, const TDesC &, TUint) |
CPermanentFileStore * | FromL(RFile &) |
CPermanentFileStore * | FromLC(RFile &) |
IMPORT_C TUid | Layout() |
IMPORT_C void | MarshalL() |
CPermanentFileStore * | NewL(RFile &) |
CPermanentFileStore * | NewLC(RFile &) |
CPermanentFileStore * | OpenL(RFs &, const TDesC &, TUint) |
CPermanentFileStore * | OpenLC(RFs &, const TDesC &, TUint) |
CPermanentFileStore * | ReplaceL(RFs &, const TDesC &, TUint) |
CPermanentFileStore * | ReplaceLC(RFs &, const TDesC &, TUint) |
CPermanentFileStore * | TempL(RFs &, const TDesC &, TFileName &, TUint) |
CPermanentFileStore * | TempLC(RFs &, const TDesC &, TFileName &, TUint) |
Protected Member Functions | |
---|---|
IMPORT_C MStreamBuf * | DoCreateL(TStreamId &) |
IMPORT_C MStreamBuf * | DoReadL(TStreamId) |
IMPORT_C MStreamBuf * | DoReplaceL(TStreamId) |
IMPORT_C MStreamBuf * | DoWriteL(TStreamId) |
Private Member Functions | |
---|---|
CPermanentStoreCoord & | Coord() |
CPermanentStoreCoord & | CoordL() |
IMPORT_C void | DoCommitL() |
IMPORT_C MIncrementalCollector * | DoCompactL() |
IMPORT_C void | DoDeleteL(TStreamId) |
IMPORT_C TStreamId | DoExtendL() |
IMPORT_C CFileStore * | DoNewL(RFile &) |
IMPORT_C MIncrementalCollector * | DoReclaimL() |
IMPORT_C void | DoRevertL() |
IMPORT_C void | DoSetRootL(TStreamId) |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &) |
CPermanentStoreCoord & | TrimL() |
Private Attributes | |
---|---|
__MUTABLE CPermanentStoreCoord * | iCoord |
Inherited Attributes | |
---|---|
CPersistentStore::iRoot |
IMPORT_C | CPermanentFileStore | ( | RFileBuf & | aBuf, |
const TUidType & | aType | |||
) |
CPermanentFileStore * | CreateL | ( | RFs & | aFs, |
const TDesC & | aName, | |||
TUint | aFileMode | |||
) | [static, inline] |
Creates a new file and constructs a new permanent file store object to be associated with this file.
A pointer to the new permanent file store object.
CPermanentFileStore * | CreateLC | ( | RFs & | aFs, |
const TDesC & | aName, | |||
TUint | aFileMode | |||
) | [static, inline] |
Creates a new file and constructs a new permanent file store object to be associated with this file, and places the pointer onto the cleanup stack.
A pointer to the new permanent file store object.
IMPORT_C MStreamBuf * | DoCreateL | ( | TStreamId & | anId | ) | [protected, virtual] |
Creates a new stream in the store. The function gets the allocated stream id in the anId parameter. A stream buffer for the stream should be returned, ready to write into the new stream. This provides the implementation for the RStoreWriteStream::CreateL() functions.
The stream buffer to be written to.
TStreamId & anId | On return, contains the allocated stream id. |
IMPORT_C void | DoDeleteL | ( | TStreamId | anId | ) | [private, virtual] |
TStreamId anId |
IMPORT_C MStreamBuf * | DoReadL | ( | TStreamId | anId | ) | const [protected, virtual] |
Opens the requested stream for reading. The function should return a stream buffer positioned at the beginning of this stream.
This function is called by the OpenL() and OpenLC() member functions of RStoreReadStream.
A stream buffer positioned at the beginning of the stream to be read.
TStreamId anId | The stream to be read. |
IMPORT_C MStreamBuf * | DoReplaceL | ( | TStreamId | anId | ) | [protected, virtual] |
TStreamId anId |
IMPORT_C void | DoSetRootL | ( | TStreamId | anId | ) | [private, virtual] |
TStreamId anId |
IMPORT_C MStreamBuf * | DoWriteL | ( | TStreamId | anId | ) | [protected, virtual] |
TStreamId anId |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [private, virtual] |
RWriteStream & aStream |
CPermanentFileStore * | FromL | ( | RFile & | aFile | ) | [static, inline] |
Constructs a permanent file store object from an already opened file.
The file must already be open before calling this function.
Note that ownership of the file passes to the store. The referenced RFile is cleared and is no longer valid.
A pointer to the new permanent file store object.
RFile & aFile | A reference to the opened file. |
CPermanentFileStore * | FromLC | ( | RFile & | aFile | ) | [static, inline] |
Constructs a permanent file store object from an already opened file, and places the pointer onto the cleanup stack.
The file must already be open before calling this function.
Note that ownership of the file passes to the store. The referenced RFile is cleared and is no longer valid.
A pointer to the new permanent file store object.
RFile & aFile | A reference to the opened file. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | [private, virtual] |
RReadStream & aStream |
IMPORT_C TUid | Layout | ( | ) | const [virtual] |
Gets the UID that uniquely identifies the specific type of this file store.
This function must be defined and implemented by classes derived from CFileStore. The direct file store, CDirectFileStore and the permanent file store, CPermanentFileStore both implement suitable functions.
The UID that uniquely identifies the specific type of file store.
CPermanentFileStore * | NewL | ( | RFile & | aFile | ) | [static, inline] |
Constructs a new permanent file store object in an already opened file.
The file must already be open before calling this function. The existing content of the file is discarded.
Note that ownership of the file passes to the store. The referenced RFile is cleared and is no longer valid.
A pointer to the new permanent file store object.
RFile & aFile | A reference to the opened file. |
CPermanentFileStore * | NewLC | ( | RFile & | aFile | ) | [static, inline] |
Constructs a new permanent file store object in an already opened file and places the pointer onto the cleanup stack.
The file must already be open before calling this function.The existing content of the file is discarded.
Note that ownership of the file passes to the store. The referenced RFile is cleared and is no longer valid.
A pointer to the new permanent file store object.
RFile & aFile | A reference to the opened file. |
CPermanentFileStore * | OpenL | ( | RFs & | aFs, |
const TDesC & | aName, | |||
TUint | aFileMode | |||
) | [static, inline] |
Opens a file containing a permanent file store, and constructs a permanent file store object.
A pointer to the new permanent file store object.
CPermanentFileStore * | OpenLC | ( | RFs & | aFs, |
const TDesC & | aName, | |||
TUint | aFileMode | |||
) | [static, inline] |
Opens a file containing a permanent file store, constructs a permanent file store object, and places the pointer onto the cleanup stack.
A pointer to the new permanent file store object.
CPermanentFileStore * | ReplaceL | ( | RFs & | aFs, |
const TDesC & | aName, | |||
TUint | aFileMode | |||
) | [static, inline] |
Creates a file, constructs a permanent file store object to be associated with it.
This file replaces any existing file of the same name.
A pointer to the new permanent file store object.
CPermanentFileStore * | ReplaceLC | ( | RFs & | aFs, |
const TDesC & | aName, | |||
TUint | aFileMode | |||
) | [static, inline] |
Creates a file, constructs a permanent file store object to be associated with it, and places the pointer onto the cleanup stack.
This file replaces any existing file of the same name.
A pointer to the new permanent file store object.
CPermanentFileStore * | TempL | ( | RFs & | aFs, |
const TDesC & | aPath, | |||
TFileName & | aName, | |||
TUint | aFileMode | |||
) | [static, inline] |
Creates a temporary file and constructs a permanent file store object to be associated with it.
The new file is created in the specified path and a unique file name is generated by the file server.
Note that the store framework does not delete a temporary file after it is closed.
A pointer to the new permanent file store object.
CPermanentFileStore * | TempLC | ( | RFs & | aFs, |
const TDesC & | aPath, | |||
TFileName & | aName, | |||
TUint | aFileMode | |||
) | [static, inline] |
Creates a temporary file, constructs a permanent file store object to be associated with it, and places the pointer onto the cleanup stack.
The new file is created in the specified path and a unique file name is generated by the file server.
Note that the store framework does not delete a temporary file after it is closed.
A pointer to the new permanent file store object.