emailservices/emailservermonitor/inc/emailshutdownconst.h
changeset 27 9ba4404ef423
parent 23 2dc6caa42ec3
child 30 759dc5235cdb
equal deleted inserted replaced
23:2dc6caa42ec3 27:9ba4404ef423
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Constant definitions for Email shutdown
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef EMAILSHUTDOWNCONST_H
       
    20 #define EMAILSHUTDOWNCONST_H
       
    21 
       
    22 #include <e32cmn.h>                 // TUid
       
    23 #include "emailshutdownconst.hrh"   // KEmailShutdownUidAsTInt
       
    24 
       
    25 
       
    26 // Publish & Subscribe category for Email shutdown events
       
    27 const TUid KEmailShutdownPsCategory = { KEmailShutdownUidAsTInt };
       
    28 
       
    29 // Size of one item in platform API UID list (in Publish & Subscribe
       
    30 // key EEmailPsKeyPlatformApiAppsToClose)
       
    31 const TInt KEmailPlatformApiUidItemSize = sizeof( TInt32 );
       
    32 
       
    33 // Publish & Subscribe keys used in shutdown process
       
    34 enum TEmailShutdownPsKeys
       
    35     {
       
    36     // Publish & Subscribe key used in communication between Shutter
       
    37     // application and installation initiators
       
    38     EEmailPsKeyInstallationStatus = 1,
       
    39     
       
    40     // Publish & Subscribe keys for Email shutdown events
       
    41     EEmailPsKeyShutdownClients,
       
    42     EEmailPsKeyShutdownPlugins,
       
    43     EEmailPsKeyShutdownMsgStore,
       
    44     
       
    45     // Publish & Subscribe keys to register 3rd party applications to be closed
       
    46     EEmailPsKeyPlatformApiAppsToCloseLength,
       
    47     EEmailPsKeyPlatformApiAppsToClose
       
    48     };
       
    49 
       
    50 // Publish & Subscribe values to be used with key EEmailPsKeyInstallationStatus
       
    51 enum TEmailShutdownPsInstallationValues
       
    52     {
       
    53     // Value to be set by installation initiators when installation is starting
       
    54     EEmailPsValueInstallationStarting = 1,
       
    55     // Value to be set by Shutter when all services are shutdown
       
    56     EEmailPsValueInstallationOkToStart,
       
    57     // Value to be set by installation initiators when installation is started
       
    58     // after EEmailPsValueInstallationOkToStart event received
       
    59     EEmailPsValueInstallationStarted,
       
    60     // Value to be set by Starter when installation has finished
       
    61     EEmailPsValueInstallationFinished
       
    62     };
       
    63 
       
    64 // Executable name of the process that implements the shutdown functionality
       
    65 _LIT( KEmailShutdownHandlerExe, "emailservermonitor.exe" );
       
    66 
       
    67 // Command line arguments that can be given to shutdown handler process when
       
    68 // starting it
       
    69 
       
    70 // KEmailShutdownHandlerArgOnlyShutter should be used when starting the process
       
    71 // just before starting installation (if it wasn't already running)
       
    72 _LIT( KEmailShutdownHandlerArgOnlyShutter, "OnlyShutter" );
       
    73 
       
    74 // KEmailShutdownHandlerArgRestart should be given when restarting
       
    75 // the process after installation
       
    76 _LIT( KEmailShutdownHandlerArgRestart, "RestartAfterInstallation" );
       
    77 
       
    78 
       
    79 #endif // EMAILSHUTDOWNCONST_H