32 class CFSMailBox; |
32 class CFSMailBox; |
33 class CNcsAttachmentField; |
33 class CNcsAttachmentField; |
34 class CNcsEmailAddressObject; |
34 class CNcsEmailAddressObject; |
35 class CNcsPopupListBox; |
35 class CNcsPopupListBox; |
36 class CNcsSubjectField; |
36 class CNcsSubjectField; |
|
37 class CAknPhysics; |
37 |
38 |
38 /** |
39 /** |
39 * CNcsHeaderContainer |
40 * CNcsHeaderContainer |
40 */ |
41 */ |
41 class CNcsHeaderContainer : public CCoeControl, public MNcsAddressPopupList |
42 class CNcsHeaderContainer : public CCoeControl, public MNcsAddressPopupList |
57 * @param aMailBox reference to current mailbox item |
58 * @param aMailBox reference to current mailbox item |
58 * @param aFlags Initialisation flags. |
59 * @param aFlags Initialisation flags. |
59 * @return a pointer to the created instance of CNcsHeaderContainer. |
60 * @return a pointer to the created instance of CNcsHeaderContainer. |
60 */ |
61 */ |
61 static CNcsHeaderContainer* NewL( CCoeControl& aParent, |
62 static CNcsHeaderContainer* NewL( CCoeControl& aParent, |
62 CFSMailBox& aMailBox, TInt aFlags = NULL ); |
63 CFSMailBox& aMailBox, TInt aFlags = NULL, CAknPhysics* aPhysics = NULL ); |
63 |
64 |
64 /** |
65 /** |
65 * ~CNcsHeaderContainer |
66 * ~CNcsHeaderContainer |
66 * Destructor |
67 * Destructor |
67 */ |
68 */ |
68 virtual ~CNcsHeaderContainer(); |
69 virtual ~CNcsHeaderContainer(); |
69 |
70 |
|
71 void EnableKineticScrollingL(CAknPhysics* aPhysics); |
|
72 |
70 private: // constructor/destructor |
73 private: // constructor/destructor |
71 |
74 |
72 /** |
75 /** |
73 * CNcsHeaderContainer |
76 * CNcsHeaderContainer |
74 * C++ constructor. |
77 * C++ constructor. |
75 * @param aParent Parent control. |
78 * @param aParent Parent control. |
76 * @param aMailBox reference to current mailbox item |
79 * @param aMailBox reference to current mailbox item |
77 */ |
80 */ |
78 CNcsHeaderContainer( CCoeControl& aParent, CFSMailBox& aMailBox ); |
81 CNcsHeaderContainer( CCoeControl& aParent, CFSMailBox& aMailBox, CAknPhysics* aPhysics ); |
79 |
82 |
80 /** |
83 /** |
81 * ConstructL |
84 * ConstructL |
82 * 2nd phase constructor. |
85 * 2nd phase constructor. |
83 */ |
86 */ |
332 |
335 |
333 TBool IsSubjectFieldEmpty() const; |
336 TBool IsSubjectFieldEmpty() const; |
334 |
337 |
335 void HandleDynamicVariantSwitchL(); |
338 void HandleDynamicVariantSwitchL(); |
336 |
339 |
|
340 void HandleSkinChangeL(); |
|
341 |
337 // sets up iSwitchChangeMskOff falg |
342 // sets up iSwitchChangeMskOff falg |
338 void SwitchChangeMskOff(TBool aTag); |
343 void SwitchChangeMskOff(TBool aTag); |
339 |
344 |
340 virtual TInt LayoutLineCount() const; |
345 virtual TInt LayoutLineCount() const; |
341 |
346 |
346 /** |
351 /** |
347 * Shows/hides cursor. |
352 * Shows/hides cursor. |
348 * |
353 * |
349 * @param aShow ETrue - shows, EFalse - hides cursor. |
354 * @param aShow ETrue - shows, EFalse - hides cursor. |
350 */ |
355 */ |
351 void ShowCursor( TBool aShow ); |
356 void ShowCursor( TBool aShow, TDrawNow aDrawNow = ENoDrawNow ); |
352 |
357 |
353 void DoScrollL(); |
358 void DoScrollL(); |
354 private: // Function members |
359 private: // Function members |
355 |
360 |
356 void FocusChanged(TDrawNow aDrawNow); |
361 void FocusChanged(TDrawNow aDrawNow); |