|
1 /* |
|
2 * Copyright (c) 2003-2007 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 from (organizer) field |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRVIEWERFROMFIELD_H_ |
|
20 #define CESMRVIEWERFROMFIELD_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32cmn.h> |
|
24 #include <eikedwob.h> |
|
25 |
|
26 #include "cesmrfield.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CESMRRichTextViewer; |
|
30 class CMRLabel; |
|
31 |
|
32 /** |
|
33 * Field for showing the "from" information. In other words this field shows |
|
34 * that who sent/organized this meeting request. |
|
35 */ |
|
36 NONSHARABLE_CLASS( CESMRViewerFromField ) : |
|
37 public CESMRField, public MEikEdwinSizeObserver |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * Constructor for new From field used in viewer mode. |
|
42 * |
|
43 * @return New viewer from field object |
|
44 */ |
|
45 static CESMRViewerFromField* NewL( ); |
|
46 |
|
47 /** |
|
48 * C++ Destructor. |
|
49 */ |
|
50 ~CESMRViewerFromField( ); |
|
51 |
|
52 public: // From CESMRField |
|
53 void InternalizeL( MESMRCalEntry& aEntry ); |
|
54 void InitializeL(); |
|
55 void ExecuteGenericCommandL( TInt aCommand ); |
|
56 void SetOutlineFocusL( TBool aFocus ); |
|
57 |
|
58 public: // From CCoeControl |
|
59 TKeyResponse OfferKeyEventL( |
|
60 const TKeyEvent& aEvent, |
|
61 TEventCode aType ); |
|
62 TInt CountComponentControls() const; |
|
63 CCoeControl* ComponentControl( TInt aInd ) const; |
|
64 void SizeChanged(); |
|
65 TSize MinimumSize(); |
|
66 void SetContainerWindowL(const CCoeControl& aContainer); |
|
67 virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
68 |
|
69 public: // From MEikEdwinSizeObserver |
|
70 TBool HandleEdwinSizeEventL( |
|
71 CEikEdwin* aEdwin, |
|
72 TEdwinSizeEvent aType, |
|
73 TSize aSize ); |
|
74 |
|
75 private: // Implementation |
|
76 CESMRViewerFromField( ); |
|
77 void ConstructL( ); |
|
78 |
|
79 private: // data |
|
80 // Own: Actual text of this field, not owned |
|
81 CESMRRichTextViewer* iRichTextViewer; |
|
82 // Own: Topic text of this fiels |
|
83 CMRLabel* iFieldTopic; |
|
84 // Size of the field when after field has expanded. |
|
85 TSize iExpandedSize; |
|
86 // Size of the title |
|
87 TSize iTitleSize; |
|
88 }; |
|
89 |
|
90 #endif /*CESMRVIEWERFROMFIELD_H_*/ |
|
91 |
|
92 // End of file |
|
93 |