iaupdate/IAD/updater/inc/iaupdaterdefs.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007 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:   Defines for IAUpdater program.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IA_UPDATER_DEFS_H
       
    21 #define IA_UPDATER_DEFS_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 /**
       
    26  * IA Updater defines for general use.
       
    27  */
       
    28 namespace IAUpdaterDefs
       
    29     {
       
    30     // Name for the process.
       
    31     _LIT( KIAUpdaterName,"IAUpdater"); 
       
    32 
       
    33     // Minor-Component name
       
    34     _LIT( KIAUpdaterInstaller,"IAUpdater installer"); 
       
    35 
       
    36     // Name of updater exe
       
    37     _LIT( KIAUpdaterExe, "iaupdater.exe" );
       
    38 
       
    39     // Resource file name
       
    40     _LIT( KIAUpdaterResourceFile, "iaupdater.rsc" );
       
    41 
       
    42     // These constant paths are used for init and result files.
       
    43     // Notice, that instead of getting the paths as a commandline parameters
       
    44     // when application is started, it is much safer to hard code them here.
       
    45     // Then, malicious software can not give their own filepaths for initialization.
       
    46     _LIT( KInitFilePath, "c:\\private\\2000f85a\\iaupdaterfilelist" );
       
    47     _LIT( KResultFilePath, "c:\\private\\2000f85a\\iaupdaterresults" );
       
    48 
       
    49     // Executable name for iaupdate. The Application to be started after self update.
       
    50     _LIT( KIAUpdateLauncherExe, "iaupdatelauncher.exe" );
       
    51     
       
    52     // Name of iaupdate exe
       
    53     _LIT( KIAUpdateExe, "iaupdate.exe" );
       
    54     
       
    55     // Executable name for background checker. The executable to be started after self update.
       
    56     _LIT( KIAUpdateBgCheckerExe, "iaupdatebg.exe" );
       
    57     
       
    58     
       
    59     const TUid KUidIABgChecker = { 0x200211f4 };
       
    60 
       
    61     // UID3 for iaupdate. 
       
    62     const TUint KIADUpdateUid3( 0x2000F85A );
       
    63     
       
    64     // UID3 for iaupdate launcher 
       
    65     const TUint KIADUpdateLauncherUid3( 0x2001FE2F );
       
    66 
       
    67     // The Installation drive for self update.
       
    68     const TText KIAUpdaterDrive( 'C' ); 
       
    69 
       
    70     const TUint KIAUpdaterParamLen( 16 ); 
       
    71     
       
    72     // If rendezvous completed with shutdown request IAD will exit immediately     
       
    73     const TInt KIAUpdaterShutdownRequest( 1 );
       
    74 
       
    75     #ifdef __WINS__
       
    76     const static TInt KInstallRetryWaitTime( 10000000 ); // for WINS
       
    77     #else
       
    78     const static TInt KInstallRetryWaitTime( 1000000 );  // 1 sec.
       
    79     #endif
       
    80     }
       
    81 
       
    82 #endif // IA_UPDATER_DEFS_H
       
    83 
       
    84 // EOF