equal
deleted
inserted
replaced
62 |
62 |
63 void CHWRMChargingStatusObs::ConstructL() |
63 void CHWRMChargingStatusObs::ConstructL() |
64 { |
64 { |
65 COMPONENT_TRACE1(_L( "HWRM CHWRMChargingStatusObs - CHWRMChargingStatusObs::ConstructL()")); |
65 COMPONENT_TRACE1(_L( "HWRM CHWRMChargingStatusObs - CHWRMChargingStatusObs::ConstructL()")); |
66 |
66 |
67 iChargingPsObserver = CPsPropertyObserver::NewL(KPSUidHWRMPowerState, KHWRMChargingStatus, *this); |
67 iChargingPsObserver = CPsPropertyObserver::NewL(KPSUidHWRMPowerState, KHWRMExtendedChargingStatus, *this); |
68 |
68 |
69 COMPONENT_TRACE1(_L( "HWRM CHWRMChargingStatusObs - CHWRMChargingStatusObs::ConstructL() - return")); |
69 COMPONENT_TRACE1(_L( "HWRM CHWRMChargingStatusObs - CHWRMChargingStatusObs::ConstructL() - return")); |
70 } |
70 } |
71 |
71 |
72 |
72 |
73 void CHWRMChargingStatusObs::PsPropertyChanged(TInt aKey, TInt aValue, TInt aError) |
73 void CHWRMChargingStatusObs::PsPropertyChanged(TInt aKey, TInt aValue, TInt aError) |
74 { |
74 { |
75 if((aKey == KHWRMChargingStatus)&&(iChargingStatusObserver)&& |
75 if((aKey == KHWRMExtendedChargingStatus)&&(iChargingStatusObserver)&& |
76 (iChargingStatus != aValue)) |
76 (iChargingStatus != aValue)) |
77 { |
77 { |
78 iChargingStatus = aValue; |
78 iChargingStatus = aValue; |
79 |
79 |
80 iChargingStatusObserver->ChargingStatusChange(aError, |
80 iChargingStatusObserver->ChargingStatusChange(aError, |