class CCalenAttachmentModel : public CBase |
Attachment model.
Public Member Functions | |
---|---|
~CCalenAttachmentModel () | |
IMPORT_C void | AddAttachmentL (const TDesC &, const TDesC &) |
IMPORT_C void | AddAttachmentL (const TDesC &, const TDesC &, TInt , TBool , const TDataType &, RFile &) |
IMPORT_C CCalenAttachmentInfo & | AttachmentInfoAt ( TInt ) |
IMPORT_C void | AttachmentOpen ( TBool &) |
IMPORT_C CGulIcon * | BitmapForFileL ( CCalenAttachmentInfo &) |
IMPORT_C void | CheckForExistingAttachmentsL ( CCalEntry *) |
IMPORT_C TBool | DeleteAttachment ( TInt ) |
IMPORT_C RFile | GetAttachmentFileL ( TInt ) |
IMPORT_C void | GetAttachmentListL ( RPointerArray < CCalenAttachmentInfo > &) |
IMPORT_C TBool | IsAttachmentOpen () |
IMPORT_C void | LoadResourcesL () |
IMPORT_C CCalenAttachmentModel * | NewL () |
IMPORT_C TInt | NumberOfItems () |
IMPORT_C void | Reset () |
IMPORT_C void | SetObserver ( MCalenAttachmentModelObserver *) |
Private Member Functions | |
---|---|
CCalenAttachmentModel () | |
CGulIcon * | BitmapForAppL (const TUid &) |
TBool | CheckFileSizeLimitL ( TInt ) |
void | ConstructL () |
CCalenAttachmentInfo * | CreateNewInfoL (const TDesC &, const TDesC &, TInt , TBool , const TDataType &, const CCalenAttachmentInfo::TCalenAttachmentStoreType ) |
TBool | DoDeleteAttachmentL ( TInt ) |
IMPORT_C void | AddAttachmentL | ( | const TDesC & | aFullName, |
const TDesC & | aSystemFileName | |||
) |
Adds attachment to the internal array. Notifies attachment model observer with ECalenAttachmentAdded parameter.
IMPORT_C void | AddAttachmentL | ( | const TDesC & | aFullName, |
const TDesC & | aSystemFileName, | |||
TInt | aSize, | |||
TBool | aFetched, | |||
const TDataType & | aDataType, | |||
RFile & | aFile | |||
) |
Adds attachment to the internal array. Notifies attachment model observer with ECalenAttachmentAdded parameter.
IMPORT_C CCalenAttachmentInfo & | AttachmentInfoAt | ( | TInt | aIndex | ) | const |
Returns reference to attachment info at given index.
TInt aIndex | index for which attachment info is needed |
IMPORT_C void | AttachmentOpen | ( | TBool & | aEmbeddedFileOpened | ) |
Set the flag to ETrue if the attachment(Photo, audio and vedio files) is open.
TBool & aEmbeddedFileOpened |
CGulIcon * | BitmapForAppL | ( | const TUid & | aAppUid | ) | [private] |
Returns pointer to bitmap of given application.
const TUid & aAppUid | UID of the application for which bitmap is requested |
IMPORT_C CGulIcon * | BitmapForFileL | ( | CCalenAttachmentInfo & | aAttaInfo | ) |
Returns pointer to bitmap of the application that handles given file.
CCalenAttachmentInfo & aAttaInfo | reference to the attachment info |
TBool | CheckFileSizeLimitL | ( | TInt | aNewFileSize | ) | [private] |
TInt aNewFileSize | Size of the selected attachment. |
IMPORT_C void | CheckForExistingAttachmentsL | ( | CCalEntry * | entry | ) |
Updates attachment mode with the attahcments of entr if it has any
CCalEntry * entry |
CCalenAttachmentInfo * | CreateNewInfoL | ( | const TDesC & | aFileName, |
const TDesC & | aSystemFileName, | |||
TInt | aSize, | |||
TBool | aFetched, | |||
const TDataType & | aDataType, | |||
const CCalenAttachmentInfo::TCalenAttachmentStoreType | aStoreType | |||
) | [private] |
Creates new attachment info object.
IMPORT_C TBool | DeleteAttachment | ( | TInt | aIndex | ) |
Deletes attachment from internal array. Notifies attachment model observer with ECalenAttachmentRemoved parameter.
TInt aIndex | index for which attachment to be deleted |
TBool | DoDeleteAttachmentL | ( | TInt | aIndex | ) | [private] |
Deletes attachment from given index.
TInt aIndex | Index of the deleted attachment. |
IMPORT_C void | GetAttachmentListL | ( | RPointerArray < CCalenAttachmentInfo > & | aAttachmentList | ) |
Get the attachment lists
RPointerArray < CCalenAttachmentInfo > & aAttachmentList | fills the attachment list |
IMPORT_C TInt | NumberOfItems | ( | ) | const |
Returns number of attachments in the internal array of attachments.
IMPORT_C void | SetObserver | ( | MCalenAttachmentModelObserver * | aObserver | ) |
Sets attachment model observer.
MCalenAttachmentModelObserver * aObserver | pointer to the MCalenAttachmentModelObserver |
RPointerArray < CCalenAttachmentInfo > | iAttachInfoArray | [private] |
MCalenAttachmentModelObserver * | iAttachmentModelObserver | [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.