locationrequestmgmt/locationserver/src/EPos_CPosServer.cpp
changeset 60 9a7e3d5f461a
parent 51 95c570bf4a05
equal deleted inserted replaced
51:95c570bf4a05 60:9a7e3d5f461a
    26 #include <lbsipc.h>
    26 #include <lbsipc.h>
    27 #include "lbslocservermessageenums.h"
    27 #include "lbslocservermessageenums.h"
    28 #include "EPos_CPosResourceReader.h"
    28 #include "EPos_CPosResourceReader.h"
    29 #include <eposserver.rsg>
    29 #include <eposserver.rsg>
    30 #include <lbs/epos_mposmodulesobserver.h>
    30 #include <lbs/epos_mposmodulesobserver.h>
       
    31 #include <centralrepository.h>
    31 #ifdef SYMBIAN_FEATURE_MANAGER
    32 #ifdef SYMBIAN_FEATURE_MANAGER
    32 	#include <featdiscovery.h>
    33 	#include <featdiscovery.h>
    33 	#include <featureuids.h>
    34 	#include <featureuids.h>
    34 #endif
    35 #endif
    35 #include "epos_cposmodulessettings.h"
    36 #include "epos_cposmodulessettings.h"
    37 #include "EPos_ServerPanic.h"
    38 #include "EPos_ServerPanic.h"
    38 #include "EPos_CPosSession.h"
    39 #include "EPos_CPosSession.h"
    39 #include "EPos_CPosServerDelayedShutdown.h"
    40 #include "EPos_CPosServerDelayedShutdown.h"
    40 #include "EPos_CPosModulesStatus.h"
    41 #include "EPos_CPosModulesStatus.h"
    41 #include "EPos_CPosLocMonitorReqHandlerHub.h"
    42 #include "EPos_CPosLocMonitorReqHandlerHub.h"
       
    43 #include "lbsrootcenrepdefs.h"
    42 
    44 
    43 #include "EPos_Global.h"
    45 #include "EPos_Global.h"
    44 #include "lbspositioningstatusprops.h"
    46 #include "lbspositioningstatusprops.h"
    45 
    47 
    46 // CONSTANTS
    48 // CONSTANTS
   214     DEBUG_TRACE("Setting Location Settings observer...", __LINE__)
   216     DEBUG_TRACE("Setting Location Settings observer...", __LINE__)
   215     iModuleSettings->AddListenerL(*this);
   217     iModuleSettings->AddListenerL(*this);
   216 
   218 
   217     // Define the MO Positioning Status property
   219     // Define the MO Positioning Status property
   218 	LbsPositioningStatusProps::InitializeMoPropertyL();	
   220 	LbsPositioningStatusProps::InitializeMoPropertyL();	
   219    
   221 
       
   222 	// Reset the key to zero
       
   223     TInt posStatusCategory;
       
   224     
       
   225     CRepository* rep = CRepository::NewLC(KLbsCenRepUid);
       
   226     TInt err = rep->Get(KMoPositioningStatusAPIKey, posStatusCategory);
       
   227     if( err == KErrNone )
       
   228         {
       
   229         err = RProperty::Set(TUid::Uid(posStatusCategory), KLbsMoPositioningStatusKey,0);
       
   230         }
       
   231     CleanupStack::PopAndDestroy(rep);
       
   232 
   220     DEBUG_TRACE("Starting server active object...", __LINE__)
   233     DEBUG_TRACE("Starting server active object...", __LINE__)
   221     StartL(KPositionServerName);
   234     StartL(KPositionServerName);
   222     }
   235     }
   223 
   236 
   224 /**
   237 /**