equal
deleted
inserted
replaced
64 const TInt KPSCategoryUid( 0x200286E3 ); |
64 const TInt KPSCategoryUid( 0x200286E3 ); |
65 const TInt KPSCrashCountKey( 1 ); |
65 const TInt KPSCrashCountKey( 1 ); |
66 const TInt KStabilityInterval( 60000000 ); // 1 minute |
66 const TInt KStabilityInterval( 60000000 ); // 1 minute |
67 const TInt KActivationCompleteInterval( 2000000 ); // 2s |
67 const TInt KActivationCompleteInterval( 2000000 ); // 2s |
68 const TInt KCrashRestoreDefaultThreshold( 3 ); |
68 const TInt KCrashRestoreDefaultThreshold( 3 ); |
69 const TInt KCrashRestoreAllTreshold( 4 ); |
69 const TInt KCrashRestoreRomTreshold( 4 ); |
|
70 const TInt KCrashRestoreViewsTreshold( 5 ); |
70 |
71 |
71 // ============================ LOCAL FUNCTIONS =============================== |
72 // ============================ LOCAL FUNCTIONS =============================== |
72 // ----------------------------------------------------------------------------- |
73 // ----------------------------------------------------------------------------- |
73 // BuildTriggerL |
74 // BuildTriggerL |
74 // Builds a trigger node |
75 // Builds a trigger node |
1789 query->SetPromptL( queryText->Des() ); |
1790 query->SetPromptL( queryText->Des() ); |
1790 CleanupStack::PopAndDestroy( queryText ); |
1791 CleanupStack::PopAndDestroy( queryText ); |
1791 |
1792 |
1792 query->RunLD(); |
1793 query->RunLD(); |
1793 } |
1794 } |
1794 else if( crashCount >= KCrashRestoreAllTreshold ) |
1795 else if( crashCount == KCrashRestoreRomTreshold ) |
1795 { |
1796 { |
1796 iHspsWrapper->RestoreRootL(); |
1797 iHspsWrapper->RestoreRomConfL(); |
1797 |
1798 } |
|
1799 else if( crashCount >= KCrashRestoreViewsTreshold ) |
|
1800 { |
|
1801 iHspsWrapper->RestoreViewsL(); |
|
1802 |
1798 ResetCrashCount(); |
1803 ResetCrashCount(); |
1799 return; |
1804 return; |
1800 } |
1805 } |
1801 |
1806 |
1802 if( crashCount > 0 ) |
1807 if( crashCount > 0 ) |