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