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". |
30 /** |
30 /** |
31 * This field shows the start date of a meeting or a meeting request |
31 * This field shows the start date of a meeting or a meeting request |
32 */ |
32 */ |
33 NONSHARABLE_CLASS( CESMRViewerStartDateField ) : public CESMRField |
33 NONSHARABLE_CLASS( CESMRViewerStartDateField ) : public CESMRField |
34 { |
34 { |
35 public: |
35 public: |
36 /** |
36 /** |
37 * Creates new CESMRViewerStartDateField object. Ownership |
37 * Creates new CESMRViewerStartDateField object. Ownership |
38 * is transferred to caller. |
38 * is transferred to caller. |
39 * @return Pointer to created object, |
39 * @return Pointer to created object, |
40 */ |
40 */ |
41 static CESMRViewerStartDateField* NewL(); |
41 static CESMRViewerStartDateField* NewL(); |
42 |
42 |
43 /** |
43 /** |
44 * C++ destructor |
44 * C++ destructor |
45 */ |
45 */ |
46 ~CESMRViewerStartDateField(); |
46 ~CESMRViewerStartDateField(); |
47 |
47 |
48 public: // From CESMRField |
48 public: // From CESMRField |
49 void InternalizeL( MESMRCalEntry& aEntry ); |
49 void InternalizeL( MESMRCalEntry& aEntry ); |
50 void InitializeL(); |
50 void SetOutlineFocusL( TBool aFocus ); |
51 void SetOutlineFocusL( TBool aFocus ); |
51 TBool ExecuteGenericCommandL( TInt aCommand ); |
52 |
52 void LockL(); |
53 public: // From CCoeControl |
53 |
54 void SizeChanged(); |
54 public: // From CCoeControl |
55 TInt CountComponentControls() const; |
55 void SizeChanged(); |
56 CCoeControl* ComponentControl( TInt aIndex ) const; |
56 TInt CountComponentControls() const; |
57 |
57 CCoeControl* ComponentControl( TInt aIndex ) const; |
58 private: // Implementation |
58 |
59 CESMRViewerStartDateField(); |
59 private: // Implementation |
60 void ConstructL(); |
60 CESMRViewerStartDateField(); |
61 |
61 void ConstructL(); |
62 private: // Data |
62 void FormatDateStringL(); |
63 // Owned: Field icon |
63 |
64 CMRImage* iIcon; |
64 private: // Data |
65 // Owned: Field text label |
65 // Owned: Field icon |
66 CMRLabel* iLabel; |
66 CMRImage* iIcon; |
|
67 /// Own: lock icon |
|
68 CMRImage* iLockIcon; |
|
69 // Not own: Field text label |
|
70 CMRLabel* iLabel; |
|
71 /// Own: Meeting start time |
|
72 TTime iStartTime; |
67 }; |
73 }; |
68 |
74 |
69 #endif // __CESMRVIEWERSTARTDATEFIELD_H__ |
75 #endif // __CESMRVIEWERSTARTDATEFIELD_H__ |