diff -r 07e82e2b738b -r 51372538e3d3 calendarui/commonutils/src/calenattachmentmodel.cpp --- a/calendarui/commonutils/src/calenattachmentmodel.cpp Sun Jun 20 22:50:42 2010 +0200 +++ b/calendarui/commonutils/src/calenattachmentmodel.cpp Sun Jun 20 22:55:39 2010 +0200 @@ -95,6 +95,7 @@ { TRACE_ENTRY_POINT; isAttachmentModelCleared = ETrue; + iEmbeddedFileOpened = EFalse; TRACE_EXIT_POINT; } @@ -612,8 +613,29 @@ } } - TRACE_EXIT_POINT; - + TRACE_EXIT_POINT; } +// ---------------------------------------------------------------------------- +// CCalenAttachmentModel::AttachmentOpen +// Set the flag if the attachment(Photo, audio and vedio files) is open. +// ---------------------------------------------------------------------------- +// +EXPORT_C void CCalenAttachmentModel::AttachmentOpen(TBool& aEmbeddedFileOpened) + { + TRACE_ENTRY_POINT + iEmbeddedFileOpened = aEmbeddedFileOpened; + TRACE_EXIT_POINT + } +// ---------------------------------------------------------------------------- +// CCalenAttachmentModel::IsAttachmentOpen +// return True if the atacchment is opened. +// ---------------------------------------------------------------------------- +// +EXPORT_C TBool CCalenAttachmentModel::IsAttachmentOpen() + { + TRACE_ENTRY_POINT + TRACE_EXIT_POINT + return iEmbeddedFileOpened; + } // End of file --Don't remove this.