| 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 &) |
| Private Member Functions | |
|---|---|
| TBool | FetchExistingL ( TMediaFileType , CDesCArray &, TBool , MMGFetchVerifier *) |
| TBool | FetchNoteL ( CDesCArray &) |
| void | GetFileNameFromBuffer ( TFileName &, const TDesC &, TInt , const TDesC *) |
| Public Member Enumerations | |
|---|---|
| enum | TCalenAttachmentFileType { EUnknown = 0, EImage , ENote , EAudio , EVideo } |
| IMPORT_C TBool | FetchAnyFileL | ( | TFileName & | aFileName, |
| MAknFileSelectionObserver * | aVerifier = NULL, | |||
| MAknFileFilter * | aFilter = NULL | |||
| ) | [static] | |||
Fetches an any attachment file from external application.
| TFileName & aFileName | OUT: filename of the fetched file. |
| MAknFileSelectionObserver * aVerifier = NULL | To verify selection. |
| MAknFileFilter * aFilter = NULL | To filter shown files. |
| TBool | FetchExistingL | ( | TMediaFileType | aFileType, |
| CDesCArray & | aSelectedFiles, | |||
| TBool | aMultiSelect, | |||
| MMGFetchVerifier * | aVerifier | |||
| ) | [private, static] | |||
Fetch the file which is already existing
| 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 |
| IMPORT_C TBool | FetchFileL | ( | TCalenAttachmentFileType | aType, |
| CDesCArray & | aSelectedFiles, | |||
| CAiwGenericParamList * | aParams, | |||
| TBool | aCheckDiskSpace = EFalse, | |||
| TBool | aMultiSelect = EFalse, | |||
| MMGFetchVerifier * | aVerifier = NULL | |||
| ) | [static] | |||
Fetches an attachment of given type from external application.
| 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. |
| TBool | FetchNoteL | ( | CDesCArray & | aSelectedFiles | ) | [private, static] |
Fetches notes from notepad app
aSelectedFiles has selected files
| CDesCArray & aSelectedFiles |
| 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.
| void | GetFileNameFromBuffer | ( | TFileName & | aFileName, |
| const TDesC & | aBuffer, | |||
| TInt | aMaxLength, | |||
| const TDesC * | aExt = NULL | |||
| ) | [private, static] | |||
Generates a legal filename from given text buffer.
| IMPORT_C TInt | GetFileSizeL | ( | const TDesC & | aFileName | ) | [static] |
Gets file size in bytes based on the file name
| const TDesC & aFileName | name of the file of which size is required |
| IMPORT_C TDataType | GetMimeType | ( | RFile | aFile | ) | [static] |
Gets mime type of the given file handle
| RFile aFile |
| IMPORT_C TDataType | GetMimeTypeL | ( | const TDesC & | aFileName | ) | [static] |
Gets mime type of the given file name
| const TDesC & aFileName | name of the file |
| IMPORT_C void | OpenAttachmentL | ( | RFile & | file, |
| MAknServerAppExitObserver & | aExitObserver | |||
| ) | [static] | |||
Opens the attachment
| RFile & file | |
| MAknServerAppExitObserver & aExitObserver | Exit observer that listens for exiting from the attahcment viewer |
| IMPORT_C TInt | SaveAttachmentL | ( | RFile & | aFile, |
| MAknServerAppExitObserver & | aExitObserver | |||
| ) | [static] | |||
Saves attachment either to the phone memory or memory card as chosen by the user
| RFile & aFile | |
| MAknServerAppExitObserver & aExitObserver | Exit observer that listens for exiting from the save UI dialogs |
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.