TImAttachmentFile Class Reference

#include <app/miutatch.h>

Link against: imcm.lib

class TImAttachmentFile
Public Member Enumerations
enumTImFileOpenMode { EImFileRead, EImFileWrite }
Public Member Functions
TImAttachmentFile(RFs &)
~TImAttachmentFile()
TInt AppendValidFile(const TDesC &, const TDesC &, TFileName &)
IMPORT_C TIntCloseFile()
IMPORT_C TIntCreateFile(const TDesC &, const TDesC &)
IMPORT_C TIntDeleteAttachment(const TDesC &, const TDesC &)
IMPORT_C TIntMakeDir(const TDesC &)
IMPORT_C TIntOpenFile(const TDesC &, const TDesC &)
IMPORT_C TIntReadFile(TDes8 &, TInt)
IMPORT_C voidSetFileHandle(RFile &, TImFileOpenMode)
IMPORT_C TIntWriteFile(const TDesC8 &)
IMPORT_C TIntWriteFile(const TDesC16 &)

Member Enumeration Documentation

Enum TImFileOpenMode

EnumeratorValueDescription
EImFileRead0

File opened for read mode

EImFileWrite

File opened for write mode

Constructor & Destructor Documentation

TImAttachmentFile ( RFs & )

IMPORT_CTImAttachmentFile(RFs &aFileSession)

~TImAttachmentFile ( )

IMPORT_C~TImAttachmentFile()

Member Function Documentation

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

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

CloseFile ( )

IMPORT_C TIntCloseFile()

CreateFile ( const TDesC &, const TDesC & )

IMPORT_C TIntCreateFile(const TDesC &aDirPath,
const TDesC &aFileName
)

DeleteAttachment ( const TDesC &, const TDesC & )

IMPORT_C TIntDeleteAttachment(const TDesC &aDirPath,
const TDesC &aFileName
)

MakeDir ( const TDesC & )

IMPORT_C TIntMakeDir(const TDesC &aDirPath)

OpenFile ( const TDesC &, const TDesC & )

IMPORT_C TIntOpenFile(const TDesC &aDirPath,
const TDesC &aFileName
)

ReadFile ( TDes8 &, TInt )

IMPORT_C TIntReadFile(TDes8 &rBuffer,
TIntaNumBytes
)

SetFileHandle ( RFile &, TImFileOpenMode )

IMPORT_C voidSetFileHandle(RFile &aFile,
TImFileOpenModeaFileMode
)

WriteFile ( const TDesC8 & )

IMPORT_C TIntWriteFile(const TDesC8 &aBuffer)

WriteFile ( const TDesC16 & )

IMPORT_C TIntWriteFile(const TDesC16 &aBuffer)