diff -r 71da52165949 -r ce1c7ad1f18b photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandleraiwshowonmaphardkey.cpp --- a/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandleraiwshowonmaphardkey.cpp Fri Mar 12 15:42:44 2010 +0200 +++ b/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandleraiwshowonmaphardkey.cpp Mon Mar 15 12:40:30 2010 +0200 @@ -175,99 +175,5 @@ } -// The below code is commented out as this implementation is for Future commandhandler -// To check map service providers -// To navigate to the location - -/* -// ----------------------------------------------------------------------------- -// CGlxCommandHandlerAiwShowMapHardKey::NavigateToPlaceL -// It will navigate to location -// ----------------------------------------------------------------------------- -void CGlxCommandHandlerAiwShowMapHardKey::NavigateToPlaceL( const TCoordinate& aCoordinate ) - { - CPosLandmark* lmk = CPosLandmark::NewLC(); - TLocality locality; - HBufC8* lmBuf; - - //set location - locality.SetCoordinate( aCoordinate.Latitude(), aCoordinate.Longitude(), aCoordinate.Altitude() ); - lmk->SetPositionL(locality); - - //set in parameters - iInList->Reset(); - lmBuf =PosLandmarkSerialization::PackL( *lmk ); - CleanupStack::PushL( lmBuf ); - TAiwGenericParam param( EGenericParamLandmark, TAiwVariant( *lmBuf ) ); - iInList->AppendL( param ); - TMnAiwCommonOptionsParam options; - options.iRunChained = EFalse; - TPckg optionsPack( options ); - TAiwGenericParam optParam( EGenericParamMnCommonOptions, TAiwVariant( optionsPack ) ); - iInList->AppendL( optParam ); - - //navigate to location - // iAiwServiceHandler->AttachL( R_EVTMGMTUI_AIW_INTEREST_NAVIGATETO ); - iAiwServiceHandler->ExecuteServiceCmdL( KAiwCmdMnNavigateTo, *iInList, *iOutList, 0, this ); - - CleanupStack::PopAndDestroy( 2 ); //lmbuf, lmk - } - - -// ----------------------------------------------------------------------------- -// CGlxCommandHandlerAiwShowMapHardKey::MapServiceProvidersL -// It will return total map service providers. -// @ret total number of map service providers -// ----------------------------------------------------------------------------- -// -TInt CGlxCommandHandlerAiwShowMapHardKey::MapServiceProvidersL() - { -#if 0 - RPointerArray providers; - // get all providers - MnProviderFinder::FindProvidersL( providers ); - TInt total = providers.Count(); - providers.ResetAndDestroy(); - providers.Close(); - // Debug(_L("Total map service providers = %d"), total); - return total; -#endif - return 0; - } -*/ -// ----------------------------------------------------------------------------- -// CGlxCommandHandlerAiwShowMapHardKey::HandleNotifyL -// Derived from MAiwNotifyCallback -// ----------------------------------------------------------------------------- -//TInt CGlxCommandHandlerAiwShowMapHardKey::HandleNotifyL( TInt aCmdId, -// TInt aEventId, -// CAiwGenericParamList& aEventParamList, -// const CAiwGenericParamList& aInParamList ) -// { -// if ( iOutList->Count() ) //if location is selected on map -// { -// const TAiwGenericParam& param = ( *iOutList )[0]; -// if ( EGenericParamLandmark == param.SemanticId() ) -// { -// TPtrC8 landmarkData( param.Value().AsData() ); -// CPosLandmark* lm = PosLandmarkSerialization::UnpackL( landmarkData ); -// CleanupStack::PushL( lm ); -// -// SetPlaceFromLandmarkL( *lm ); -// CleanupStack::PopAndDestroy( lm ); -// iOutList->Reset(); -// iObserver->HandleMapAndNavigationResponseL( KErrNone, *iPlace, iTriggerLocation ); -// } -// else -// { -// iOutList->Reset(); -// iObserver->HandleMapAndNavigationResponseL( KErrCancel, *iPlace, iTriggerLocation ); -// } -// } -// else //if map application is cancelled -// iObserver->HandleMapAndNavigationResponseL( KErrCancel, *iPlace, iTriggerLocation ); -// return KErrNone; -// } - // End of file