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". |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: ESMR viewer time field for CESMRListComponent |
14 * Description: ESMR viewer time field. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef __CESMRVIEWERTIMEFIELD_H__ |
18 #ifndef __CESMRVIEWERTIMEFIELD_H__ |
19 #define __CESMRVIEWERTIMEFIELD_H__ |
19 #define __CESMRVIEWERTIMEFIELD_H__ |
46 |
46 |
47 public: // From CESMRField |
47 public: // From CESMRField |
48 void InternalizeL( MESMRCalEntry& aEntry ); |
48 void InternalizeL( MESMRCalEntry& aEntry ); |
49 void InitializeL(); |
49 void InitializeL(); |
50 void SetOutlineFocusL( TBool aFocus ); |
50 void SetOutlineFocusL( TBool aFocus ); |
51 |
51 TBool ExecuteGenericCommandL( TInt aCommand ); |
|
52 void LockL(); |
|
53 |
52 public: // From CCoeControl |
54 public: // From CCoeControl |
53 void SizeChanged(); |
55 void SizeChanged(); |
54 TInt CountComponentControls() const; |
56 TInt CountComponentControls() const; |
55 CCoeControl* ComponentControl( TInt aIndex ) const; |
57 CCoeControl* ComponentControl( TInt aIndex ) const; |
56 |
58 |
57 private: // Implementation |
59 private: // Implementation |
58 CESMRViewerTimeField(); |
60 CESMRViewerTimeField(); |
59 void ConstructL(); |
61 void ConstructL(); |
60 |
62 void FormatTimeFieldStringL(); |
|
63 |
61 private: |
64 private: |
62 // Owned: Field icon |
65 // Owned: Field icon |
63 CMRImage* iIcon; |
66 CMRImage* iIcon; |
64 // Owned: Field text label |
67 /// Own: lock icon |
|
68 CMRImage* iLockIcon; |
|
69 // Not own: Field text label |
65 CMRLabel* iLabel; |
70 CMRLabel* iLabel; |
|
71 /// Own: Entry start time |
|
72 TTime iStartTime; |
|
73 /// Own: Entry end time |
|
74 TTime iEndTime; |
66 }; |
75 }; |
67 |
76 |
68 #endif // __CESMRVIEWERTIMEFIELD_H__ |
77 #endif // __CESMRVIEWERTIMEFIELD_H__ |