RFavouritesFile Class Reference

#include <mw/favouritesfile.h>

class RFavouritesFile : public RFavouritesHandle

Inherits from

Detailed Description

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

Constructor & Destructor Documentation

RFavouritesFile ( )

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

Member Function Documentation

Close ( )

IMPORT_C voidClose()

Reimplemented from RFavouritesHandle::Close()

Close this object.
Since
0.9

Returns: void

Open ( RFavouritesDb &, TInt )

IMPORT_C TIntOpen(RFavouritesDb &aDb,
TIntaUid
)
Open existing file with shared read-access.
Since
0.9
ParameterDescription
aDbDatabase handle.
aUidUid of item.

Returns: Error code.

Read ( TDes8 & )

IMPORT_C TIntRead(TDes8 &aDes)const
Read from file.
Since
0.9
ParameterDescription
aDesDescriptor into which binary data is read. Any existing contents are overwritten. On return, its length is set to the number of bytes read.

Returns: Error code.

Replace ( RFavouritesDb &, TInt )

IMPORT_C TIntReplace(RFavouritesDb &aDb,
TIntaUid
)
Create new file / replace existing with exclusive write-access. Existing content of the file, if any, is lost.
Since
0.9
ParameterDescription
aDbDatabase handle.
aUidUid of item.

Returns: Error code.

Size ( TInt & )

IMPORT_C TIntSize(TInt &aSize)const
Get the size of the file.
Since
0.9
ParameterDescription
aSizeGives back the size of the file.

Returns: Error code.

Write ( const TDesC8 & )

IMPORT_C TIntWrite(const TDesC8 &aDes)
Writes to file.
Since
0.9
ParameterDescription
aDesDescriptor from which binary data is written.

Returns: Error code.