photosgallery/slideshow/view/src/shwslideshowview.cpp
changeset 2 7d9067c6fcb1
parent 0 4e91876724a2
child 9 6b87b143d312
equal deleted inserted replaced
1:9ba538e329bd 2:7d9067c6fcb1
   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 );