CCalenAttachmentUtils Class Reference

class CCalenAttachmentUtils : public CBase

Attachment utils used for attachment support

Inherits from

  • CCalenAttachmentUtils

Member Functions Documentation

FetchAnyFileL(TFileName &, MAknFileSelectionObserver *, MAknFileFilter *)

IMPORT_C TBoolFetchAnyFileL(TFileName &aFileName,
MAknFileSelectionObserver *aVerifier = NULL,
MAknFileFilter *aFilter = NULL
)[static]

Fetches an any attachment file from external application.

Parameters

TFileName & aFileNameOUT: filename of the fetched file.
MAknFileSelectionObserver * aVerifier = NULLTo verify selection.
MAknFileFilter * aFilter = NULLTo filter shown files.

FetchExistingL(TMediaFileType, CDesCArray &, TBool, MMGFetchVerifier *)

TBool FetchExistingL(TMediaFileTypeaFileType,
CDesCArray &aSelectedFiles,
TBoolaMultiSelect,
MMGFetchVerifier *aVerifier
)[private, static]

Fetch the file which is already existing

Parameters

TMediaFileType aFileTypeType of the file to be fetched
CDesCArray & aSelectedFilesselecetd files after fetching
TBool aMultiSelectfor selecting multile files/or single file
MMGFetchVerifier * aVerifierverifier for call back if file is selected

FetchFileL(TCalenAttachmentFileType, CDesCArray &, CAiwGenericParamList *, TBool, TBool, MMGFetchVerifier *)

IMPORT_C TBoolFetchFileL(TCalenAttachmentFileTypeaType,
CDesCArray &aSelectedFiles,
CAiwGenericParamList *aParams,
TBoolaCheckDiskSpace = EFalse,
TBoolaMultiSelect = EFalse,
MMGFetchVerifier *aVerifier = NULL
)[static]

Fetches an attachment of given type from external application.

Parameters

TCalenAttachmentFileType aTypeFetch type.
CDesCArray & aSelectedFilesOUT: array of selected files.
CAiwGenericParamList * aParamsGeneric AIW parameters
TBool aCheckDiskSpace = EFalse
TBool aMultiSelect = EFalseif ETrue Media Gallery allows multiselect in file list.
MMGFetchVerifier * aVerifier = NULLTo verify selection.

FetchNoteL(CDesCArray &)

TBool FetchNoteL(CDesCArray &aSelectedFiles)[private, static]

Fetches notes from notepad app

aSelectedFiles has selected files

Parameters

CDesCArray & aSelectedFiles

GetCalenEditorTempPath(TFileName &, const TDesC *)

IMPORT_C voidGetCalenEditorTempPath(TFileName &aTempPath,
const TDesC *aFileName = NULL
)[static]

Returns temp path used by calendar unified editor and optionally appends file name to it.

Parameters

TFileName & aTempPathgenerated temp path and filename.
const TDesC * aFileName = NULLoptionally appended file name.

GetFileNameFromBuffer(TFileName &, const TDesC &, TInt, const TDesC *)

voidGetFileNameFromBuffer(TFileName &aFileName,
const TDesC &aBuffer,
TIntaMaxLength,
const TDesC *aExt = NULL
)[private, static]

Generates a legal filename from given text buffer.

Parameters

TFileName & aFileNameOUT: generated filename.
const TDesC & aBuffertext buffer.
TInt aMaxLengthmaximum length for filename.
const TDesC * aExt = NULLoptional file extension.

GetFileSizeL(const TDesC &)

IMPORT_C TIntGetFileSizeL(const TDesC &aFileName)[static]

Gets file size in bytes based on the file name

Parameters

const TDesC & aFileNamename of the file of which size is required

GetMimeType(RFile)

IMPORT_C TDataTypeGetMimeType(RFileaFile)[static]

Gets mime type of the given file handle

Parameters

RFile aFile

GetMimeTypeL(const TDesC &)

IMPORT_C TDataTypeGetMimeTypeL(const TDesC &aFileName)[static]

Gets mime type of the given file name

Parameters

const TDesC & aFileNamename of the file

OpenAttachmentL(RFile &, MAknServerAppExitObserver &)

IMPORT_C voidOpenAttachmentL(RFile &file,
MAknServerAppExitObserver &aExitObserver
)[static]

Opens the attachment

Parameters

RFile & file
MAknServerAppExitObserver & aExitObserverExit observer that listens for exiting from the attahcment viewer

SaveAttachmentL(RFile &, MAknServerAppExitObserver &)

IMPORT_C TIntSaveAttachmentL(RFile &aFile,
MAknServerAppExitObserver &aExitObserver
)[static]

Saves attachment either to the phone memory or memory card as chosen by the user

Parameters

RFile & aFile
MAknServerAppExitObserver & aExitObserverExit observer that listens for exiting from the save UI dialogs

Member Enumerations Documentation

Enum TCalenAttachmentFileType

Enumerators

EUnknown = 0
EImage
ENote
EAudio
EVideo