author | Simon Howkins <simonh@symbian.org> |
Thu, 25 Nov 2010 12:13:04 +0000 | |
branch | RCL_3 |
changeset 83 | 31a5fbf5db1d |
parent 80 | 726fba06891a |
permissions | -rw-r--r-- |
64 | 1 |
/* |
2 |
* Copyright (c) 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: Detailed subject field. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef CESMRVIEWERDETAILEDSUBJECTFIELD_H_ |
|
20 |
#define CESMRVIEWERDETAILEDSUBJECTFIELD_H_ |
|
21 |
||
22 |
// INCLUDES |
|
23 |
#include <e32cmn.h> // TSize |
|
24 |
#include <eikedwob.h> // MEikEdwinSizeObserver |
|
25 |
||
26 |
#include "cesmrfield.h" |
|
27 |
#include "cesmrrichtextviewer.h" |
|
28 |
||
29 |
// FORWARD DECLARATIONS |
|
30 |
class CESMRRichTextViewer; |
|
31 |
class MESMRTitlePaneObserver; |
|
32 |
class CMRImage; |
|
33 |
||
34 |
/** |
|
35 |
* This field shows the whole subject of the event. Title pane |
|
36 |
* shows only first few words from the subject so this field is |
|
37 |
* needed to show it all. |
|
38 |
*/ |
|
39 |
NONSHARABLE_CLASS( CESMRViewerDetailedSubjectField ): |
|
40 |
public CESMRField, |
|
41 |
public MEikEdwinSizeObserver, |
|
42 |
public MESMRRichTextObserver |
|
43 |
{ |
|
44 |
public: |
|
45 |
/** |
|
46 |
* Creates new CESMRViewerDetailedSubjectField object. Ownership |
|
47 |
* is transferred to caller. |
|
48 |
* @return Pointer to created object, |
|
49 |
*/ |
|
50 |
static CESMRViewerDetailedSubjectField* NewL( ); |
|
51 |
||
52 |
/** |
|
53 |
* C++ Destructor. |
|
54 |
*/ |
|
55 |
~CESMRViewerDetailedSubjectField( ); |
|
56 |
||
57 |
public: // Interface |
|
58 |
/** |
|
59 |
* Sets titlepane observer. Ownership is not transferred. |
|
60 |
* @param aObserver Pointer to titlepane objerver |
|
61 |
*/ |
|
62 |
void SetTitlePaneObserver( MESMRTitlePaneObserver* aObserver ); |
|
63 |
||
64 |
||
65 |
protected: // From CESMRField |
|
66 |
TSize MinimumSize(); |
|
67 |
void InternalizeL( MESMRCalEntry& aEntry ); |
|
68 |
void InitializeL(); |
|
69 |
void ListObserverSet(); |
|
70 |
TBool ExecuteGenericCommandL( TInt aCommand ); |
|
71 |
void SetOutlineFocusL( TBool aFocus ); |
|
72 |
void GetCursorLineVerticalPos(TInt& aUpper, TInt& aLower); |
|
73 |
void HandleLongtapEventL( const TPoint& aPosition ); |
|
74 |
void LockL(); |
|
75 |
TBool SupportsLongTapFunctionalityL( |
|
76 |
const TPointerEvent &aPointerEvent ); |
|
77 |
||
78 |
public: // From CCoeControl |
|
79 |
TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, |
|
80 |
TEventCode aType ); |
|
81 |
TInt CountComponentControls() const; |
|
82 |
CCoeControl* ComponentControl( TInt aInd ) const; |
|
83 |
void SizeChanged(); |
|
84 |
||
85 |
public: // From MEikEdwinSizeObserver |
|
86 |
TBool HandleEdwinSizeEventL( |
|
87 |
CEikEdwin* aEdwin, |
|
88 |
TEdwinSizeEvent aType, |
|
89 |
TSize aSize ); |
|
90 |
||
91 |
protected: // From CESMRRichTextViewer |
|
92 |
TBool HandleRichTextLinkSelection( const CESMRRichTextLink* aLink ); |
|
93 |
||
94 |
private: // Implementation |
|
95 |
CESMRViewerDetailedSubjectField(); |
|
96 |
void ConstructL(); |
|
97 |
void SetMiddleSoftkeyL(); |
|
98 |
||
99 |
private: // data |
|
100 |
// Own: Edwin size |
|
101 |
TSize iSize; |
|
102 |
// Own: Field icon |
|
103 |
CMRImage* iFieldIcon; |
|
104 |
// Own: Priority icon |
|
105 |
CMRImage* iPriorityIcon; |
|
106 |
// Not own: Subject text is storaged here |
|
107 |
CESMRRichTextViewer* iRichTextViewer; |
|
108 |
/// Ref: Pointer to title pane observer |
|
109 |
MESMRTitlePaneObserver* iTitlePaneObserver; |
|
80
726fba06891a
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
110 |
// Stores current priority value |
726fba06891a
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
64
diff
changeset
|
111 |
TUint iCurrentPriority; |
64 | 112 |
}; |
113 |
||
114 |
#endif // CESMRVIEWERDETAILEDSUBJECTFIELD_H_ |