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 alarm field for CESMRListComponent |
14 * Description: ESMR viewer alarm field. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #ifndef CESMRVIEWERALARMTIMEFIELD_H |
19 #ifndef CESMRVIEWERALARMTIMEFIELD_H |
20 #define CESMRVIEWERALARMTIMEFIELD_H |
20 #define CESMRVIEWERALARMTIMEFIELD_H |
21 |
21 |
22 // INCLUDES |
22 #include <eikrted.h> |
|
23 #include <eikedwob.h> |
|
24 |
23 #include "cesmrfield.h" |
25 #include "cesmrfield.h" |
24 |
26 |
25 // FORWARD DECLARATIONS |
27 // Forward declarations |
26 class CMRImage; |
28 class CMRImage; |
27 class CMRLabel; |
29 class CMRLabel; |
28 |
30 |
29 /** |
31 /** |
30 * This class is a custom field control that shows the alarm time of calendar events |
32 * This class is a custom field control that shows the alarm time of calendar events |
44 */ |
46 */ |
45 ~CESMRViewerAlarmTimeField(); |
47 ~CESMRViewerAlarmTimeField(); |
46 |
48 |
47 public: // From CESMRField |
49 public: // From CESMRField |
48 void InternalizeL( MESMRCalEntry& aEntry ); |
50 void InternalizeL( MESMRCalEntry& aEntry ); |
49 void InitializeL(); |
|
50 void SetOutlineFocusL( TBool aFocus ); |
51 void SetOutlineFocusL( TBool aFocus ); |
51 |
52 TBool ExecuteGenericCommandL( TInt aCommand ); |
|
53 void LockL(); |
|
54 |
52 public: // From CCoeControl |
55 public: // From CCoeControl |
53 void SizeChanged(); |
56 void SizeChanged(); |
54 TInt CountComponentControls() const; |
57 TInt CountComponentControls() const; |
55 CCoeControl* ComponentControl( TInt aIndex ) const; |
58 CCoeControl* ComponentControl( TInt aIndex ) const; |
56 |
59 |
57 private: // Implementation |
60 private: // Implementation |
58 CESMRViewerAlarmTimeField(); |
61 CESMRViewerAlarmTimeField(); |
59 void ConstructL(); |
62 void ConstructL(); |
|
63 void FormatAlarmTimeL(); |
60 |
64 |
61 private: |
65 private: // data |
62 // Owned: Field icon |
66 // Own: Field icon |
63 CMRImage* iIcon; |
67 CMRImage* iIcon; |
64 // Owned: Field text label |
68 /// Own: lock icon |
|
69 CMRImage* iLockIcon; |
|
70 // Ref: Field text label |
65 CMRLabel* iLabel; |
71 CMRLabel* iLabel; |
|
72 /// Own: Alarm time |
|
73 TTime iAlarmTime; |
66 }; |
74 }; |
67 |
75 |
68 #endif // CESMRVIEWERALARMTIMEFIELD_H |
76 #endif // CESMRVIEWERALARMTIMEFIELD_H |