TImAttachmentFile Class Reference

class TImAttachmentFile

Constructor & Destructor Documentation

TImAttachmentFile(RFs &)

IMPORT_C TImAttachmentFile ( RFs & aFileSession )

Parameters

RFs & aFileSession

~TImAttachmentFile()

IMPORT_C ~TImAttachmentFile ( )

Member Functions Documentation

AppendValidFile(const TDesC &, const TDesC &, TFileName &)

TInt AppendValidFile ( const TDesC & aDirPath,
const TDesC & aFileName,
TFileName & rFullFilePath
)

Parameters

const TDesC & aDirPath
const TDesC & aFileName
TFileName & rFullFilePath

CloseFile()

IMPORT_C TInt CloseFile ( )

CreateFile(const TDesC &, const TDesC &)

IMPORT_C TInt CreateFile ( const TDesC & aDirPath,
const TDesC & aFileName
)

Parameters

const TDesC & aDirPath
const TDesC & aFileName

DeleteAttachment(const TDesC &, const TDesC &)

IMPORT_C TInt DeleteAttachment ( const TDesC & aDirPath,
const TDesC & aFileName
)

Parameters

const TDesC & aDirPath
const TDesC & aFileName

FlushFile()

TInt FlushFile ( ) [private]

MakeDir(const TDesC &)

IMPORT_C TInt MakeDir ( const TDesC & aDirPath )

Parameters

const TDesC & aDirPath

OpenFile(const TDesC &, const TDesC &)

IMPORT_C TInt OpenFile ( const TDesC & aDirPath,
const TDesC & aFileName
)

Parameters

const TDesC & aDirPath
const TDesC & aFileName

ReadFile(TDes8 &, TInt)

IMPORT_C TInt ReadFile ( TDes8 & rBuffer,
TInt aNumBytes
)

Parameters

TDes8 & rBuffer
TInt aNumBytes

ReadFile()

TInt ReadFile ( ) [private]

Reset()

void Reset ( ) [private]

SelectFileData(TInt &, TInt &)

TPtrC8 SelectFileData ( TInt & abufLen,
TInt & aDataLen
) [private]

Parameters

TInt & abufLen
TInt & aDataLen

SetFileHandle(RFile &, TImFileOpenMode)

IMPORT_C void SetFileHandle ( RFile & aFile,
TImFileOpenMode aFileMode
)

Parameters

RFile & aFile
TImFileOpenMode aFileMode

WriteFile(const TDesC8 &)

IMPORT_C TInt WriteFile ( const TDesC8 & aBuffer )

Parameters

const TDesC8 & aBuffer

WriteFile(const TDesC16 &)

IMPORT_C TInt WriteFile ( const TDesC16 & aBuffer )

Parameters

const TDesC16 & aBuffer

WriteFile()

TInt WriteFile ( ) [private]

Member Enumerations Documentation

Enum TImFileOpenMode

Enumerators

EImFileRead = 0

File opened for read mode

EImFileWrite

File opened for write mode

Member Data Documentation

TBuf8< KDataLineBufferLength > iDataLine

TBuf8 < KDataLineBufferLength > iDataLine [private]

RFile iFile

RFile iFile [private]

RFs & iFileSession

RFs & iFileSession [private]

TFileText iFileText

TFileText iFileText [private]

TFileName iFullFilePath

TFileName iFullFilePath [private]

TInt iPositionInCache

TInt iPositionInCache [private]

TInt iSpaceOnCache

TInt iSpaceOnCache [private]

TBool iWritingToFile

TBool iWritingToFile [private]