diff -r f727727520eb -r aa5a574040a4 locationmanager/locationtrail/src/locationremappingao.cpp --- a/locationmanager/locationtrail/src/locationremappingao.cpp Wed Jun 23 18:41:19 2010 +0300 +++ b/locationmanager/locationtrail/src/locationremappingao.cpp Tue Jul 06 14:44:37 2010 +0300 @@ -24,6 +24,11 @@ using namespace MdeConstants; + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::NewL() +// -------------------------------------------------------------------------- +// CLocationRemappingAO* CLocationRemappingAO::NewL() { LOG( "CLocationRemappingAO::NewL" ); // DEBUG INFO @@ -35,6 +40,10 @@ return self; } +// -------------------------------------------------------------------------- +// CLocationRemappingAO::ConstructL() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::ConstructL() { LOG( "CLocationRemappingAO::ConstructL" ); // DEBUG INFO @@ -49,6 +58,10 @@ } } +// -------------------------------------------------------------------------- +// CLocationRemappingAO::~CLocationRemappingAO() +// -------------------------------------------------------------------------- +// CLocationRemappingAO::~CLocationRemappingAO() { LOG( "CLocationRemappingAO::~CLocationRemappingAO" ); // DEBUG INFO @@ -59,6 +72,10 @@ iObjects.ResetAndDestroy(); } +// -------------------------------------------------------------------------- +// CLocationRemappingAO::CLocationRemappingAO() +// -------------------------------------------------------------------------- +// CLocationRemappingAO::CLocationRemappingAO() : CActive( CActive::EPriorityStandard ), iState ( EIdle ), iContinue( EFalse ), @@ -71,7 +88,10 @@ // No implementation required } - +// -------------------------------------------------------------------------- +// CLocationRemappingAO::InitialiseL() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::InitialiseL(CMdESession* aMdEClient) { LOG( "CLocationRemappingAO::Initialise start" ); // DEBUG INFO @@ -97,21 +117,41 @@ LOG( "CLocationRemappingAO::Initialise end" ); } + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::Append() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::Append( TRemapItem aItem ) { iRemapItems.Append( aItem ); } + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::ResetQueue() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::ResetQueue() { iRemapItems.Reset(); } + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::ItemsInQueue() +// -------------------------------------------------------------------------- +// TBool CLocationRemappingAO::ItemsInQueue() { return iRemapItems.Count() > 0; } + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::CheckQueue() +// -------------------------------------------------------------------------- +// TBool CLocationRemappingAO::CheckQueue() { LOG( "CLocationRemappingAO::CheckQueue - start" ); @@ -165,13 +205,21 @@ return create; } - +// -------------------------------------------------------------------------- +// CLocationRemappingAO::StopRemapping() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::StopRemapping() { LOG( "CLocationRemappingAO::StopRemapping" ); // DEBUG INFO NextState(EIdle); } + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::StartRemappingObjects() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::StartRemappingObjects( const TLocationData& aLocationData ) { iLocationData = aLocationData; @@ -185,6 +233,11 @@ NextState( ERemapObjects ); } + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::NextState() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::NextState(TMappingState aState) { LOG1( "CLocationRemappingAO::NextState - state: %d", aState ); // DEBUG INFO @@ -198,6 +251,11 @@ } } + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::DoCancel() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::DoCancel() { LOG( "CLocationRemappingAO::DoCancel" ); // DEBUG INFO @@ -205,6 +263,11 @@ NextState(EIdle); } + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::RunError() +// -------------------------------------------------------------------------- +// TInt CLocationRemappingAO::RunError( TInt aError ) { if (aError != KErrNone) @@ -216,6 +279,11 @@ return KErrNone; } + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::RunL() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::RunL() { LOG1( "CCameraTrailMonitorAO::RunL iStatus: %d", iStatus.Int() ); // DEBUG INFO @@ -252,7 +320,10 @@ } } - +// -------------------------------------------------------------------------- +// CLocationRemappingAO::RemapObjectsL() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::RemapObjectsL() { LOG( "CLocationRemappingAO::RemapObjects - start" ); // DEBUG INFO @@ -331,6 +402,11 @@ LOG( "CLocationRemappingAO::RemapObjects - end" ); } + +// -------------------------------------------------------------------------- +// CLocationRemappingAO::CommitObjectsL() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::CommitObjectsL() { LOG( "CLocationRemappingAO::CommitObjects" ); // DEBUG INFO @@ -360,7 +436,10 @@ LOG( "CLocationRemappingAO::ReadTimeFromCenRepL(), end" ); } - +// -------------------------------------------------------------------------- +// CLocationRemappingAO::UpdateRelationsL() +// -------------------------------------------------------------------------- +// void CLocationRemappingAO::UpdateRelationsL( TItemId aLocationId ) { LOG("CLocationRemappingAO::UpdateRelationsL - start"); @@ -396,6 +475,30 @@ LOG("CLocationRemappingAO::UpdateRelationsL - end"); } +#ifdef LOC_REVERSEGEOCODE +// -------------------------------------------------------------------------- +// CLocationRemapping::AttachGeoTagsL +// -------------------------------------------------------------------------- +// +void CLocationRemappingAO::AttachGeoTagsL( CTagCreator *aTagCreator, + const TItemId aCountryTagId, const TItemId aCityTagId ) + { + LOG("CLocationRemapping::AttachGeoTagsL - start"); + + TInt count = iObjectIds.Count() - 1; + for( TInt i = count; i >= 0; i-- ) + { + aTagCreator->AttachTagsL( iObjectIds[i], aCountryTagId, aCityTagId ); + } + + iObjectIds.Reset(); + + LOG("CLocationRemapping::AttachGeoTagsL - end"); + } + +#endif //LOC_REVERSEGEOCODE + + // -------------------------------------------------------------------------- // TRemapItem constructor // -------------------------------------------------------------------------- @@ -409,3 +512,4 @@ } +// End of file