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()

void ConstructL ( ) [private]

Second phase constructor

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

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

Creates the dps script file

Parameters

const TDesC & aFileName the script file name
const TDesC8 & aScript the script file content the file size
const TInt aFileSize

Delete(const TDesC &)

TInt Delete ( const TDesC & aFileName )

Deletes the file

Parameters

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

FileSession()

RFs & FileSession ( ) [inline]

FileSizeL(const TDesC &, TInt &)

void FileSizeL ( const TDesC & aFileName,
TInt & aSize
)

Parameters

const TDesC & aFileName
TInt & aSize

GetContentL(const TDesC &, TDes8 &)

void GetContentL ( const TDesC & aFileName,
TDes8 & aScript
)

Gets the content of the script file

Parameters

const TDesC & aFileName the file name
TDes8 & aScript the 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]