335 |
335 |
336 // construct the gesture control group |
336 // construct the gesture control group |
337 iShwGestureControl = CShwGestureControl::NewL(*iEnv,*iDisplay,*this); |
337 iShwGestureControl = CShwGestureControl::NewL(*iEnv,*iDisplay,*this); |
338 iGestureControlGroup->AppendL( iShwGestureControl ); |
338 iGestureControlGroup->AppendL( iShwGestureControl ); |
339 |
339 |
340 iGestureControl = GestureHelper::CGestureControl::NewLC( |
340 GestureHelper::CGestureControl* gestureControl = GestureHelper::CGestureControl::NewLC( |
341 *iShwGestureControl, *iEnv, *iDisplay, KGestureControlGroupId ); |
341 *iShwGestureControl, *iEnv, *iDisplay, KGestureControlGroupId ); |
|
342 iGestureControl = gestureControl; |
|
343 CleanupStack::Pop( gestureControl ); // doc says the following takes ownership, but reality is different! |
342 iGestureControlGroup->AppendL( iGestureControl ); |
344 iGestureControlGroup->AppendL( iGestureControl ); |
343 |
345 |
344 // doc says the following takes ownership, but reality is different! |
|
345 |
|
346 CleanupStack::Pop( iGestureControl ); |
|
347 // Need a mechanism to distinguish when we receive the MusicVolume |
346 // Need a mechanism to distinguish when we receive the MusicVolume |
348 // callback for the first time |
347 // callback for the first time |
349 iCurrentVolume = -1; |
348 iCurrentVolume = -1; |
350 iPopulateListCallBack = new( ELeave ) |
349 iPopulateListCallBack = new( ELeave ) |
351 CAsyncCallBack( CActive::EPriorityStandard ); |
350 CAsyncCallBack( CActive::EPriorityStandard ); |