equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
20 #define __CESMRVIEWERPRIORITYFIELD_H__ |
20 #define __CESMRVIEWERPRIORITYFIELD_H__ |
21 |
21 |
22 #include <eikrted.h> |
22 #include <eikrted.h> |
23 #include <eikedwob.h> |
23 #include <eikedwob.h> |
24 |
24 |
25 #include "cesmrviewerlabelfield.h" |
25 #include "cesmrfield.h" |
|
26 |
|
27 // Forward declarations |
|
28 class CMRImage; |
|
29 class CMRLabel; |
26 |
30 |
27 /** |
31 /** |
28 * This class shows the priority of the event |
32 * This class shows the priority of the event |
29 */ |
33 */ |
30 NONSHARABLE_CLASS( CESMRViewerPriorityField ) : public CESMRViewerLabelField |
34 NONSHARABLE_CLASS( CESMRViewerPriorityField ) : public CESMRField |
31 { |
35 { |
32 public: |
36 public: |
33 /** |
37 /** |
34 * Creates new CESMRViewerPriorityField object. Ownership |
38 * Creates new CESMRViewerPriorityField object. Ownership |
35 * is transferred to caller. |
39 * is transferred to caller. |
42 */ |
46 */ |
43 ~CESMRViewerPriorityField(); |
47 ~CESMRViewerPriorityField(); |
44 |
48 |
45 public: // From CESMRField |
49 public: // From CESMRField |
46 void InternalizeL( MESMRCalEntry& aEntry ); |
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; |
47 |
59 |
48 private: // Implementation |
60 private: // Implementation |
49 CESMRViewerPriorityField(); |
61 CESMRViewerPriorityField(); |
50 void ConstructL(); |
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; |
51 }; |
72 }; |
52 |
73 |
53 #endif //__CESMRVIEWERPRIORITYFIELD_H__ |
74 #endif //__CESMRVIEWERPRIORITYFIELD_H__ |