inc/emailshutdownconst.h
branchGCC_SURGE
changeset 55 cdd802add233
parent 20 ecc8def7944a
parent 54 997a02608b3a
equal deleted inserted replaced
28:011f79704660 55:cdd802add233
    14 * Description:
    14 * Description:
    15 * Constant definitions for Email shutdown
    15 * Constant definitions for Email shutdown
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 #include "../emailservices/emailservermonitor/inc/emailshutdownconst.h"
    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