photosgallery/controllers/fetcher/src/glxfetcherdialog.cpp
branchRCL_3
changeset 75 01504893d9cb
parent 60 5b3385a43d68
equal deleted inserted replaced
68:5b238bc8ffb6 75:01504893d9cb
   140     CGlxResourceUtilities::GetResourceFilenameL(resourceFile);  
   140     CGlxResourceUtilities::GetResourceFilenameL(resourceFile);  
   141     iResourceOffset = CCoeEnv::Static()->AddResourceFileL(resourceFile);
   141     iResourceOffset = CCoeEnv::Static()->AddResourceFileL(resourceFile);
   142     
   142     
   143 	// Get the Hitchcock environment.
   143 	// Get the Hitchcock environment.
   144     iUiUtility = CGlxUiUtility::UtilityL();
   144     iUiUtility = CGlxUiUtility::UtilityL();
       
   145     iEnv = iUiUtility->Env();
   145     iFetchUri = EFalse;
   146     iFetchUri = EFalse;
   146     iMMCNotifier = CGlxMMCNotifier::NewL(*this);
   147     iMMCNotifier = CGlxMMCNotifier::NewL(*this);
   147     }
   148     }
   148     
   149     
   149 //-----------------------------------------------------------------------------
   150 //-----------------------------------------------------------------------------
   205             iFetcherContainer->DoExecuteL( aCommandId );
   206             iFetcherContainer->DoExecuteL( aCommandId );
   206             break;
   207             break;
   207 		    }
   208 		    }
   208 		}
   209 		}
   209 	}
   210 	}
   210 
       
   211 //-----------------------------------------------------------------------------
   211 //-----------------------------------------------------------------------------
   212 // CGlxFetcherDialog::OkToExitL
   212 // CGlxFetcherDialog::OkToExitL
   213 //-----------------------------------------------------------------------------
   213 //-----------------------------------------------------------------------------
   214 TBool CGlxFetcherDialog::OkToExitL(TInt aKeycode)
   214 TBool CGlxFetcherDialog::OkToExitL(TInt aKeycode)
   215 	{
   215 	{
   392     // Create and Display Grid widget 
   392     // Create and Display Grid widget 
   393     iFetcherContainer->CreateAndDisplayGridL();
   393     iFetcherContainer->CreateAndDisplayGridL();
   394     }
   394     }
   395 
   395 
   396 //-----------------------------------------------------------------------------
   396 //-----------------------------------------------------------------------------
       
   397 // CGlxFetcherDialog::DynInitMenuPaneL
       
   398 //-----------------------------------------------------------------------------
       
   399 void CGlxFetcherDialog::DynInitMenuPaneL(
       
   400         TInt /*aResourceId*/, CEikMenuPane* /*aMenuPane*/ )
       
   401     {
       
   402     TRACER("CGlxFetcherDialog::DynInitMenuPaneL");
       
   403     // No Implementation
       
   404     }
       
   405 
       
   406 //-----------------------------------------------------------------------------
   397 // CGlxFetcherDialog::OfferKeyEventL
   407 // CGlxFetcherDialog::OfferKeyEventL
   398 //-----------------------------------------------------------------------------
   408 //-----------------------------------------------------------------------------
   399 TKeyResponse CGlxFetcherDialog::OfferKeyEventL(const TKeyEvent& aKeyEvent,
   409 TKeyResponse CGlxFetcherDialog::OfferKeyEventL(const TKeyEvent& aKeyEvent,
   400         TEventCode aType)
   410         TEventCode aType)
   401     {
   411     {
   402     TRACER("CGlxFetcherDialog::OfferKeyEventL");
   412     TRACER("CGlxFetcherDialog::OfferKeyEventL");
   403     TKeyResponse response = EKeyWasNotConsumed;
   413     TKeyResponse response = EKeyWasNotConsumed;
   404     response = iFetcherContainer->OfferKeyEventL(aKeyEvent,aType);
   414     response = iFetcherContainer->OfferKeyEventL(aKeyEvent,aType);
   405  
   415  
   406     if(response == EKeyWasNotConsumed)
   416     if(response == EKeyWasNotConsumed)
   407         {
       
   408         response = CAknDialog::OfferKeyEventL(aKeyEvent,aType);
   417         response = CAknDialog::OfferKeyEventL(aKeyEvent,aType);
   409         }
       
   410 
   418 
   411     return response;    
   419     return response;    
   412     }
   420     }
   413 
   421 
   414 //-----------------------------------------------------------------------------
   422 //-----------------------------------------------------------------------------
   415 // CGlxFetcherDialog::HandleDoubleTapEventL
   423 // CGlxFetcherDialog::HandlePointerEventL
       
   424 // Handles all pointer events to the screen.
       
   425 // Offers the events to the primary display control (container - widgets)
       
   426 // and also finally calls handlescreenbufferevent and draws the bitmap onto
       
   427 // the screen
       
   428 //-----------------------------------------------------------------------------
       
   429 void CGlxFetcherDialog::HandlePointerEventL(
       
   430     const TPointerEvent& aPointerEvent)
       
   431     {
       
   432     TRACER("CGlxFetcherDialog::HandlePointerEventL");
       
   433     CCoeControl::HandlePointerEventL( aPointerEvent );
       
   434     iEnv->PrimaryDisplay().HandlePointerEventL( aPointerEvent );
       
   435     }
       
   436 
       
   437 //-----------------------------------------------------------------------------
       
   438 // CGlxFetcherDialog::HandleDoubleTapEvent
   416 // Callback from the container for double tap events
   439 // Callback from the container for double tap events
   417 // Offers the event from container to Dialog
   440 // Offers the event from container to Dialog
   418 //-----------------------------------------------------------------------------
   441 //-----------------------------------------------------------------------------
   419 void CGlxFetcherDialog::HandleDoubleTapEventL(TInt aCommandId)
   442 void CGlxFetcherDialog::HandleDoubleTapEventL(TInt aCommandId)
   420     {
   443     {