equal
deleted
inserted
replaced
21 // INCLUDES |
21 // INCLUDES |
22 #include "logsstatebase.h" |
22 #include "logsstatebase.h" |
23 #include <e32std.h> |
23 #include <e32std.h> |
24 #include <logclientchangeobserver.h> |
24 #include <logclientchangeobserver.h> |
25 #include <logviewchangeobserver.h> |
25 #include <logviewchangeobserver.h> |
|
26 #include "logsduplicatelookup.h" |
26 |
27 |
27 // FORWARD DECLARATION |
28 // FORWARD DECLARATION |
28 class LogsReaderStateContext; |
29 class LogsReaderStateContext; |
29 class LogsEvent; |
30 class LogsEvent; |
30 class CLogViewEvent; |
31 class CLogViewEvent; |
196 |
197 |
197 /** |
198 /** |
198 * Synchronously fills details from phonebook |
199 * Synchronously fills details from phonebook |
199 */ |
200 */ |
200 void fillDetails(); |
201 void fillDetails(); |
201 |
202 |
202 public: // From LogsReaderStateBase |
203 public: // From LogsReaderStateBase |
203 virtual bool enterL(); |
204 virtual bool enterL(); |
|
205 private: |
|
206 void mergeDuplicates( LogsEvent& usedEvent, LogsEvent& discardedEvent ) const; |
|
207 |
|
208 private: |
|
209 LogsDuplicateLookup mDuplicateLookup; |
|
210 |
|
211 private: // For testing |
|
212 |
|
213 friend class UT_LogsReaderStates; |
204 }; |
214 }; |
205 |
215 |
206 /** |
216 /** |
207 * Completed state |
217 * Completed state |
208 */ |
218 */ |
252 protected: |
262 protected: |
253 bool mGettingDuplicates; |
263 bool mGettingDuplicates; |
254 }; |
264 }; |
255 |
265 |
256 /** |
266 /** |
257 * Marking duplicate events state |
267 * Reading duplicate events state |
258 */ |
268 */ |
259 class LogsReaderStateReadingDuplicates : public LogsReaderStateBase |
269 class LogsReaderStateReadingDuplicates : public LogsReaderStateBase |
260 { |
270 { |
261 friend class UT_LogsReaderStates; |
271 friend class UT_LogsReaderStates; |
262 |
272 |
268 virtual bool enterL(); |
278 virtual bool enterL(); |
269 virtual bool continueL(); |
279 virtual bool continueL(); |
270 }; |
280 }; |
271 |
281 |
272 /** |
282 /** |
|
283 * Merging duplicate events state |
|
284 */ |
|
285 class LogsReaderStateMergingDuplicates : public LogsReaderStateBase |
|
286 { |
|
287 friend class UT_LogsReaderStates; |
|
288 |
|
289 public: |
|
290 LogsReaderStateMergingDuplicates(LogsStateBaseContext& context, LogsReaderStateContext& readerContext); |
|
291 virtual ~LogsReaderStateMergingDuplicates(){} |
|
292 |
|
293 public: // From LogsReaderStateBase |
|
294 virtual bool enterL(); |
|
295 }; |
|
296 |
|
297 /** |
273 * Modifying done state |
298 * Modifying done state |
274 */ |
299 */ |
275 class LogsReaderStateModifyingDone : public LogsReaderStateBase |
300 class LogsReaderStateModifyingDone : public LogsReaderStateBase |
276 { |
301 { |
277 friend class UT_LogsReaderStates; |
302 friend class UT_LogsReaderStates; |