--- a/locationrequestmgmt/locationserver/src/EPos_CPositionRequest.cpp Wed Jun 23 19:48:34 2010 +0300
+++ b/locationrequestmgmt/locationserver/src/EPos_CPositionRequest.cpp Wed Aug 18 11:11:46 2010 +0300
@@ -21,7 +21,6 @@
#include <lbs/epos_cpositioner.h>
#include <lbs/epos_cposmodules.h>
#include <lbs/epos_mposmodulesobserver.h>
-#include <centralrepository.h>
#include "lbsdevloggermacros.h"
#include "EPos_ServerPanic.h"
#include "EPos_Global.h"
@@ -35,9 +34,6 @@
#ifdef OST_TRACE_COMPILER_IN_USE
#include "EPos_CPositionRequestTraces.h"
#endif
-#include "lbsrootcenrepdefs.h"
-#include "lbspositioningstatusprops.h"
-
@@ -105,14 +101,6 @@
User::Leave(KErrNotFound);
}
- // Get the CategoryUid from the cenrep file owned by LbsRoot.
- CRepository* rep = CRepository::NewLC(KLbsCenRepUid);
- TInt posStatusCategory;
- TInt err = rep->Get(KMoPositioningStatusAPIKey, posStatusCategory);
- User::LeaveIfError(err);
- CleanupStack::PopAndDestroy(rep);
- iPosStatusCategory = TUid::Uid(posStatusCategory);
-
LoadPositionerL();
}
@@ -178,21 +166,6 @@
__ASSERT_DEBUG(iPositioner, DebugPanic(EPosServerPanicPositionerNotInitialized));
- //Increment the StatusKeyValue for Positioning Indicator clients
- if(iTrackingState == EPosNoTracking || iTrackingState == EPosFirstTrackingRequest)
- {
- TInt count, err;
- err = RProperty::Get(iPosStatusCategory, KLbsMoPositioningStatusKey, count);
- if(err == KErrNone)
- {
- err = RProperty::Set(iPosStatusCategory, KLbsMoPositioningStatusKey, count+1);
- }
- if(err != KErrNone)
- {
- DEBUG_TRACE("CPositionRequest::MakeRequestL() - Error in setting or getting Positioning Status", __LINE__)
- }
- }
-
iMessage = aMessage; // Store parameter here in case of leave.
// Clear previous position data
@@ -531,25 +504,6 @@
LBS_RDEBUG_ARGINT("LBS","Client", "RunL", aReason);
iMessage.Complete(aReason);
}
- //Decrement the StatusKeyValue for Positioning Indicator clients
- if(iTrackingState == EPosNoTracking)
- {
- TInt count, err;
- err = RProperty::Get(iPosStatusCategory, KLbsMoPositioningStatusKey, count);
- if(err == KErrNone && count > 0)
- {
- err = RProperty::Set(iPosStatusCategory, KLbsMoPositioningStatusKey, count-1);
- }
-
- if(err != KErrNone)
- {
- DEBUG_TRACE("CPositionRequest::StopTracking() - error in getting or setting Positioning Status", __LINE__)
- }
- else if (count <=0)
- {
- DEBUG_TRACE("CPositionRequest::StopTracking() - Incorrect Positioning Status tracking count", __LINE__)
- }
- }
}
void CPositionRequest::CompleteRequest(TInt aReason)
@@ -749,23 +703,6 @@
iTrackingState = EPosNoTracking;
StopPsyTracking();
-
- //Set PositionIndicator Off
- TInt count, err;
- err = RProperty::Get(iPosStatusCategory, KLbsMoPositioningStatusKey, count);
- if(err == KErrNone && count > 0)
- {
- err = RProperty::Set(iPosStatusCategory, KLbsMoPositioningStatusKey, count-1);
- }
-
- if(err != KErrNone)
- {
- DEBUG_TRACE("CPositionRequest::StopTracking() - error in getting or setting Positioning Status", __LINE__)
- }
- else if (count <=0)
- {
- DEBUG_TRACE("CPositionRequest::StopTracking() - Incorrect Positioning Status tracking count", __LINE__)
- }
}
void CPositionRequest::StopPsyTracking()