MsgAttachmentUtils Class Reference

class MsgAttachmentUtils

Attachment utilities.

Member Functions Documentation

CombineIconsL(const CFbsBitmap *, const CFbsBitmap *, const CFbsBitmap *)

IMPORT_C CFbsBitmap *CombineIconsL(const CFbsBitmap *aFirstBmp,
const CFbsBitmap *aSecondBmp,
const CFbsBitmap *aSecondBmpMask = NULL
)[static]

Creates a new bitmap by drawing first and second on top of each other.

The given bitmaps must be valid, i.e. in case they are SVG-bitmaps SetSize must be called before the icons can be combined.

Parameters

const CFbsBitmap * aFirstBmpfirst bitmap to be drawn.
const CFbsBitmap * aSecondBmpsecond bitmap to be drawn on top of first.
const CFbsBitmap * aSecondBmpMask = NULLsecond bitmap mask.

FetchAnyFileL(TFileName &, CCoeEnv &, MAknFileSelectionObserver *, MAknFileFilter *)

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

Fetches an any attachment file from external application.

Parameters

TFileName & aFileNameOUT: filename of the fetched file.
CCoeEnv & aCoeEnvControl environment
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]

Parameters

TMediaFileType aFileType
CDesCArray & aSelectedFiles
TBool aMultiSelect
MMGFetchVerifier * aVerifier

FetchFileL(TMsgAttachmentFetchType, TFileName &, TBool)

IMPORT_C TBoolFetchFileL(TMsgAttachmentFetchTypeaType,
TFileName &aFileName,
TBoolaCheckDiskSpace = EFalse
)[static]

Fetches an attachment of given type from external application.

Parameters

TMsgAttachmentFetchType aTypeFetch type.
TFileName & aFileNameOUT: filename of the fetched file.
TBool aCheckDiskSpace = EFalseDeprecated! No disk space check done ever.

FetchFileL(TMsgAttachmentFetchType, TFileName &, const TUid &, TBool)

IMPORT_C TBoolFetchFileL(TMsgAttachmentFetchTypeaType,
TFileName &aFileName,
const TUid &aAppUid,
TBoolaCheckDiskSpace = EFalse
)[static]

Fetches an attachment of given type from external application.

Parameters

TMsgAttachmentFetchType aTypeFetch type.
TFileName & aFileNameOUT: filename of the fetched file.
const TUid & aAppUidapp uid used for filtering sound files in audio fetch.
TBool aCheckDiskSpace = EFalseDeprecated! No disk space check done ever.

FetchFileL(TMsgAttachmentFetchType, TFileName &, CDesCArray &, TBool, TBool, MMGFetchVerifier *)

IMPORT_C TBoolFetchFileL(TMsgAttachmentFetchTypeaType,
TFileName &aFileName,
CDesCArray &aSelectedFiles,
TBoolaCheckDiskSpace = EFalse,
TBoolaMultiSelect = EFalse,
MMGFetchVerifier *aVerifier = NULL
)[static]

Fetches an attachment of given type from external application.

Parameters

TMsgAttachmentFetchType aTypeFetch type.
TFileName & aFileNameOUT: filename of the fetched file.
CDesCArray & aSelectedFilesOUT: array of selected files.
TBool aCheckDiskSpace = EFalseDeprecated! No disk space check done ever.
TBool aMultiSelect = EFalseif ETrue Media Gallery allows multiselect in file list.
MMGFetchVerifier * aVerifier = NULLTo verify selection.

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

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

Fetches an attachment of given type from external application.

Parameters

TMsgAttachmentFetchType aTypeFetch type.
CDesCArray & aSelectedFilesOUT: array of selected files.
CAiwGenericParamList * aParamsGeneric AIW parameters
TBool aCheckDiskSpace = EFalseDeprecated! No disk space check done ever.
TBool aMultiSelect = EFalseif ETrue Media Gallery allows multiselect in file list.
MMGFetchVerifier * aVerifier = NULLTo verify selection.

FetchNewL(TNewServiceFileType, CDesCArray &, CAiwGenericParamList *, TBool)

TBool FetchNewL(TNewServiceFileTypeaType,
CDesCArray &aSelectedFiles,
CAiwGenericParamList *aParams,
TBoolaMultiSelect
)[private, static]

Parameters

TNewServiceFileType aType
CDesCArray & aSelectedFiles
CAiwGenericParamList * aParams
TBool aMultiSelect

FetchNoteL(CDesCArray &)

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

Parameters

CDesCArray & aSelectedFiles

FileSizeToStringL(TDes &, TInt, TBool)

IMPORT_C voidFileSizeToStringL(TDes &aTarget,
TIntaFileSize,
TBoolaKilobytesMinimum = EFalse
)[static]

Creates a properly formatted string from size.

Parameters

TDes & aTargetOUT: size string.
TInt aFileSizefile size
TBool aKilobytesMinimum = EFalseif ETrue sizes smaller than 1024 bytes are returned as 1 kB.

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

IMPORT_C voidGetFileNameFromBuffer(TFileName &aFileName,
const TDesC &aBuffer,
TIntaMaxLength,
const TDesC *aExt = NULL
)[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.

GetMsgEditorTempPath(TFileName &, const TDesC *)

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

Returns temp path used by msg editors and optionally appends file name to it.

Parameters

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

InvertBitmapL(const CFbsBitmap *)

CFbsBitmap *InvertBitmapL(const CFbsBitmap *aFirstBmp)[private, static]

Parameters

const CFbsBitmap * aFirstBmp

Member Enumerations Documentation

Enum TMsgAttachmentFetchType

Enumerators

EUnknown = 0
EImage
EAudio
EVideo
ENote
ENewImage
ENewAudio
ENewVideo
ESVG