131 This function takes care of resource state change of dynamic dependency resource. |
131 This function takes care of resource state change of dynamic dependency resource. |
132 This propagates the change to all of its dependents. |
132 This propagates the change to all of its dependents. |
133 */ |
133 */ |
134 EXPORT_C TInt DDynamicPowerResourceD::HandleChangePropagation(TPowerRequest aRequest, TPropagation aProp, TUint aOriginatorId, const TDesC8& aOriginatorName) |
134 EXPORT_C TInt DDynamicPowerResourceD::HandleChangePropagation(TPowerRequest aRequest, TPropagation aProp, TUint aOriginatorId, const TDesC8& aOriginatorName) |
135 { |
135 { |
136 static TUint16 clientLevelCount = 0; |
|
137 DDynamicPowerResourceD* pDR = (DDynamicPowerResourceD*)aRequest.Resource(); |
|
138 TInt result = KErrNone; |
136 TInt result = KErrNone; |
139 TInt resState = 0; |
|
140 TPowerRequest depRequest; |
|
141 depRequest.ReqType() = TPowerRequest::EChange; |
|
142 depRequest.ResourceCb() = NULL; |
|
143 depRequest.ReturnCode() = KErrNone; |
|
144 depRequest.RequiresChange() = EFalse; |
|
145 static DPowerResourceController* pRC = TInterface::GetPowerResourceController(); |
137 static DPowerResourceController* pRC = TInterface::GetPowerResourceController(); |
146 DDynamicPowerResourceD* pDepRes = NULL; |
138 result = pRC->HandleResourceChange(aRequest, aProp, aOriginatorId, aOriginatorName, (DStaticPowerResourceD*)this); |
147 TBool traceEnabled = EFalse; |
139 return result; |
148 #ifdef PRM_INSTRUMENTATION_MACRO |
|
149 traceEnabled = ETrue; |
|
150 #endif |
|
151 HANDLE_CHANGE_PROPAGATION(pRC, DDynamicPowerResourceD*, traceEnabled, aOriginatorId, aOriginatorName) |
|
152 } |
140 } |
|
141 |