|
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 location field |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRVIEWERLOCATIONFIELD_H_ |
|
20 #define CESMRVIEWERLOCATIONFIELD_H_ |
|
21 |
|
22 #include <eikedwob.h> |
|
23 |
|
24 #include "cesmrfield.h" |
|
25 |
|
26 class CMRImage; |
|
27 class CESMRRichTextViewer; |
|
28 class CESMRFeatureSettings; |
|
29 |
|
30 /** |
|
31 * Shows the location of the meeting/event |
|
32 */ |
|
33 NONSHARABLE_CLASS( CESMRViewerLocationField ): public CESMRField, |
|
34 MEikEdwinSizeObserver |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Creates new CESMRViewerLocationField object. Ownership |
|
39 * is transferred to caller. |
|
40 * @return Pointer to created object, |
|
41 */ |
|
42 static CESMRViewerLocationField* NewL( ); |
|
43 |
|
44 /** |
|
45 * C++ Destructor. |
|
46 */ |
|
47 ~CESMRViewerLocationField( ); |
|
48 |
|
49 public:// From CESMRField |
|
50 void InternalizeL( MESMRCalEntry& aEntry ); |
|
51 TSize MinimumSize(); |
|
52 void InitializeL(); |
|
53 void ListObserverSet(); |
|
54 void ExecuteGenericCommandL( TInt aCommand ); |
|
55 void SetOutlineFocusL( TBool aFocus ); |
|
56 |
|
57 public: // From CCoeControl |
|
58 TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType ); |
|
59 TInt CountComponentControls() const; |
|
60 CCoeControl* ComponentControl( TInt aInd ) const; |
|
61 void SizeChanged(); |
|
62 void SetContainerWindowL( const CCoeControl& aContainer ); |
|
63 |
|
64 public: // From MEikEdwinSizeObserver |
|
65 TBool HandleEdwinSizeEventL( CEikEdwin* aEdwin, TEdwinSizeEvent aType, |
|
66 TSize aSize ); |
|
67 |
|
68 private: // Implementation |
|
69 CESMRViewerLocationField( ); |
|
70 void ConstructL( ); |
|
71 CESMRFeatureSettings& FeaturesL(); |
|
72 void SetWaypointIconL( TBool aEnabled ); |
|
73 TRect RichTextViewerRect(); |
|
74 |
|
75 private: // data |
|
76 |
|
77 TSize iSize; |
|
78 // Owned: Field icon |
|
79 CMRImage* iFieldIcon; |
|
80 // Owned: Field text label |
|
81 CESMRRichTextViewer* iRichTextViewer; |
|
82 // Owned: Waypoint icon |
|
83 // Feature settings. Own |
|
84 CESMRFeatureSettings* iFeatures; |
|
85 // RichTextViewer line count. Own |
|
86 TInt iLineCount; |
|
87 // Middle softkey command id |
|
88 TInt iMskCommandId; |
|
89 }; |
|
90 |
|
91 #endif /*CESMRVIEWERLOCATIONFIELD_H_*/ |