|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Base for datafillers of various Meeting Request message types |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CMRDATAFILLERBASE_H |
|
22 #define CMRDATAFILLERBASE_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "MMRDataFillerInterface.h" |
|
26 #include <e32base.h> |
|
27 #include <caluser.h> // CCalAttendee |
|
28 #include <MAgnEntryUi.h> |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class MMRModelInterface; |
|
32 class CCoeEnv; |
|
33 class CCalEntry; |
|
34 class CRichBio; |
|
35 class CMRMailboxUtils; |
|
36 class CMRStringFormatter; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * ?one_line_short_description. |
|
42 * ?other_description_lines |
|
43 * |
|
44 * @lib ?library |
|
45 * @since Series ?XX ?SeriesXX_version |
|
46 */ |
|
47 class CMRDataFillerBase |
|
48 : public CBase, |
|
49 public MMRDataFillerInterface |
|
50 { |
|
51 public: // Constructors and destructor |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CMRDataFillerBase(); |
|
57 |
|
58 public: //API |
|
59 |
|
60 virtual void FillViewerWithDataL(); |
|
61 |
|
62 virtual void RefreshViewerL(); |
|
63 |
|
64 virtual void DoFillViewerL() = 0; |
|
65 |
|
66 protected: |
|
67 |
|
68 /** |
|
69 * |
|
70 */ |
|
71 virtual void FillOrganiserDataL(); |
|
72 |
|
73 /** |
|
74 * |
|
75 */ |
|
76 virtual void FillWhenDataL(); |
|
77 |
|
78 /** |
|
79 * |
|
80 */ |
|
81 virtual void FillStartTimeDataL(); |
|
82 |
|
83 /** |
|
84 * |
|
85 */ |
|
86 virtual void FillEndTimeDataL(); |
|
87 |
|
88 /** |
|
89 * |
|
90 */ |
|
91 virtual void FillLocationDataL(); |
|
92 |
|
93 /** |
|
94 * |
|
95 */ |
|
96 virtual void FillDescriptionDataL(); |
|
97 |
|
98 /** |
|
99 * |
|
100 */ |
|
101 virtual void FillStatusDataL(); |
|
102 |
|
103 /** |
|
104 * |
|
105 */ |
|
106 virtual void FillAttendanceDataL(); |
|
107 |
|
108 /** |
|
109 * |
|
110 */ |
|
111 virtual void FillAlarmTimeDataL(); |
|
112 |
|
113 /** |
|
114 * |
|
115 */ |
|
116 virtual void FillAlarmDateDataL(); |
|
117 |
|
118 /** |
|
119 * |
|
120 */ |
|
121 virtual void FillRepeatRuleDataL(); |
|
122 |
|
123 /** |
|
124 * |
|
125 */ |
|
126 virtual void FillRepeatUntilDataL(); |
|
127 |
|
128 /** |
|
129 * |
|
130 */ |
|
131 virtual void FillSynchronisationDataL(); |
|
132 |
|
133 /** |
|
134 * Helper for adding to viewer. |
|
135 * @param aViewer Reference to the viewer control |
|
136 * @param aLabelRes Resource id for label |
|
137 * @param aValue Value text |
|
138 */ |
|
139 void AddItemL( CRichBio& aViewer, |
|
140 TInt aLabelRes, |
|
141 const TDesC& aValue ); |
|
142 |
|
143 /** |
|
144 * Helper for adding to viewer. |
|
145 * @param aViewer Reference to the viewer control |
|
146 * @param aLabelRes Resource id for label |
|
147 * @param aValueRes Resource id for value text |
|
148 */ |
|
149 void AddItemL( CRichBio& aViewer, |
|
150 TInt aLabelRes, |
|
151 TInt aValueRes ); |
|
152 |
|
153 /** |
|
154 * |
|
155 */ |
|
156 TInt GetAttendanceStatusL( const CCalAttendee& aAttendee ); |
|
157 |
|
158 /** |
|
159 * |
|
160 */ |
|
161 TBool MeetingOnSameDayL(); |
|
162 |
|
163 /** |
|
164 * |
|
165 */ |
|
166 TInt GetAttendeeStatusL( const CCalAttendee& aAttendee ); |
|
167 |
|
168 /** |
|
169 * |
|
170 */ |
|
171 TInt GetRepeatingEntryRuleL(); |
|
172 |
|
173 protected: //construction |
|
174 |
|
175 /** |
|
176 * Constructor |
|
177 * @param aEntry Reference to the agenda entry. |
|
178 */ |
|
179 CMRDataFillerBase( CRichBio& iRichBio, |
|
180 MMRModelInterface& aModel, |
|
181 CCoeEnv& aCoeEnv, |
|
182 CMRMailboxUtils& aUtils, |
|
183 MAgnEntryUi::TAgnEntryUiInParams& aParams ); |
|
184 |
|
185 /** |
|
186 * By default Symbian 2nd phase constructor is private. |
|
187 */ |
|
188 void ConstructL(); |
|
189 |
|
190 protected: // Data |
|
191 |
|
192 MAgnEntryUi::TAgnEntryUiInParams iParams; |
|
193 |
|
194 CCoeEnv& iCoeEnv; |
|
195 |
|
196 MMRModelInterface& iModel; |
|
197 |
|
198 CRichBio& iRichBio; |
|
199 |
|
200 CMRMailboxUtils& iUtils; |
|
201 |
|
202 // not own |
|
203 CCalEntry* iEntry; |
|
204 |
|
205 // own |
|
206 CMRStringFormatter* iStringFormatter; |
|
207 }; |
|
208 |
|
209 #endif // ?CLASSNAME_H |
|
210 |
|
211 // End of File |