CDpsFile Class Reference

class CDpsFile : public CBase

This class creates, reads, writes and deletes dps files.

Inherits from

Constructor & Destructor Documentation

~CDpsFile()

~CDpsFile()

C++ destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

Second phase constructor

CreateScriptFile(const TDesC &, const TDesC8 &, const TInt)

TInt CreateScriptFile(const TDesC &aFileName,
const TDesC8 &aScript,
const TIntaFileSize
)

Creates the dps script file

Parameters

const TDesC & aFileNamethe script file name
const TDesC8 & aScriptthe script file content the file size
const TInt aFileSize

Delete(const TDesC &)

TInt Delete(const TDesC &aFileName)

Deletes the file

Parameters

const TDesC & aFileNamethe name of the file to be delted.

FileSession()

RFs &FileSession()[inline]

FileSizeL(const TDesC &, TInt &)

voidFileSizeL(const TDesC &aFileName,
TInt &aSize
)

Parameters

const TDesC & aFileName
TInt & aSize

GetContentL(const TDesC &, TDes8 &)

voidGetContentL(const TDesC &aFileName,
TDes8 &aScript
)

Gets the content of the script file

Parameters

const TDesC & aFileNamethe file name
TDes8 & aScriptthe file content. It has the valid content after this call is returned.

NewL()

CDpsFile *NewL()[static]

Two-phased constructor.

Member Data Documentation

RFs iFs

RFs iFs[private]