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
Return Value
void

Open ( RFavouritesDb &, TInt )

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

Read ( TDes8 & )

IMPORT_C TIntRead(TDes8 &aDes)const
Read from file.
Since
0.9
Parameters
aDesDescriptor into which binary data is read. Any existing contents are overwritten. On return, its length is set to the number of bytes read.
Return Value
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
Parameters
aDbDatabase handle.
aUidUid of item.
Return Value
Error code.

Size ( TInt & )

IMPORT_C TIntSize(TInt &aSize)const
Get the size of the file.
Since
0.9
Parameters
aSizeGives back the size of the file.
Return Value
Error code.

Write ( const TDesC8 & )

IMPORT_C TIntWrite(const TDesC8 &aDes)
Writes to file.
Since
0.9
Parameters
aDesDescriptor from which binary data is written.
Return Value
Error code.