equal
deleted
inserted
replaced
604 |
604 |
605 #if defined(__VERBOSE_DEBUG__) |
605 #if defined(__VERBOSE_DEBUG__) |
606 DebugLogNotification(_L("[CNTMODEL] . . . . . Queueing Database Event "), aEvent); |
606 DebugLogNotification(_L("[CNTMODEL] . . . . . Queueing Database Event "), aEvent); |
607 #endif |
607 #endif |
608 iOutstandingEvents.AppendL(aEvent); |
608 iOutstandingEvents.AppendL(aEvent); |
|
609 |
|
610 // The view state is set to ENotReady when a recovery takes place, and also when the tables |
|
611 // are closed, so set ready here. |
|
612 if (iState == ENotReady && (aEvent.iType |
|
613 == EContactDbObserverEventRecover || aEvent.iType |
|
614 == EContactDbObserverEventTablesOpened)) |
|
615 { |
|
616 SetState(EReady); |
|
617 } |
|
618 // view was Initializing (sorting) before recovery or compression started! |
|
619 if (iState == EInitializing && (aEvent.iType |
|
620 == EContactDbObserverEventRecover || aEvent.iType |
|
621 == EContactDbObserverEventCompress)) |
|
622 { |
|
623 // re-read database and sort |
|
624 SafeResort(); |
|
625 } |
|
626 |
609 } |
627 } |
610 |
628 |
611 |
629 |
612 #if defined(__VERBOSE_DEBUG__) |
630 #if defined(__VERBOSE_DEBUG__) |
613 else |
631 else |