|
1 /* |
|
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Field to inform is the event all day event or not. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CESMRVIEWERALLDAYEVENTFIELD_H__ |
|
20 #define __CESMRVIEWERALLDAYEVENTFIELD_H__ |
|
21 |
|
22 |
|
23 #include "cesmrfield.h" |
|
24 |
|
25 class CMRImage; |
|
26 class CMRLabel; |
|
27 |
|
28 /** |
|
29 * This field shows whether the event is all day event ot not. |
|
30 */ |
|
31 NONSHARABLE_CLASS( CESMRViewerAllDayEventField ) : public CESMRField |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Creates new CESMRViewerAllDayEventField object. Ownership |
|
36 * is transferred to caller. |
|
37 * @return Pointer to created object, |
|
38 */ |
|
39 static CESMRViewerAllDayEventField* NewL(); |
|
40 |
|
41 /** |
|
42 * C++ Destructor. |
|
43 */ |
|
44 ~CESMRViewerAllDayEventField(); |
|
45 |
|
46 public: // From CESMRField |
|
47 void InternalizeL( MESMRCalEntry& aEntry ); |
|
48 void InitializeL(); |
|
49 void SetOutlineFocusL( TBool aFocus ); |
|
50 |
|
51 public: // From CCoeControl |
|
52 void SizeChanged(); |
|
53 TInt CountComponentControls() const; |
|
54 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
55 |
|
56 private: // Implementation |
|
57 CESMRViewerAllDayEventField(); |
|
58 void ConstructL(); |
|
59 |
|
60 private: |
|
61 // Owned: Field icon |
|
62 CMRImage* iIcon; |
|
63 // Owned: Field text label |
|
64 CMRLabel* iLabel; |
|
65 }; |
|
66 |
|
67 #endif //__CESMRVIEWERALLDAYEVENTFIELD_H__ |