106 // ----------------------------------------------------------------------------- |
106 // ----------------------------------------------------------------------------- |
107 // CProfileTiming::SetTimedProfileL |
107 // CProfileTiming::SetTimedProfileL |
108 // (other items were commented in a header). |
108 // (other items were commented in a header). |
109 // ----------------------------------------------------------------------------- |
109 // ----------------------------------------------------------------------------- |
110 // |
110 // |
111 void CProfileTiming::SetTimedProfileL( TInt aPreviousId, TTime aTime ) |
111 void CProfileTiming::SetTimedProfileL( TInt aPreviousId, TTime aTime, const TDesC& aPreviousName ) |
112 { |
112 { |
113 PRODEBUG1( "CProfileTiming:SetTimedProfile( %d )", aPreviousId ); |
113 PRODEBUG1( "CProfileTiming:SetTimedProfile( %d )", aPreviousId ); |
114 if( !iFeatures.IsFeatureSupported( KProEngFeatureIdTimedProfiles ) ) |
114 if( !iFeatures.IsFeatureSupported( KProEngFeatureIdTimedProfiles ) ) |
115 { |
115 { |
116 return; |
116 return; |
156 else |
156 else |
157 { |
157 { |
158 iTaskId = taskInfo.iTaskId; |
158 iTaskId = taskInfo.iTaskId; |
159 PRODEBUG( "CProfileTiming:SetTimedProfile before SaveSchedulingData" ); |
159 PRODEBUG( "CProfileTiming:SetTimedProfile before SaveSchedulingData" ); |
160 SaveSchedulingData( aPreviousId, iSchedulerItemRef.iHandle, |
160 SaveSchedulingData( aPreviousId, iSchedulerItemRef.iHandle, |
161 iTaskId ); |
161 iTaskId, aPreviousName ); |
162 PRODEBUG( "CProfileTiming:SetTimedProfile after SaveSchedulingData" ); |
162 PRODEBUG( "CProfileTiming:SetTimedProfile after SaveSchedulingData" ); |
163 } |
163 } |
164 } |
164 } |
165 |
165 |
166 PRODEBUG1( "CProfileTiming:SetTimedProfile before return:%d", error ); |
166 PRODEBUG1( "CProfileTiming:SetTimedProfile before return:%d", error ); |
254 // The errors are ignored inside this method, because this class is used only |
254 // The errors are ignored inside this method, because this class is used only |
255 // inside CentralRepository transactions. |
255 // inside CentralRepository transactions. |
256 // (other items were commented in a header). |
256 // (other items were commented in a header). |
257 // ----------------------------------------------------------------------------- |
257 // ----------------------------------------------------------------------------- |
258 // |
258 // |
259 void CProfileTiming::SaveSchedulingData( TInt aPreviousId, TInt aHandleId, |
259 void CProfileTiming::SaveSchedulingData( TInt aPreviousId, |
260 TInt aTaskId ) |
260 TInt aHandleId, |
|
261 TInt aTaskId, |
|
262 const TDesC& aPreviousName ) |
261 { |
263 { |
262 iRepository.Set( KProEngSchedulerHandleId, aHandleId ); |
264 iRepository.Set( KProEngSchedulerHandleId, aHandleId ); |
|
265 iRepository.Set( KProEngPreviousActiveName, aPreviousName); |
263 iRepository.Set( KProEngPreviousActiveId, aPreviousId ); |
266 iRepository.Set( KProEngPreviousActiveId, aPreviousId ); |
264 iRepository.Set( KProEngSchedulerTaskId, aTaskId ); |
267 iRepository.Set( KProEngSchedulerTaskId, aTaskId ); |
265 } |
268 } |
266 |
269 |
267 // ----------------------------------------------------------------------------- |
270 // ----------------------------------------------------------------------------- |