38 class MCalRemoteAttachmentOperation; |
38 class MCalRemoteAttachmentOperation; |
39 |
39 |
40 /** |
40 /** |
41 * CMRViewerAttachmentsField is entry viewer attachment field |
41 * CMRViewerAttachmentsField is entry viewer attachment field |
42 */ |
42 */ |
43 NONSHARABLE_CLASS( CMRViewerAttachmentsField ): |
43 NONSHARABLE_CLASS( CMRViewerAttachmentsField ): |
44 public CESMRField, |
44 public CESMRField, |
45 public MEikEdwinSizeObserver, |
45 public MEikEdwinSizeObserver, |
46 public MESMRRichTextObserver |
46 public MESMRRichTextObserver |
47 { |
47 { |
48 public: |
48 public: |
68 TBool HandleRawPointerEventL( const TPointerEvent& aPointerEvent ); |
68 TBool HandleRawPointerEventL( const TPointerEvent& aPointerEvent ); |
69 void DynInitMenuPaneL( |
69 void DynInitMenuPaneL( |
70 TInt aResourceId, |
70 TInt aResourceId, |
71 CEikMenuPane* aMenuPane ); |
71 CEikMenuPane* aMenuPane ); |
72 void LockL(); |
72 void LockL(); |
73 |
73 TBool SupportsLongTapFunctionalityL( |
|
74 const TPointerEvent &aPointerEvent ); |
|
75 |
74 protected: // From CCoeControl |
76 protected: // From CCoeControl |
75 TInt CountComponentControls() const; |
77 TInt CountComponentControls() const; |
76 CCoeControl* ComponentControl( TInt aInd ) const; |
78 CCoeControl* ComponentControl( TInt aInd ) const; |
77 void SizeChanged(); |
79 void SizeChanged(); |
78 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
80 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
79 void SetContainerWindowL( const CCoeControl& aControl ); |
81 void SetContainerWindowL( const CCoeControl& aControl ); |
80 |
82 |
81 protected: // From MEikEdwinSizeObserver |
83 protected: // From MEikEdwinSizeObserver |
82 TBool HandleEdwinSizeEventL( CEikEdwin* aEdwin, TEdwinSizeEvent aType, TSize aDesirableEdwinSize); |
84 TBool HandleEdwinSizeEventL( CEikEdwin* aEdwin, TEdwinSizeEvent aType, TSize aDesirableEdwinSize); |
83 |
85 |
84 public: // From MESMRRichTextObserver |
86 protected: // From MESMRRichTextObserver |
85 TBool HandleRichTextLinkSelection( const CESMRRichTextLink* aLink ); |
87 TBool HandleRichTextLinkSelection( const CESMRRichTextLink* aLink ); |
86 |
88 |
87 private: // Implementation |
89 private: // Implementation |
88 CMRViewerAttachmentsField(); |
90 CMRViewerAttachmentsField(); |
89 void ConstructL(); |
91 void ConstructL(); |
90 |
92 |
91 void UpdateAttachmentsListL(); |
93 void UpdateAttachmentsListL(); |
96 TInt FocusMargin(); |
98 TInt FocusMargin(); |
97 void CreateRemoteAttApiL(); |
99 void CreateRemoteAttApiL(); |
98 void DynInitMenuPaneForCurrentAttachmentL( |
100 void DynInitMenuPaneForCurrentAttachmentL( |
99 CEikMenuPane* aMenuPane ); |
101 CEikMenuPane* aMenuPane ); |
100 TBool IsAttachmentDownloadInProgress( const CCalAttachment& aAttachment ); |
102 TBool IsAttachmentDownloadInProgress( const CCalAttachment& aAttachment ); |
101 |
103 TInt MaxTextLengthInPixelsL(); |
|
104 |
102 private: //data |
105 private: //data |
103 // Own: Field icon |
106 // Own: Field icon |
104 CMRImage* iFieldIcon; |
107 CMRImage* iFieldIcon; |
105 /// Own: Lock icon |
108 /// Own: Lock icon |
106 CMRImage* iLockIcon; |
109 CMRImage* iLockIcon; |