CCalenAttachmentModel Class Reference
class CCalenAttachmentModel : public CBase |
Constructor & Destructor Documentation
CCalenAttachmentModel()
CCalenAttachmentModel | ( | ) | [private] |
Member Functions Documentation
AddAttachmentL(const TDesC &, const TDesC &)
IMPORT_C void | AddAttachmentL | ( | const TDesC & | aFullName, |
| const TDesC & | aSystemFileName |
| ) | |
Adds attachment to the internal array. Notifies attachment model observer with ECalenAttachmentAdded parameter.
Parameters
const TDesC & aFullName | file name of the attachment to be added |
const TDesC & aSystemFileName | |
AddAttachmentL(const TDesC &, const TDesC &, TInt, TBool, const TDataType &, RFile &)
Adds attachment to the internal array. Notifies attachment model observer with ECalenAttachmentAdded parameter.
Parameters
const TDesC & aFullName | file name of the attachment to be added |
const TDesC & aSystemFileName | |
TInt aSize | size of the attachment file |
TBool aFetched | fetched or not |
const TDataType & aDataType | mime type of the attachment |
RFile & aFile | |
AttachmentInfoAt(TInt)
Returns reference to attachment info at given index.
Parameters
TInt aIndex | index for which attachment info is needed |
AttachmentOpen(TBool &)
IMPORT_C void | AttachmentOpen | ( | TBool & | aEmbeddedFileOpened | ) | |
Set the flag to ETrue if the attachment(Photo, audio and vedio files) is open.
Parameters
TBool & aEmbeddedFileOpened | |
BitmapForAppL(const TUid &)
Returns pointer to bitmap of given application.
Parameters
const TUid & aAppUid | UID of the application for which bitmap is requested |
BitmapForFileL(CCalenAttachmentInfo &)
Returns pointer to bitmap of the application that handles given file.
CheckFileSizeLimitL(TInt)
TBool
| CheckFileSizeLimitL | ( | TInt | aNewFileSize | ) | [private] |
Parameters
TInt aNewFileSize | Size of the selected attachment. |
CheckForExistingAttachmentsL(CCalEntry *)
IMPORT_C void | CheckForExistingAttachmentsL | ( | CCalEntry * | entry | ) | |
Updates attachment mode with the attahcments of entr if it has any
ConstructL()
void | ConstructL | ( | ) | [private] |
CreateNewInfoL(const TDesC &, const TDesC &, TInt, TBool, const TDataType &, const CCalenAttachmentInfo::TCalenAttachmentStoreType)
Creates new attachment info object.
DeleteAttachment(TInt)
Deletes attachment from internal array. Notifies attachment model observer with ECalenAttachmentRemoved parameter.
Parameters
TInt aIndex | index for which attachment to be deleted |
DoDeleteAttachmentL(TInt)
TBool
| DoDeleteAttachmentL | ( | TInt | aIndex | ) | [private] |
Deletes attachment from given index.
Parameters
TInt aIndex | Index of the deleted attachment. |
GetAttachmentListL(RPointerArray< CCalenAttachmentInfo > &)
IsAttachmentOpen()
IMPORT_C TBool | IsAttachmentOpen | ( | ) | |
return ETrue if the atacchment is opened.
LoadResourcesL()
IMPORT_C void | LoadResourcesL | ( | ) | |
Loads resources, i.e. bitmaps & layouts
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).
SetObserver(MCalenAttachmentModelObserver *)
Sets attachment model observer.
Member Data Documentation
RPointerArray< CCalenAttachmentInfo > iAttachInfoArray
MCalenAttachmentModelObserver * iAttachmentModelObserver
TBool
iEmbeddedFileOpened
TBool
| iEmbeddedFileOpened | [private] |
TBool
isAttachmentModelCleared
TBool
| isAttachmentModelCleared | [private] |
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.