locationrequestmgmt/locationserver/src/EPos_CPosServer.cpp
changeset 27 aadfb18aaac1
parent 0 9cfd9a3ee49c
child 49 5f20f71a57a3
equal deleted inserted replaced
23:2965a06983dc 27:aadfb18aaac1
    39 #include "EPos_CPosServerDelayedShutdown.h"
    39 #include "EPos_CPosServerDelayedShutdown.h"
    40 #include "EPos_CPosModulesStatus.h"
    40 #include "EPos_CPosModulesStatus.h"
    41 #include "EPos_CPosLocMonitorReqHandlerHub.h"
    41 #include "EPos_CPosLocMonitorReqHandlerHub.h"
    42 
    42 
    43 #include "EPos_Global.h"
    43 #include "EPos_Global.h"
       
    44 #include "lbspositioningstatusprops.h"
    44 
    45 
    45 // CONSTANTS
    46 // CONSTANTS
    46 _LIT(KPosResourceFile, "\\private\\101F97B2\\eposserver.rsc");
    47 _LIT(KPosResourceFile, "\\private\\101F97B2\\eposserver.rsc");
    47 
    48 
    48 #ifdef _DEBUG
    49 #ifdef _DEBUG
   178     iModuleSettings = CPosModuleSettings::NewL();
   179     iModuleSettings = CPosModuleSettings::NewL();
   179     iModulesStatus = CPosModulesStatus::NewL(iModuleSettings->PosModules());
   180     iModulesStatus = CPosModulesStatus::NewL(iModuleSettings->PosModules());
   180     DEBUG_TRACE("Setting Location Settings observer...", __LINE__)
   181     DEBUG_TRACE("Setting Location Settings observer...", __LINE__)
   181     iModuleSettings->AddListenerL(*this);
   182     iModuleSettings->AddListenerL(*this);
   182 
   183 
       
   184     // Define the MO Positioning Status property
       
   185 	LbsPositioningStatusProps::InitializeMoPropertyL();	
       
   186    
   183     DEBUG_TRACE("Starting server active object...", __LINE__)
   187     DEBUG_TRACE("Starting server active object...", __LINE__)
   184     StartL(KPositionServerName);
   188     StartL(KPositionServerName);
   185     
       
   186    
       
   187     }
   189     }
   188 
   190 
   189 /**
   191 /**
   190  * Two-phased constructor.
   192  * Two-phased constructor.
   191  */
   193  */
   201 /**
   203 /**
   202  * Destructor.
   204  * Destructor.
   203  */
   205  */
   204 CPosServer::~CPosServer()
   206 CPosServer::~CPosServer()
   205     {
   207     {
   206     
       
   207     delete iLocMonitorReqHandlerHub;
   208     delete iLocMonitorReqHandlerHub;
   208     
   209     
   209     delete iShutdown;
   210     delete iShutdown;
   210     delete iModulesStatus;
   211     delete iModulesStatus;
   211     delete iModuleSettings;
   212     delete iModuleSettings;
   212     delete iBackupListener;
   213     delete iBackupListener;
   213    
   214    
   214 
   215     
   215     // This is needed because CPositioner might have used ECom (PSYs)
   216     // This is needed because CPositioner might have used ECom (PSYs)
   216     REComSession::FinalClose();
   217     REComSession::FinalClose();
   217     }
   218     }
   218 
   219 
   219 /**
   220 /**