|
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: Meeting request description field |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CESMRVIEWERDESCRIPTIONFIELD_H |
|
19 #define CESMRVIEWERDESCRIPTIONFIELD_H |
|
20 |
|
21 #include <e32cmn.h> |
|
22 #include <eikedwob.h> |
|
23 #include "cesmrfield.h" |
|
24 |
|
25 class CESMRRichTextViewer; |
|
26 class CESMRLocationPlugin; |
|
27 class CESMRFeatureSettings; |
|
28 |
|
29 /** |
|
30 * Description field is a custom control |
|
31 * that shows the description of a calendar event. |
|
32 */ |
|
33 NONSHARABLE_CLASS( CESMRViewerDescriptionField ): public CESMRField, |
|
34 public MEikEdwinSizeObserver |
|
35 { |
|
36 |
|
37 public: |
|
38 /** |
|
39 * Constructor of the description field. |
|
40 * |
|
41 * @return New description field object. |
|
42 */ |
|
43 static CESMRViewerDescriptionField* NewL(); |
|
44 |
|
45 // Destructor |
|
46 ~CESMRViewerDescriptionField(); |
|
47 |
|
48 public: // From CESMRField |
|
49 void InternalizeL( MESMRCalEntry& aEntry ); |
|
50 void InitializeL(); |
|
51 void GetMinimumVisibleVerticalArea( TInt& aUpper, TInt& aLower ); |
|
52 void ListObserverSet(); |
|
53 void ExecuteGenericCommandL( TInt aCommand ); |
|
54 void SetOutlineFocusL( TBool aFocus ); |
|
55 |
|
56 public: // From CCoeControl |
|
57 TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType ); |
|
58 void SetContainerWindowL( const CCoeControl& aContainer ); |
|
59 TSize MinimumSize(); |
|
60 void SizeChanged(); |
|
61 TInt CountComponentControls() const; |
|
62 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
63 |
|
64 public: |
|
65 // From MEikEdwinSizeObserver |
|
66 TBool HandleEdwinSizeEventL( CEikEdwin* aEdwin, TEdwinSizeEvent aType, |
|
67 TSize aSize ); |
|
68 |
|
69 private: // Implementation |
|
70 CESMRViewerDescriptionField(); |
|
71 void ConstructL(); |
|
72 void AddShowOnMapLinkL( MESMRCalEntry& aEntry ); |
|
73 void SetShowOnMapLinkMiddleSoftKeyL(); |
|
74 CESMRFeatureSettings& FeaturesL(); |
|
75 CESMRLocationPlugin& LocationPluginL(); |
|
76 |
|
77 private: |
|
78 |
|
79 /** |
|
80 * Field size. |
|
81 */ |
|
82 TSize iSize; |
|
83 |
|
84 /** |
|
85 * Rich text viewer. |
|
86 * Own. |
|
87 */ |
|
88 CESMRRichTextViewer* iRichTextViewer; |
|
89 |
|
90 /** |
|
91 * Location plugin. |
|
92 * Own. |
|
93 */ |
|
94 CESMRLocationPlugin* iLocationPlugin; |
|
95 |
|
96 /** |
|
97 * Feature settings. |
|
98 * Own. |
|
99 */ |
|
100 CESMRFeatureSettings* iFeatures; |
|
101 }; |
|
102 |
|
103 #endif /* CESMRVIEWERDESCRIPTIONFIELD_H */ |