|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 |
|
20 #include <QObject> |
|
21 #include <qcontactmanager.h> |
|
22 #include <qcontactdetailfilter.h> |
|
23 #include <qcontactphonenumber.h> |
|
24 #include <qcontactname.h> |
|
25 #include <qcontactonlineaccount.h> |
|
26 #include <hbglobal.h> |
|
27 #include "logsevent.h" |
|
28 #include "logseventparser.h" |
|
29 #include "logseventdata.h" |
|
30 #include "logsengdefs.h" |
|
31 #include "logslogger.h" |
|
32 |
|
33 // CONSTANTS |
|
34 |
|
35 // ---------------------------------------------------------------------------- |
|
36 // logsEvent::logsEvent |
|
37 // ---------------------------------------------------------------------------- |
|
38 // |
|
39 LogsEvent::LogsEvent() |
|
40 : mLogId(-1), |
|
41 mDirection(DirUndefined), |
|
42 mEventType(TypeUndefined), |
|
43 mUid(0), |
|
44 mLogsEventData(0), |
|
45 mDuplicates(0), |
|
46 mRingDuration(0), |
|
47 mIsRead(false), |
|
48 mIsALS(false), |
|
49 mDuration(0), |
|
50 mIndex(0), |
|
51 mIsInView(false), |
|
52 mEventState(EventAdded), |
|
53 mIsLocallySeen(false) |
|
54 { |
|
55 } |
|
56 |
|
57 // ---------------------------------------------------------------------------- |
|
58 // LogsEvent::LogsEvent |
|
59 // ---------------------------------------------------------------------------- |
|
60 // |
|
61 LogsEvent::LogsEvent( const LogsEvent& event ) |
|
62 { |
|
63 mLogId = event.mLogId; |
|
64 mDirection = event.mDirection; |
|
65 mEventType = event.mEventType; |
|
66 mUid = event.mUid; |
|
67 if ( event.mLogsEventData ){ |
|
68 mLogsEventData = new LogsEventData( *event.mLogsEventData ); |
|
69 } else { |
|
70 mLogsEventData = 0; |
|
71 } |
|
72 mRemoteParty = event.mRemoteParty; |
|
73 mNumber = event.mNumber; |
|
74 mDuplicates = event.mDuplicates; |
|
75 mTime = event.mTime; |
|
76 mRingDuration = event.mRingDuration; |
|
77 mIsRead = event.mIsRead; |
|
78 mIsALS = event.mIsALS; |
|
79 mDuration = event.mDuration; |
|
80 |
|
81 mIndex = event.mIndex; |
|
82 mIsInView = event.mIsInView; |
|
83 mEventState = event.mEventState; |
|
84 mIsLocallySeen = event.mIsLocallySeen; |
|
85 } |
|
86 |
|
87 // ---------------------------------------------------------------------------- |
|
88 // LogsEvent::~LogsEvent |
|
89 // ---------------------------------------------------------------------------- |
|
90 // |
|
91 LogsEvent::~LogsEvent() |
|
92 { |
|
93 delete mLogsEventData; |
|
94 } |
|
95 |
|
96 // ---------------------------------------------------------------------------- |
|
97 // LogsEvent::initializeEventL |
|
98 // ---------------------------------------------------------------------------- |
|
99 // |
|
100 void LogsEvent::initializeEventL( |
|
101 const CLogEvent& source, |
|
102 const LogsEventStrings& strings ) |
|
103 { |
|
104 LogsEventParser::parseL(source, *this, strings); |
|
105 LOGS_QDEBUG_5( "LogsEvent::initializeEvent (num,dir,logid,state):", |
|
106 mNumber, mDirection, mLogId, mEventState ) |
|
107 } |
|
108 |
|
109 |
|
110 // ---------------------------------------------------------------------------- |
|
111 // LogsEvent::isEmergencyNumber |
|
112 // Checks wether the number is an emergency number |
|
113 // ---------------------------------------------------------------------------- |
|
114 |
|
115 bool LogsEvent::isEmergencyNumber(const QString& number) |
|
116 { |
|
117 return ( number == logsEmergencyCall911 || number == logsEmergencyCall ); |
|
118 } |
|
119 |
|
120 // ---------------------------------------------------------------------------- |
|
121 // LogsEvent::setDuration() |
|
122 // ---------------------------------------------------------------------------- |
|
123 // |
|
124 void LogsEvent::setDuration( int duration ) |
|
125 { |
|
126 mDuration = duration; |
|
127 } |
|
128 |
|
129 // ---------------------------------------------------------------------------- |
|
130 // LogsEvent::setALS() |
|
131 // ---------------------------------------------------------------------------- |
|
132 // |
|
133 void LogsEvent::setALS( bool isALS ) |
|
134 { |
|
135 mIsALS = isALS; |
|
136 } |
|
137 |
|
138 // ---------------------------------------------------------------------------- |
|
139 // LogsEvent::setLogId |
|
140 // ---------------------------------------------------------------------------- |
|
141 // |
|
142 void LogsEvent::setLogId( int logId ) |
|
143 { |
|
144 mLogId = logId; |
|
145 } |
|
146 |
|
147 // ---------------------------------------------------------------------------- |
|
148 // LogsEvent::setNumber |
|
149 // ---------------------------------------------------------------------------- |
|
150 // |
|
151 bool LogsEvent::setNumber( const QString& number ) |
|
152 { |
|
153 bool changed( mNumber != number ); |
|
154 mNumber = number; |
|
155 return changed; |
|
156 } |
|
157 |
|
158 // ---------------------------------------------------------------------------- |
|
159 // LogsEvent::setRemoteParty |
|
160 // ---------------------------------------------------------------------------- |
|
161 // |
|
162 void LogsEvent::setRemoteParty( const QString& remoteParty ) |
|
163 { |
|
164 if ( mEventState == EventNotUpdated && mRemoteParty != remoteParty ){ |
|
165 LOGS_QDEBUG( "logs [ENG] <-> LogsEvent::setRemoteParty, event updated") |
|
166 mEventState = LogsEvent::EventUpdated; |
|
167 } |
|
168 mRemoteParty = remoteParty; |
|
169 } |
|
170 |
|
171 // ---------------------------------------------------------------------------- |
|
172 // LogsEvent::validate |
|
173 // ---------------------------------------------------------------------------- |
|
174 // |
|
175 bool LogsEvent::validate() |
|
176 { |
|
177 return ( !mNumber.isEmpty() || !mRemoteParty.isEmpty() || |
|
178 ( mLogsEventData && !mLogsEventData->remoteUrl().isEmpty() ) ); |
|
179 } |
|
180 |
|
181 // ---------------------------------------------------------------------------- |
|
182 // LogsEvent::directionAsString |
|
183 // ---------------------------------------------------------------------------- |
|
184 // |
|
185 QString LogsEvent::directionAsString() const |
|
186 { |
|
187 QString dir; |
|
188 if ( mDirection == DirIn ) { |
|
189 dir = hbTrId("txt_dialer_ui_dblist_call_direction_val_received"); |
|
190 } else if ( mDirection == DirOut ) { |
|
191 dir = hbTrId("txt_dialer_ui_dblist_call_direction_val_dialled"); |
|
192 } else if ( mDirection == DirMissed ) { |
|
193 dir = hbTrId("txt_dialer_ui_dblist_call_direction_val_missed"); |
|
194 } else { |
|
195 dir = QObject::tr("Direction unknown"); |
|
196 } |
|
197 return dir; |
|
198 } |
|
199 |
|
200 // ---------------------------------------------------------------------------- |
|
201 // LogsEvent::typeAsString |
|
202 // ---------------------------------------------------------------------------- |
|
203 // |
|
204 QString LogsEvent::typeAsString() const |
|
205 { |
|
206 QString type; |
|
207 if ( mEventType == TypeVoiceCall ) { |
|
208 type = hbTrId("txt_dialer_ui_dblist_call_type_val_voice_call"); |
|
209 } else if ( mEventType == TypeVideoCall ) { |
|
210 type = hbTrId("txt_dialer_ui_dblist_call_type_val_video_call"); |
|
211 } else if ( mEventType == TypeVoIPCall ) { |
|
212 type = hbTrId("txt_dialer_ui_dblist_call_type_val_voip_call"); |
|
213 } else { |
|
214 type = QObject::tr("Type unknown"); |
|
215 } |
|
216 return type; |
|
217 } |
|
218 |
|
219 // ---------------------------------------------------------------------------- |
|
220 // LogsEvent::getNumberForCalling |
|
221 // ---------------------------------------------------------------------------- |
|
222 // |
|
223 QString LogsEvent::getNumberForCalling() |
|
224 { |
|
225 if (mNumber.isEmpty() && mEventType == TypeVoIPCall && mLogsEventData ) { |
|
226 return mLogsEventData->remoteUrl(); |
|
227 } |
|
228 return mNumber; |
|
229 } |
|
230 |
|
231 // ---------------------------------------------------------------------------- |
|
232 // LogsEvent::setDirection |
|
233 // ---------------------------------------------------------------------------- |
|
234 // |
|
235 bool LogsEvent::setDirection( LogsDirection direction ) |
|
236 { |
|
237 bool changed( mDirection != direction ); |
|
238 mDirection = direction; |
|
239 return changed; |
|
240 } |
|
241 |
|
242 // ---------------------------------------------------------------------------- |
|
243 // LogsEvent::setEventUid |
|
244 // ---------------------------------------------------------------------------- |
|
245 // |
|
246 void LogsEvent::setEventUid( int uid ) |
|
247 { |
|
248 mUid = uid; |
|
249 } |
|
250 |
|
251 // ---------------------------------------------------------------------------- |
|
252 // LogsEvent::setEventType |
|
253 // ---------------------------------------------------------------------------- |
|
254 // |
|
255 void LogsEvent::setEventType( LogsEventType eventType ) |
|
256 { |
|
257 mEventType = eventType; |
|
258 } |
|
259 |
|
260 // ---------------------------------------------------------------------------- |
|
261 // LogsEvent::ALS() |
|
262 // ---------------------------------------------------------------------------- |
|
263 // |
|
264 bool LogsEvent::ALS() const |
|
265 { |
|
266 return mIsALS; |
|
267 } |
|
268 |
|
269 // ---------------------------------------------------------------------------- |
|
270 // LogsEvent::logId |
|
271 // ---------------------------------------------------------------------------- |
|
272 // |
|
273 int LogsEvent::logId() const |
|
274 { |
|
275 return mLogId; |
|
276 } |
|
277 |
|
278 // ---------------------------------------------------------------------------- |
|
279 // LogsEvent::setIsRead |
|
280 // ---------------------------------------------------------------------------- |
|
281 bool LogsEvent::setIsRead(bool isRead) |
|
282 { |
|
283 bool changed( mIsRead != isRead ); |
|
284 mIsRead = isRead; |
|
285 return changed; |
|
286 } |
|
287 |
|
288 |
|
289 // ---------------------------------------------------------------------------- |
|
290 // LogsEvent::Number |
|
291 // ---------------------------------------------------------------------------- |
|
292 // |
|
293 const QString& LogsEvent::number() const |
|
294 { |
|
295 return mNumber; |
|
296 } |
|
297 |
|
298 // ---------------------------------------------------------------------------- |
|
299 // LogsEvent::RemoteParty |
|
300 // ---------------------------------------------------------------------------- |
|
301 // |
|
302 const QString& LogsEvent::remoteParty() const |
|
303 { |
|
304 return mRemoteParty; |
|
305 } |
|
306 |
|
307 // ---------------------------------------------------------------------------- |
|
308 // LogsEvent::Direction |
|
309 // ---------------------------------------------------------------------------- |
|
310 // |
|
311 LogsEvent::LogsDirection LogsEvent::direction() const |
|
312 { |
|
313 return mDirection; |
|
314 } |
|
315 |
|
316 // ---------------------------------------------------------------------------- |
|
317 // LogsEvent::eventUid |
|
318 // ---------------------------------------------------------------------------- |
|
319 // |
|
320 int LogsEvent::eventUid() const |
|
321 { |
|
322 return mUid; |
|
323 } |
|
324 |
|
325 // ---------------------------------------------------------------------------- |
|
326 // LogsEvent::eventType |
|
327 // ---------------------------------------------------------------------------- |
|
328 // |
|
329 LogsEvent::LogsEventType LogsEvent::eventType() const |
|
330 { |
|
331 return mEventType; |
|
332 } |
|
333 |
|
334 // ---------------------------------------------------------------------------- |
|
335 // LogsEvent::isRead |
|
336 // ---------------------------------------------------------------------------- |
|
337 bool LogsEvent::isRead() const |
|
338 { |
|
339 return mIsRead; |
|
340 } |
|
341 |
|
342 // ---------------------------------------------------------------------------- |
|
343 // LogsEvent::RingDuration |
|
344 // |
|
345 // For ring duation feature |
|
346 // ---------------------------------------------------------------------------- |
|
347 // |
|
348 int LogsEvent::ringDuration() const |
|
349 { |
|
350 return mRingDuration; |
|
351 } |
|
352 |
|
353 // ---------------------------------------------------------------------------- |
|
354 // LogsEvent::duration |
|
355 // ---------------------------------------------------------------------------- |
|
356 // |
|
357 int LogsEvent::duration() const |
|
358 { |
|
359 return mDuration; |
|
360 } |
|
361 |
|
362 // ---------------------------------------------------------------------------- |
|
363 // LogsEvent::SetRingDuration |
|
364 // ---------------------------------------------------------------------------- |
|
365 // |
|
366 void LogsEvent::setRingDuration( int ringDuration ) |
|
367 { |
|
368 mRingDuration = ringDuration; |
|
369 } |
|
370 |
|
371 // ---------------------------------------------------------------------------- |
|
372 // LogsEvent::LogsEventData |
|
373 // ---------------------------------------------------------------------------- |
|
374 // |
|
375 LogsEventData* LogsEvent::logsEventData() const |
|
376 { |
|
377 return mLogsEventData; |
|
378 } |
|
379 |
|
380 // ---------------------------------------------------------------------------- |
|
381 // LogsEvent::setLogsEventData |
|
382 // ---------------------------------------------------------------------------- |
|
383 // |
|
384 void LogsEvent::setLogsEventData( LogsEventData* logsEventData ) |
|
385 { |
|
386 delete mLogsEventData; |
|
387 mLogsEventData = logsEventData; |
|
388 } |
|
389 |
|
390 // ---------------------------------------------------------------------------- |
|
391 // LogsEvent::setTime |
|
392 // |
|
393 // Time needed in recent views and in detail view (not needed in event view) |
|
394 // ---------------------------------------------------------------------------- |
|
395 // |
|
396 bool LogsEvent::setTime( const QDateTime& time ) |
|
397 { |
|
398 bool changed( mTime != time ); |
|
399 mTime = time; |
|
400 return changed; |
|
401 } |
|
402 |
|
403 // ---------------------------------------------------------------------------- |
|
404 // LogsEvent::time |
|
405 // ---------------------------------------------------------------------------- |
|
406 // |
|
407 QDateTime LogsEvent::time() const |
|
408 { |
|
409 return mTime; |
|
410 } |
|
411 |
|
412 // ---------------------------------------------------------------------------- |
|
413 // LogsEvent::setDuplicates |
|
414 // |
|
415 // Duplicates needed only in missed calls view |
|
416 // ---------------------------------------------------------------------------- |
|
417 // |
|
418 void LogsEvent::setDuplicates( int duplicates ) |
|
419 { |
|
420 mDuplicates = duplicates; |
|
421 } |
|
422 |
|
423 // ---------------------------------------------------------------------------- |
|
424 // LogsEvent::duplicates |
|
425 // ---------------------------------------------------------------------------- |
|
426 // |
|
427 int LogsEvent::duplicates() const |
|
428 { |
|
429 return mDuplicates; |
|
430 } |
|
431 |
|
432 // ---------------------------------------------------------------------------- |
|
433 // LogsEvent::setIndex |
|
434 // ---------------------------------------------------------------------------- |
|
435 // |
|
436 void LogsEvent::setIndex(int index) |
|
437 { |
|
438 mIndex = index; |
|
439 } |
|
440 |
|
441 // ---------------------------------------------------------------------------- |
|
442 // LogsEvent::index |
|
443 // ---------------------------------------------------------------------------- |
|
444 // |
|
445 int LogsEvent::index() const |
|
446 { |
|
447 return mIndex; |
|
448 } |
|
449 |
|
450 // ---------------------------------------------------------------------------- |
|
451 // LogsEvent::setIsInView |
|
452 // ---------------------------------------------------------------------------- |
|
453 // |
|
454 void LogsEvent::setIsInView(bool isInView) |
|
455 { |
|
456 mIsInView = isInView; |
|
457 } |
|
458 |
|
459 // ---------------------------------------------------------------------------- |
|
460 // LogsEvent::isInView |
|
461 // ---------------------------------------------------------------------------- |
|
462 // |
|
463 bool LogsEvent::isInView() const |
|
464 { |
|
465 return mIsInView; |
|
466 } |
|
467 |
|
468 // ---------------------------------------------------------------------------- |
|
469 // LogsEvent::eventState |
|
470 // ---------------------------------------------------------------------------- |
|
471 // |
|
472 LogsEvent::LogsEventState LogsEvent::eventState() const |
|
473 { |
|
474 return mEventState; |
|
475 } |
|
476 |
|
477 |
|
478 // ---------------------------------------------------------------------------- |
|
479 // LogsEvent::setContactLocalId |
|
480 // ---------------------------------------------------------------------------- |
|
481 // |
|
482 void LogsEvent::setContactLocalId( unsigned int id ) |
|
483 { |
|
484 if ( !mLogsEventData ) { |
|
485 mLogsEventData = new LogsEventData; |
|
486 } |
|
487 mLogsEventData->setContactLocalId(id); |
|
488 } |
|
489 |
|
490 |
|
491 // ---------------------------------------------------------------------------- |
|
492 // LogsEvent::contactLocalId |
|
493 // ---------------------------------------------------------------------------- |
|
494 // |
|
495 unsigned int LogsEvent::contactLocalId() const |
|
496 { |
|
497 unsigned int id = 0; |
|
498 if ( mLogsEventData ) { |
|
499 id = mLogsEventData->contactLocalId(); |
|
500 } |
|
501 return id; |
|
502 } |
|
503 |
|
504 // ---------------------------------------------------------------------------- |
|
505 // |
|
506 // ---------------------------------------------------------------------------- |
|
507 // |
|
508 QString LogsEvent::updateRemotePartyFromContacts(QContactManager& manager) |
|
509 { |
|
510 QContactDetailFilter phoneFilter; |
|
511 if ( mEventType == TypeVoIPCall && mLogsEventData && !mLogsEventData->remoteUrl().isEmpty() ) { |
|
512 phoneFilter.setDetailDefinitionName( QContactOnlineAccount::DefinitionName, |
|
513 QContactOnlineAccount::FieldAccountUri); |
|
514 phoneFilter.setValue(mLogsEventData->remoteUrl()); |
|
515 phoneFilter.setMatchFlags(QContactFilter::MatchExactly); |
|
516 } else if ( !mNumber.isEmpty() ){ |
|
517 // remove non-significant parts from number for better matching |
|
518 phoneFilter.setDetailDefinitionName( QContactPhoneNumber::DefinitionName, |
|
519 QContactPhoneNumber::FieldNumber); |
|
520 phoneFilter.setValue(stripPhoneNumber(mNumber)); |
|
521 phoneFilter.setMatchFlags(QContactFilter::MatchEndsWith); |
|
522 } else { |
|
523 // Searching not possible |
|
524 return QString(); |
|
525 } |
|
526 |
|
527 LOGS_QDEBUG_2( "logs [ENG] Try to find contact for num:", phoneFilter.value().toString() ) |
|
528 |
|
529 QString contactNameStr; |
|
530 QList<QContactLocalId> matchingContacts = manager.contactIds(phoneFilter); |
|
531 LOGS_QDEBUG_2( "logs [ENG] Number of matches:", matchingContacts.size() ) |
|
532 if (matchingContacts.size() == 1) { |
|
533 // If multiple matches, don't dare to use any |
|
534 QContact match = manager.contact(matchingContacts.at(0)); |
|
535 // QContactManager::synthesiseDisplayLabel would be more clean but |
|
536 // it returns currently "Unnamed" in case of missing name which we |
|
537 // cannot use. |
|
538 QContactName contactName = match.detail(QContactName::DefinitionName); |
|
539 contactNameStr = parseContactName(contactName); |
|
540 if (contactNameStr.length() > 0){ |
|
541 LOGS_QDEBUG_3( "getRemotePartyFromContacts, (name, num):", |
|
542 contactNameStr, mNumber ); |
|
543 // Fill event with new contact info |
|
544 setRemoteParty( contactNameStr ); |
|
545 setContactLocalId( matchingContacts.at(0) ); |
|
546 } |
|
547 } |
|
548 return contactNameStr; |
|
549 } |
|
550 |
|
551 |
|
552 // ---------------------------------------------------------------------------- |
|
553 // LogsEvent::stripPhoneNumber |
|
554 // ---------------------------------------------------------------------------- |
|
555 // |
|
556 QString LogsEvent::stripPhoneNumber(const QString& num) |
|
557 { |
|
558 // Remove international part from beginning if starts with '+' |
|
559 // and leading digit can be removed if doesn't start with '+' |
|
560 // NOTE: since international part is not fixed length, this |
|
561 // approach is not bulletproof (i.e. if international part is |
|
562 // only one digit long, part of group identification code is ignored |
|
563 // which might lead to incorrect matching in case where user |
|
564 // would have two contacts with same subscriber number part but for |
|
565 // different operator (quite unlikely). |
|
566 |
|
567 if ( num.length() == 0 ){ |
|
568 return num; |
|
569 } |
|
570 QString modifiedNum( num ); |
|
571 if ( modifiedNum.at(0) == '+' ) { |
|
572 // QString handles automatically case of removing too much |
|
573 const int removePlusAndInternationalPart = 4; |
|
574 modifiedNum.remove( 0, removePlusAndInternationalPart ); |
|
575 } |
|
576 else { |
|
577 const int removeFirstDigit = 1; |
|
578 modifiedNum.remove( 0, removeFirstDigit ); |
|
579 } |
|
580 |
|
581 return modifiedNum; |
|
582 } |
|
583 |
|
584 // ---------------------------------------------------------------------------- |
|
585 // LogsEvent::parseContactName |
|
586 // ---------------------------------------------------------------------------- |
|
587 // |
|
588 QString LogsEvent::parseContactName(const QContactName& name) |
|
589 { |
|
590 QString firstName = name.value(QContactName::FieldFirst); |
|
591 QString lastName = name.value(QContactName::FieldLast); |
|
592 QString parsedName; |
|
593 if (!lastName.isEmpty()) { |
|
594 if (!firstName.isEmpty()) { |
|
595 parsedName = |
|
596 QString(QLatin1String("%1 %2")).arg(firstName).arg(lastName); |
|
597 } |
|
598 else { |
|
599 parsedName = lastName; |
|
600 } |
|
601 } else if (!firstName.isEmpty()) { |
|
602 parsedName = firstName; |
|
603 } |
|
604 return parsedName; |
|
605 } |
|
606 |
|
607 // ---------------------------------------------------------------------------- |
|
608 // |
|
609 // ---------------------------------------------------------------------------- |
|
610 // |
|
611 void LogsEvent::prepareForContactMatching() |
|
612 { |
|
613 // If event would be in "added" state when contact mathing is done, event state |
|
614 // would not go to "updated" in case of associated contact was modified or |
|
615 // new matching contact was found. This would prevent list update. |
|
616 if ( mEventState == EventAdded ) { |
|
617 LOGS_QDEBUG( "logs [ENG] <-> LogsEvent::prepareForContactMatching, prepared") |
|
618 mEventState = EventNotUpdated; |
|
619 } |
|
620 } |
|
621 |
|
622 // ---------------------------------------------------------------------------- |
|
623 // |
|
624 // ---------------------------------------------------------------------------- |
|
625 // |
|
626 void LogsEvent::markedAsSeenLocally(bool markedAsSeen) |
|
627 { |
|
628 mIsLocallySeen = markedAsSeen; |
|
629 } |
|
630 |
|
631 // ---------------------------------------------------------------------------- |
|
632 // |
|
633 // ---------------------------------------------------------------------------- |
|
634 // |
|
635 bool LogsEvent::isSeenLocally() const |
|
636 { |
|
637 return ( mIsLocallySeen || mIsRead ); |
|
638 } |
|
639 |
|
640 // End of file |
|
641 |