|
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: To handle priority feild |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CALENEVPRIORITYFIELD_H__ |
|
19 #define __CALENEVPRIORITYFIELD_H__ |
|
20 |
|
21 // system includes |
|
22 #include <e32base.h> |
|
23 #include <badesca.h> |
|
24 #include <calcommon.h> |
|
25 |
|
26 // user includes |
|
27 #include "calenunifiededitor.h" |
|
28 |
|
29 // forward declaration |
|
30 class CCalEntry; |
|
31 class CAknQueryValueTextArray; |
|
32 class CAknQueryValueText; |
|
33 class TCalRule; |
|
34 |
|
35 /** |
|
36 * Implements event type field for Calendar unified Editor. |
|
37 */ |
|
38 NONSHARABLE_CLASS( CCalenPriorityField ) : public CBase |
|
39 { |
|
40 public: |
|
41 /** |
|
42 * |
|
43 */ |
|
44 static CCalenPriorityField* NewL( CCalenUnifiedEditor& aUnifiedEditor ); |
|
45 |
|
46 /** |
|
47 * @brief default destructor |
|
48 */ |
|
49 virtual ~CCalenPriorityField(); |
|
50 |
|
51 public: |
|
52 /** |
|
53 * @brief To read data from form |
|
54 */ |
|
55 void ReadDataFromFormL( TBool aContinueOnError ); |
|
56 |
|
57 /** |
|
58 * @brief update Priority field in the Editor |
|
59 */ |
|
60 void SetDataToEditorL(); |
|
61 |
|
62 /** |
|
63 * @brief Updates fields just before the form is shown. |
|
64 */ |
|
65 void InitPriorityFieldLayoutL(); |
|
66 |
|
67 /** |
|
68 * @brief Handle Priority field change |
|
69 * @param aFocusedId |
|
70 */ |
|
71 void HandleControlStateChangeL(TInt aControlId); |
|
72 |
|
73 /** |
|
74 * @brief Handle focus transition from Priority field |
|
75 * @param aFocusedId |
|
76 */ |
|
77 void PrepareForFocusTransitionL(TInt aFocusedId); |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * @brief This function is used when the top item of each form |
|
83 */ |
|
84 void NotifyPriorityChangeL(); |
|
85 |
|
86 private: |
|
87 /** |
|
88 * @brief C++ constructor |
|
89 * @param aUnifiedEditor referance to CCalenUnifiedEditor |
|
90 */ |
|
91 CCalenPriorityField( CCalenUnifiedEditor& aUnifiedEditor ); |
|
92 |
|
93 /** |
|
94 * @brief Two-Phase constructor |
|
95 */ |
|
96 void ConstructL(); |
|
97 |
|
98 private: |
|
99 |
|
100 |
|
101 |
|
102 /** |
|
103 * @var iUnifiedEditor |
|
104 * @brief referanace to CCalenUnifiedEditor |
|
105 */ |
|
106 CCalenUnifiedEditor& iUnifiedEditor; |
|
107 |
|
108 /** |
|
109 * @var iPriorityArrayText |
|
110 * @brief CDesCArrayFlat for Priority text values |
|
111 */ |
|
112 CDesCArrayFlat* iPriorityArrayText; |
|
113 |
|
114 /** |
|
115 * @var iPriorityArray |
|
116 */ |
|
117 CAknQueryValueTextArray* iPriorityArray; |
|
118 |
|
119 /** |
|
120 * @var iPriorityTextValues |
|
121 */ |
|
122 CAknQueryValueText* iPriorityTextValues; |
|
123 }; |
|
124 |
|
125 #endif |