equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
17 |
17 |
18 |
18 |
19 #ifndef CESMRSINGLETIMEFIELD_H |
19 #ifndef CESMRSINGLETIMEFIELD_H |
20 #define CESMRSINGLETIMEFIELD_H |
20 #define CESMRSINGLETIMEFIELD_H |
21 |
21 |
22 #include "cesmriconfield.h" |
22 #include "cesmrfield.h" |
23 |
23 |
24 class MESMRFieldValidator; |
24 class MESMRFieldValidator; |
25 class CEikTimeEditor; |
25 class CEikTimeEditor; |
26 class CAknsFrameBackgroundControlContext; |
26 class CMRImage; |
|
27 class CAknsBasicBackgroundControlContext; |
27 |
28 |
28 NONSHARABLE_CLASS( CESMRSingleTimeField ): public CESMRIconField |
29 NONSHARABLE_CLASS( CESMRSingleTimeField ): public CESMRField |
29 { |
30 { |
30 |
31 |
31 public: |
32 public: |
32 /** |
33 /** |
33 * Creates new CESMRSingleTimeField object. Ownership |
34 * Creates new CESMRSingleTimeField object. Ownership |
40 * Destructor. |
41 * Destructor. |
41 */ |
42 */ |
42 ~CESMRSingleTimeField(); |
43 ~CESMRSingleTimeField(); |
43 |
44 |
44 public: // From CESMRField |
45 public: // From CESMRField |
45 void InitializeL(); |
|
46 TBool OkToLoseFocusL( TESMREntryFieldId aNextItem ); |
46 TBool OkToLoseFocusL( TESMREntryFieldId aNextItem ); |
47 void SetOutlineFocusL( TBool aFocus ); |
47 void SetOutlineFocusL( TBool aFocus ); |
|
48 void SetValidatorL( MESMRFieldValidator* aValidator ); |
|
49 TBool ExecuteGenericCommandL( TInt aCommand ); |
48 |
50 |
49 public: // From CCoeControl |
51 public: // From CCoeControl |
50 TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType); |
52 TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType ); |
51 void ActivateL(); |
53 void SizeChanged(); |
52 void PositionChanged(); |
54 TInt CountComponentControls() const; |
|
55 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
56 void SetContainerWindowL( const CCoeControl& aContainer ); |
53 |
57 |
54 private: |
58 private: |
55 /** |
59 /** |
56 * Constructor. |
60 * Constructor. |
57 * @param aValidator validator object |
61 * @param aValidator validator object |
63 */ |
67 */ |
64 void ConstructL(); |
68 void ConstructL(); |
65 |
69 |
66 void CheckIfValidatingNeededL( TInt aStartFieldIndex ); |
70 void CheckIfValidatingNeededL( TInt aStartFieldIndex ); |
67 |
71 |
|
72 void DoEnvChangeL(); |
|
73 |
68 private: |
74 private: |
69 /** |
|
70 * Not owned. Validator object. |
|
71 */ |
|
72 MESMRFieldValidator* iValidator; |
|
73 |
75 |
74 /** |
76 // Not owned. Time editor. |
75 * Not owned. Time editor. |
|
76 */ |
|
77 CEikTimeEditor* iTime; |
77 CEikTimeEditor* iTime; |
78 |
78 |
79 /** |
79 // Own. Field icon |
80 * Background control context. Not own |
80 CMRImage* iFieldIcon; |
81 */ |
81 |
82 MAknsControlContext* iBackground; |
82 // Own. Background control context. |
83 |
83 CAknsBasicBackgroundControlContext* iBgCtrlContext; |
84 /** |
84 /// Ref: Pointer to container window |
85 * Actual background for the editor. Own |
85 const CCoeControl* iContainerWindow; |
86 */ |
|
87 CAknsFrameBackgroundControlContext* iFrameBgContext; |
|
88 }; |
86 }; |
89 |
87 |
90 #endif // CESMRSINGLETIMEFIELD_H |
88 #endif // CESMRSINGLETIMEFIELD_H |
91 |
89 |