emailservices/emailservermonitor/src/main.cpp
branchRCL_3
changeset 10 f5907b1a1053
parent 0 8466d47a6819
equal deleted inserted replaced
8:e1b6206813b4 10:f5907b1a1053
    74     
    74     
    75     TEmailServerMonitorMode mode = ParseCommandLineArgumentsL();
    75     TEmailServerMonitorMode mode = ParseCommandLineArgumentsL();
    76 
    76 
    77     // Start email shutter functionality
    77     // Start email shutter functionality
    78     CEmailShutter* shutter = CEmailShutter::NewLC();
    78     CEmailShutter* shutter = CEmailShutter::NewLC();
    79     if( mode == EEsmModeRestartAfterInstallation )
       
    80         {
       
    81         shutter->SetPsKeyInstallationFinished();
       
    82         shutter->RestartServicesAfterInstallation();
       
    83         }
       
    84     shutter->StartObservingShutdownEvent();
    79     shutter->StartObservingShutdownEvent();
    85 
    80 
    86     CEmailServerMonitor* monitor = NULL;
    81     CEmailServerMonitor* monitor = NULL;
    87     if( mode != EEsmModeOnlyShutter )
    82     if( mode != EEsmModeOnlyShutter )
    88         {
    83         {
    89         // Start email server observing functionality
    84         // Start email server observing functionality
    90         monitor = CEmailServerMonitor::NewLC();
    85         monitor = CEmailServerMonitor::NewLC();
       
    86         monitor->SetShutter( shutter );
       
    87         if( mode == EEsmModeRestartAfterInstallation )
       
    88             {
       
    89             monitor->SetRestartExternalServicesFlag();
       
    90             }
    91         monitor->Start();
    91         monitor->Start();
    92         shutter->SetMonitor( monitor );
    92         shutter->SetMonitor( monitor );
    93         }
    93         }
    94 
    94 
    95     // Complete client's Rendezvous
    95     // Complete client's Rendezvous