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