emailservices/emailstore/message_store/server/src/MessageStoreServer.cpp
changeset 40 2c62ef3caffd
parent 20 ecc8def7944a
child 51 d845db10c0d4
equal deleted inserted replaced
39:b0b89ca206b5 40:2c62ef3caffd
    36 #include "ShutdownServer.h"
    36 #include "ShutdownServer.h"
    37 //<cmail>
    37 //<cmail>
    38 #include "ImsPointsecMonitor.h"
    38 #include "ImsPointsecMonitor.h"
    39 #include "ImsPointsecObserver.h"
    39 #include "ImsPointsecObserver.h"
    40 #include "emailstorepskeys.h" // Support for on-the-fly upgrade
    40 #include "emailstorepskeys.h" // Support for on-the-fly upgrade
    41 #include "emailshutdownconst.h"
    41 //<qmail> removing #include "emailshutdownconst.h"
    42 //</cmail>
    42 //</cmail>
    43 
    43 
    44 // =========
    44 // =========
    45 // CONSTANTS
    45 // CONSTANTS
    46 // =========
    46 // =========
   316 //    iShutdown->Start();
   316 //    iShutdown->Start();
   317 
   317 
   318     // Support for on-the-fly upgrade
   318     // Support for on-the-fly upgrade
   319     // Watch for KProperty_EmailStore_Upgrade property. When set to our UID3/SECUREID,
   319     // Watch for KProperty_EmailStore_Upgrade property. When set to our UID3/SECUREID,
   320     // then, this server should stop.
   320     // then, this server should stop.
   321     RProcess process;
   321 
   322 	CleanupClosePushL( process ); //+process
   322     // <qmail> removed code to observe shutdown commands
   323     TSecurityPolicy readPolicy( ECapabilityReadDeviceData );
   323 
   324     TSecurityPolicy writePolicy( ECapabilityWriteDeviceData );
       
   325     iUpgradePropertyWatcher = CPSIntPropertyWatcher::NewL( this );
       
   326     iUpgradePropertyWatcher->StartL( KEmailShutdownPsCategory, 
       
   327                                      EEmailPsKeyShutdownMsgStore,
       
   328                                      KEmailShutterPsValue,
       
   329                                      /*ETrue*/EFalse,
       
   330                                      readPolicy,
       
   331                                      writePolicy ); 
       
   332     CleanupStack::PopAndDestroy(); //-process
       
   333         
       
   334     __LOG_EXIT
   324     __LOG_EXIT
   335     } // end ConstructL
   325     } // end ConstructL
   336 
   326 
   337 // ==========================================================================
   327 // ==========================================================================
   338 // FUNCTION: Destructor
   328 // FUNCTION: Destructor