equal
deleted
inserted
replaced
46 CActiveScheduler::Add(this); |
46 CActiveScheduler::Add(this); |
47 } |
47 } |
48 |
48 |
49 void COtgStateWatcher::ConstructL() |
49 void COtgStateWatcher::ConstructL() |
50 { |
50 { |
51 #ifdef __CHARGING_PLUGIN_TEST_CODE__ |
51 User::LeaveIfError(iOtgStateProp.Attach(KUidUsbManCategory, KUsbOtgStateProperty)); |
52 const TInt8 KPropertyOffsetForChargingTest = 100; |
|
53 User::LeaveIfError(iOtgStateProp.Attach(KUidUsbManCategory, KUsbOtgStateProperty + KPropertyOffsetForChargingTest)); |
|
54 #else |
|
55 User::LeaveIfError(iOtgStateProp.Attach(KUidUsbManCategory, KUsbOtgStateProperty)); |
|
56 #endif |
|
57 |
|
58 iOtgStateProp.Subscribe(iStatus); |
52 iOtgStateProp.Subscribe(iStatus); |
59 SetActive(); |
53 SetActive(); |
60 |
54 |
61 TInt err = iOtgStateProp.Get((TInt&)iOtgState); |
55 TInt err = iOtgStateProp.Get((TInt&)iOtgState); |
62 if (KErrNone != err) |
56 if (KErrNone != err) |