class TImAttachmentFile |
Public Member Functions | |
---|---|
TImAttachmentFile(RFs &) | |
~TImAttachmentFile() | |
TInt | AppendValidFile(const TDesC &, const TDesC &, TFileName &) |
IMPORT_C TInt | CloseFile() |
IMPORT_C TInt | CreateFile(const TDesC &, const TDesC &) |
IMPORT_C TInt | DeleteAttachment(const TDesC &, const TDesC &) |
IMPORT_C TInt | MakeDir(const TDesC &) |
IMPORT_C TInt | OpenFile(const TDesC &, const TDesC &) |
IMPORT_C TInt | ReadFile(TDes8 &, TInt) |
IMPORT_C void | SetFileHandle(RFile &, TImFileOpenMode) |
IMPORT_C TInt | WriteFile(const TDesC8 &) |
IMPORT_C TInt | WriteFile(const TDesC16 &) |
Private Member Functions | |
---|---|
TInt | FlushFile() |
TInt | ReadFile() |
void | Reset() |
TPtrC8 | SelectFileData(TInt &, TInt &) |
TInt | WriteFile() |
Public Member Enumerations | |
---|---|
enum | TImFileOpenMode { EImFileRead = 0, EImFileWrite } |
Private Attributes | |
---|---|
TBuf8< KDataLineBufferLength > | iDataLine |
RFile | iFile |
RFs & | iFileSession |
TFileText | iFileText |
TFileName | iFullFilePath |
TInt | iPositionInCache |
TInt | iSpaceOnCache |
TBool | iWritingToFile |
TInt | AppendValidFile | ( | const TDesC & | aDirPath, |
const TDesC & | aFileName, | |||
TFileName & | rFullFilePath | |||
) |
IMPORT_C TInt | CreateFile | ( | const TDesC & | aDirPath, |
const TDesC & | aFileName | |||
) |
IMPORT_C TInt | DeleteAttachment | ( | const TDesC & | aDirPath, |
const TDesC & | aFileName | |||
) |
IMPORT_C TInt | OpenFile | ( | const TDesC & | aDirPath, |
const TDesC & | aFileName | |||
) |
IMPORT_C void | SetFileHandle | ( | RFile & | aFile, |
TImFileOpenMode | aFileMode | |||
) |
RFile & aFile | |
TImFileOpenMode aFileMode |
IMPORT_C TInt | WriteFile | ( | const TDesC8 & | aBuffer | ) |
const TDesC8 & aBuffer |
IMPORT_C TInt | WriteFile | ( | const TDesC16 & | aBuffer | ) |
const TDesC16 & aBuffer |
EImFileRead = 0 |
File opened for read mode |
EImFileWrite |
File opened for write mode |