CMsgAttachmentModel Class Reference
class CMsgAttachmentModel : public CBase |
Public Member Functions |
---|
| ~CMsgAttachmentModel() |
IMPORT_C CMsgAttachmentInfo * | AddAttachmentL(const TDesC &, TInt, TMsvAttachmentId, TBool, TInt) |
IMPORT_C CMsgAttachmentInfo * | AddAttachmentL(const TDesC &, TInt, TMsvAttachmentId, TBool, const TDataType &, TInt) |
IMPORT_C CMsgAttachmentInfo * | AddAttachmentL(const TDesC &, TInt, TMsvAttachmentId, TBool, const TDataType &, CMsgAttachmentInfo::TDRMDataType, TInt) |
IMPORT_C CMsgAttachmentInfo & | AttachmentInfoAt(TInt) |
IMPORT_C CGulIcon * | BitmapForFileL(CMsgAttachmentInfo &) |
IMPORT_C void | DeleteAttachment(TInt) |
IMPORT_C RFile | GetAttachmentFileL(TInt) |
IMPORT_C TBool | IsFileAttached(const TDesC &) |
IMPORT_C TBool | IsIdAttached(TMsvAttachmentId) |
IMPORT_C TBool | IsModified() |
IMPORT_C TBool | IsReadOnly() |
IMPORT_C void | LoadResourcesL() |
IMPORT_C CMsgAttachmentModel * | NewL(TBool) |
IMPORT_C TInt | NumberOfItems() |
IMPORT_C void | Reset() |
IMPORT_C void | SetModified(TBool) |
IMPORT_C void | SetObserver(MMsgAttachmentModelObserver *) |
IMPORT_C void | ViewAttachmentL(TInt) |
Constructor & Destructor Documentation
CMsgAttachmentModel(TBool)
IMPORT_C | CMsgAttachmentModel | ( | TBool | aReadOnly | ) | [protected] |
~CMsgAttachmentModel()
IMPORT_C | ~CMsgAttachmentModel | ( | ) | |
Member Functions Documentation
AddAttachmentL(const TDesC &, TInt, TMsvAttachmentId, TBool, TInt)
Adds attachment to the internal array. Notifies attachment model observer with EMsgAttachmentAdded parameter.
AddAttachmentL(const TDesC &, TInt, TMsvAttachmentId, TBool, const TDataType &, TInt)
Adds attachment to the internal array. Notifies attachment model observer with EMsgAttachmentAdded parameter.
AddAttachmentL(const TDesC &, TInt, TMsvAttachmentId, TBool, const TDataType &, CMsgAttachmentInfo::TDRMDataType, TInt)
Adds attachment to the internal array. Notifies attachment model observer with EMsgAttachmentAdded parameter.
AppUidForDataTypeL(const TDataType &)
Returns app uid of application that handles given data type.
AppUidForFileL(const TFileName &)
Returns app uid of application that handles given file.
AppUidFromGameFileL(TDataType &, const TDesC &)
Returns app uid of application that handles given game data.
AttachmentInfoAt(TInt)
Returns reference to attachment info at given index.
BitmapForAppL(const TUid &)
Returns pointer to bitmap of given application.
BitmapForFileL(CMsgAttachmentInfo &)
Returns pointer to bitmap of the application that handles given file. If application not found returns default bitmap and sets supported flag of the aAttaInfo to EFalse.
ConstructL()
IMPORT_C void | ConstructL | ( | ) | [protected] |
CopyBitmapL(const CFbsBitmap *)
Makes a copy of the original bitmap
CreateNewInfoL(const TDesC &, TInt, TBool, TBool, TMsvAttachmentId, const TDataType &, CMsgAttachmentInfo::TDRMDataType)
Creates new attachment info object.
DeleteAttachment(TInt)
IMPORT_C void | DeleteAttachment | ( | TInt | aIndex | ) | |
Deletes attachment from internal array. Notifies attachment model observer with EMsgAttachmentRemoved parameter.
DoDeleteAttachmentL(TInt)
void | DoDeleteAttachmentL | ( | TInt | aIndex | ) | [private] |
Deletes attachment from given index.
Parameters
TInt aIndex | Index of the deleted attachment. |
FadeBitmapL(CFbsBitmap *)
Apply fade effect on given bitmap
IsFileAttached(const TDesC &)
IMPORT_C TBool | IsFileAttached | ( | const TDesC & | aFileName | ) | const |
Returns ETrue if given file is found from the internal array.
IsIdAttached(TMsvAttachmentId)
Returns ETrue if given attachment id is found from the internal array.
IsModified()
IMPORT_C TBool | IsModified | ( | ) | const |
Returns true if stored info about attachments is modified.
IsReadOnly()
IMPORT_C TBool | IsReadOnly | ( | ) | |
Returns ETrue if attachment model was created to be read-only.
LoadDefaultBitmapL(TBool)
Loads system default bitmap.
LoadResourcesL()
IMPORT_C void | LoadResourcesL | ( | ) | |
Loads resources, i.e. bitmaps & layouts
NewL(TBool)
Factory method that creates this object.
NumberOfItems()
IMPORT_C TInt | NumberOfItems | ( | ) | const |
Returns number of attachments in the internal array of attachments.
Reset()
Reset the attachment model (empties the internal array).
SetModified(TBool)
IMPORT_C void | SetModified | ( | TBool | aModified | ) | |
SetObserver(MMsgAttachmentModelObserver *)
Sets attachment model observer.
ViewAttachmentL(TInt)
IMPORT_C void | ViewAttachmentL | ( | TInt | aIndex | ) | |
Opens seleceted attachment in corresponding target application.
Member Data Documentation
TSize
iAddIconSize
TSize
| iAddIconSize | [private] |
CAttInfoArray * iAttachInfoArray
MMsgAttachmentModelObserver * iAttachmentModelObserver
CGulIcon * iDRMFWDLockIcon
CGulIcon * iDRMFWDLockIconNoRights
CGulIcon * | iDRMFWDLockIconNoRights | [private] |
CGulIcon * iDRMSDIconNoRights
CGulIcon * iDRMSDIconRightsValid
CGulIcon * | iDRMSDIconRightsValid | [private] |
TBool
iModified
TBool
| iModified | [protected] |
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.