equal
deleted
inserted
replaced
54 iUpdateAllFeedTask = CUpdateAllFeedsTask::NewL( iFeedsServer, iFolderListId , *this ); |
54 iUpdateAllFeedTask = CUpdateAllFeedsTask::NewL( iFeedsServer, iFolderListId , *this ); |
55 iLazyCaller = CIdle::NewL(CActive::EPriorityIdle ); |
55 iLazyCaller = CIdle::NewL(CActive::EPriorityIdle ); |
56 iHttpConnection = CServerHttpConnection::NewL( aAutoUpdateAP ); |
56 iHttpConnection = CServerHttpConnection::NewL( aAutoUpdateAP ); |
57 iRoamingInfo = CRoamingInfo::NewL(this); |
57 iRoamingInfo = CRoamingInfo::NewL(this); |
58 iAutoUpdateAp = aAutoUpdateAP; |
58 iAutoUpdateAp = aAutoUpdateAP; |
|
59 iLastAutoUpdate.HomeTime(); |
59 } |
60 } |
60 |
61 |
61 // ----------------------------------------------------------------------------- |
62 // ----------------------------------------------------------------------------- |
62 // CUpdateManager::CUpdateManager |
63 // CUpdateManager::CUpdateManager |
63 // |
64 // |
119 // |
120 // |
120 // Handles an active object's timer event. |
121 // Handles an active object's timer event. |
121 // ----------------------------------------------------------------------------- |
122 // ----------------------------------------------------------------------------- |
122 void CUpdateManager::RunL() |
123 void CUpdateManager::RunL() |
123 { |
124 { |
|
125 TTime currentTime; |
|
126 currentTime.HomeTime(); |
|
127 TTimeIntervalMinutes diff; |
|
128 currentTime.MinutesFrom(iLastAutoUpdate,diff); |
|
129 |
|
130 if (diff.Int() < 0) |
|
131 { |
|
132 for(TInt i =0 ; i < iQueueArray.Count(); i++) |
|
133 { |
|
134 iQueueArray[i]->ResetTimers(); |
|
135 } |
|
136 } |
|
137 iLastAutoUpdate.HomeTime(); |
|
138 |
124 if (iStatus.Int() == KErrNone || iStatus.Int() == KErrAbort) |
139 if (iStatus.Int() == KErrNone || iStatus.Int() == KErrAbort) |
125 { |
140 { |
126 StartTimer(); |
141 StartTimer(); |
127 if(iAutoUpdateWhileRoaming) |
142 if(iAutoUpdateWhileRoaming) |
128 { |
143 { |