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 User::LeaveIfError(iOtgStateProp.Attach(KUidUsbManCategory, KUsbOtgStateProperty)); |
51 #ifdef __CHARGING_PLUGIN_TEST_CODE__ |
|
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 |
52 iOtgStateProp.Subscribe(iStatus); |
58 iOtgStateProp.Subscribe(iStatus); |
53 SetActive(); |
59 SetActive(); |
54 |
60 |
55 TInt err = iOtgStateProp.Get((TInt&)iOtgState); |
61 TInt err = iOtgStateProp.Get((TInt&)iOtgState); |
56 if (KErrNone != err) |
62 if (KErrNone != err) |