RFavouritesFile Class Reference

class RFavouritesFile : public RFavouritesHandle

RFavouritesFile is a class derived from RFavouritesHandle . Each favourites item or folder can have an associated file with arbitrary content.

Inherits from

Constructor & Destructor Documentation

RFavouritesFile()

RFavouritesFile ( ) [inline]
Constructor.
Since
0.9
Implementation of RFavouritesFile::RFavouritesFile
Since
0.9

Member Functions Documentation

Close()

IMPORT_C void Close ( )
Close this object.
Since
0.9

DoOpen(RFavouritesDb &, TInt, TInt)

TInt DoOpen ( RFavouritesDb & aDb,
TInt aUid,
TInt aFunction
) [private]
Implementation of Open functions.
Since
0.9

Parameters

RFavouritesDb & aDb Database handle.
TInt aUid Uid of item.
TInt aFunction Function.

Open(RFavouritesDb &, TInt)

IMPORT_C TInt Open ( RFavouritesDb & aDb,
TInt aUid
)
Open existing file with shared read-access.
Since
0.9

Parameters

RFavouritesDb & aDb Database handle.
TInt aUid Uid of item.

Read(TDes8 &)

IMPORT_C TInt Read ( TDes8 & aDes ) const
Read from file.
Since
0.9

Parameters

TDes8 & aDes Descriptor into which binary data is read. Any existing contents are overwritten. On return, its length is set to the number of bytes read.

Replace(RFavouritesDb &, TInt)

IMPORT_C TInt Replace ( RFavouritesDb & aDb,
TInt aUid
)
Create new file / replace existing with exclusive write-access. Existing content of the file, if any, is lost.
Since
0.9

Parameters

RFavouritesDb & aDb Database handle.
TInt aUid Uid of item.

Size(TInt &)

IMPORT_C TInt Size ( TInt & aSize ) const
Get the size of the file.
Since
0.9

Parameters

TInt & aSize Gives back the size of the file.

Write(const TDesC8 &)

IMPORT_C TInt Write ( const TDesC8 & aDes )
Writes to file.
Since
0.9

Parameters

const TDesC8 & aDes Descriptor from which binary data is written.

Member Data Documentation

CFavouritesFileImpl * iImpl

CFavouritesFileImpl * iImpl [private]