CCalenAttachmentUtils Class Reference
class CCalenAttachmentUtils : public CBase |
Attachment utils used for attachment support
Public Member Functions |
---|
IMPORT_C TBool | FetchAnyFileL(TFileName &, MAknFileSelectionObserver *, MAknFileFilter *) |
IMPORT_C TBool | FetchFileL(TCalenAttachmentFileType, CDesCArray &, CAiwGenericParamList *, TBool, TBool, MMGFetchVerifier *) |
IMPORT_C void | GetCalenEditorTempPath(TFileName &, const TDesC *) |
IMPORT_C TInt | GetFileSizeL(const TDesC &) |
IMPORT_C TDataType | GetMimeType(RFile) |
IMPORT_C TDataType | GetMimeTypeL(const TDesC &) |
IMPORT_C void | OpenAttachmentL(RFile &, MAknServerAppExitObserver &) |
IMPORT_C TInt | SaveAttachmentL(RFile &, MAknServerAppExitObserver &) |
Member Functions Documentation
FetchAnyFileL(TFileName &, MAknFileSelectionObserver *, MAknFileFilter *)
Fetches an any attachment file from external application.
FetchExistingL(TMediaFileType, CDesCArray &, TBool, MMGFetchVerifier *)
Fetch the file which is already existing
Parameters
TMediaFileType aFileType | Type of the file to be fetched |
CDesCArray & aSelectedFiles | selecetd files after fetching |
TBool aMultiSelect | for selecting multile files/or single file |
MMGFetchVerifier * aVerifier | verifier for call back if file is selected |
FetchFileL(TCalenAttachmentFileType, CDesCArray &, CAiwGenericParamList *, TBool, TBool, MMGFetchVerifier *)
Fetches an attachment of given type from external application.
Parameters
TCalenAttachmentFileType aType | Fetch type. |
CDesCArray & aSelectedFiles | OUT: array of selected files. |
CAiwGenericParamList * aParams | Generic AIW parameters |
TBool aCheckDiskSpace = EFalse | |
TBool aMultiSelect = EFalse | if ETrue Media Gallery allows multiselect in file list. |
MMGFetchVerifier * aVerifier = NULL | To verify selection. |
FetchNoteL(CDesCArray &)
Fetches notes from notepad app
aSelectedFiles has selected files
GetCalenEditorTempPath(TFileName &, const TDesC *)
IMPORT_C void | GetCalenEditorTempPath | ( | TFileName & | aTempPath, |
| const TDesC * | aFileName = NULL |
| ) | [static] |
Returns temp path used by calendar unified editor and optionally appends file name to it.
Parameters
TFileName & aTempPath | generated temp path and filename. |
const TDesC * aFileName = NULL | optionally appended file name. |
GetFileNameFromBuffer(TFileName &, const TDesC &, TInt, const TDesC *)
void | GetFileNameFromBuffer | ( | TFileName & | aFileName, |
| const TDesC & | aBuffer, |
| TInt | aMaxLength, |
| const TDesC * | aExt = NULL |
| ) | [private, static] |
Generates a legal filename from given text buffer.
Parameters
TFileName & aFileName | OUT: generated filename. |
const TDesC & aBuffer | text buffer. |
TInt aMaxLength | maximum length for filename. |
const TDesC * aExt = NULL | optional file extension. |
GetFileSizeL(const TDesC &)
IMPORT_C TInt | GetFileSizeL | ( | const TDesC & | aFileName | ) | [static] |
Gets file size in bytes based on the file name
Parameters
const TDesC & aFileName | name of the file of which size is required |
GetMimeType(RFile)
Gets mime type of the given file handle
GetMimeTypeL(const TDesC &)
Gets mime type of the given file name
Parameters
const TDesC & aFileName | name of the file |
OpenAttachmentL(RFile &, MAknServerAppExitObserver &)
SaveAttachmentL(RFile &, MAknServerAppExitObserver &)
Saves attachment either to the phone memory or memory card as chosen by the user
Member Enumerations Documentation
Enum TCalenAttachmentFileType
Enumerators
EUnknown = 0 | |
EImage | |
ENote | |
EAudio | |
EVideo | |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.