|
1 /* |
|
2 * Copyright (c) 2003-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 that holds the status of the MR participant |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRTRACKSTATUS_H_ |
|
20 #define CESMRTRACKSTATUS_H_ |
|
21 |
|
22 #include "resmrstatic.h" |
|
23 #include "cesmrviewerlabelfield.h" |
|
24 #include <eikrted.h> |
|
25 #include <cntitem.h> |
|
26 #include <eiklbx.h> |
|
27 #include <eikedwob.h> |
|
28 |
|
29 // Forward declarations |
|
30 class CCalAttendee; |
|
31 |
|
32 /** |
|
33 * This class shows the status of the attendee of a meeting request |
|
34 * a meeting request can have many of these in several modes |
|
35 */ |
|
36 NONSHARABLE_CLASS( CESMRTrackStatus ) : public CESMRViewerLabelField |
|
37 { |
|
38 public: |
|
39 /** |
|
40 * Constructor for the track status field |
|
41 * @return New mr partcipant tracking status holder field |
|
42 */ |
|
43 static CESMRTrackStatus* NewL(); |
|
44 |
|
45 /** |
|
46 * C++ Destructor. |
|
47 */ |
|
48 ~CESMRTrackStatus(); |
|
49 |
|
50 public: // Interface |
|
51 /* |
|
52 * Draws right-arrow icon. |
|
53 * @param aFocused selects to hide or display icon |
|
54 */ |
|
55 void SetActionMenuIconL( TBool aFocused ); |
|
56 |
|
57 public: // From CESMRField |
|
58 void InternalizeL( MESMRCalEntry& aEntry ); |
|
59 void SetOutlineFocusL( TBool aFocus ); |
|
60 |
|
61 public: // From CoeControl |
|
62 TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType ); |
|
63 TInt CountComponentControls() const; |
|
64 CCoeControl* ComponentControl( TInt aInd ) const; |
|
65 void SizeChanged(); |
|
66 |
|
67 private: // Implementation |
|
68 CESMRTrackStatus(); |
|
69 void ConstructL(); |
|
70 HBufC* ClipTextLC( const TDesC& aText, |
|
71 const CFont& aFont, |
|
72 TInt aWidth ); |
|
73 private: |
|
74 /** |
|
75 * The address of the attendee. Own |
|
76 */ |
|
77 HBufC* iAddress; |
|
78 |
|
79 /** |
|
80 * The default address of the attendee. Own |
|
81 */ |
|
82 HBufC* iDefaultAddress; |
|
83 |
|
84 /** |
|
85 * The Common name of the attendee. Own |
|
86 */ |
|
87 HBufC* iCommonName; |
|
88 |
|
89 /** |
|
90 * Static TLS stored variables. |
|
91 */ |
|
92 RESMRStatic iESMRStatic; |
|
93 |
|
94 /** |
|
95 * Ref: Reference to menu handler |
|
96 */ |
|
97 CESMRContactMenuHandler* iMenuHandler; |
|
98 |
|
99 /* |
|
100 * Action Menu icon |
|
101 */ |
|
102 CFbsBitmap* iActionMenuIcon; |
|
103 |
|
104 /* |
|
105 * Action Menu icon mask. |
|
106 */ |
|
107 CFbsBitmap* iActionMenuIconMask; |
|
108 |
|
109 /** |
|
110 * Owned. checkbox_mark/checkbox_unmark |
|
111 */ |
|
112 CEikImage* iIcon; |
|
113 }; |
|
114 |
|
115 #endif /*CESMRTRACKSTATUS_H_*/ |
|
116 |
|
117 // End of file |