|
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: Priority field for viewers |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CESMRVIEWERPRIORITYFIELD_H__ |
|
20 #define __CESMRVIEWERPRIORITYFIELD_H__ |
|
21 |
|
22 #include <eikrted.h> |
|
23 #include <eikedwob.h> |
|
24 |
|
25 #include "cesmrfield.h" |
|
26 |
|
27 // Forward declarations |
|
28 class CMRImage; |
|
29 class CMRLabel; |
|
30 |
|
31 /** |
|
32 * This class shows the priority of the event |
|
33 */ |
|
34 NONSHARABLE_CLASS( CESMRViewerPriorityField ) : public CESMRField |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Creates new CESMRViewerPriorityField object. Ownership |
|
39 * is transferred to caller. |
|
40 * @return Pointer to created object, |
|
41 */ |
|
42 static CESMRViewerPriorityField* NewL(); |
|
43 |
|
44 /** |
|
45 * C++ Destructor. |
|
46 */ |
|
47 ~CESMRViewerPriorityField(); |
|
48 |
|
49 public: // From CESMRField |
|
50 void InternalizeL( MESMRCalEntry& aEntry ); |
|
51 void SetOutlineFocusL( TBool aFocus ); |
|
52 void LockL(); |
|
53 TBool ExecuteGenericCommandL( TInt aCommand ); |
|
54 |
|
55 public: // From CCoeControl |
|
56 void SizeChanged(); |
|
57 TInt CountComponentControls() const; |
|
58 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
59 |
|
60 private: // Implementation |
|
61 CESMRViewerPriorityField(); |
|
62 void ConstructL(); |
|
63 |
|
64 private: // data |
|
65 |
|
66 // Owned: Field icon |
|
67 CMRImage* iIcon; |
|
68 /// Owned: Lock icon |
|
69 CMRImage* iLockIcon; |
|
70 // Not own: Field text label |
|
71 CMRLabel* iLabel; |
|
72 }; |
|
73 |
|
74 #endif //__CESMRVIEWERPRIORITYFIELD_H__ |