appinstaller/AppinstUi/sisxsifplugin/inc/sisxsifplugininstallparams.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
       
     2 * Copyright (c) 2010 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:  Installation parameters class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_SISXSIFPLUGININSTALLPARAMS_H
       
    19 #define C_SISXSIFPLUGININSTALLPARAMS_H
       
    20 
       
    21 #include <e32base.h>                    // CBase
       
    22 #include <usif/sif/sifcommon.h>         // COpaqueNamedParams, TSifPolicy
       
    23 
       
    24 namespace Usif
       
    25 {
       
    26     /**
       
    27      *  Installation parameters class.
       
    28      */
       
    29     class CSisxSifPluginInstallParams : public CBase
       
    30         {
       
    31     public:     // constructors and destructor
       
    32         static CSisxSifPluginInstallParams* NewL( const COpaqueNamedParams& aParams );
       
    33         static CSisxSifPluginInstallParams* NewL( const CSisxSifPluginInstallParams& aParams );
       
    34         ~CSisxSifPluginInstallParams();
       
    35 
       
    36     public:     // new functions
       
    37         TBool IsSilentMode() const;
       
    38         TBool IsInstallInactive() const;
       
    39         TUint Drive() const;
       
    40         TLanguage Language() const;
       
    41         const TDesC& OCSPUrl() const;
       
    42         TSifPolicy PerformOCSP() const;
       
    43         TSifPolicy IgnoreOCSPWarnings() const;
       
    44         TSifPolicy AllowUpgrade() const;
       
    45         TSifPolicy InstallOptionalItems() const;
       
    46         TSifPolicy AllowUntrusted() const;
       
    47         TSifPolicy GrantCapabilities() const;
       
    48         TSifPolicy AllowAppShutdown() const;
       
    49         TSifPolicy AllowAppBreakDependency() const;
       
    50         TSifPolicy AllowOverwrite() const;
       
    51         TSifPolicy PackageInfo() const;
       
    52         TSifPolicy AllowIncompatible() const;
       
    53 
       
    54     private:    // new functions
       
    55         CSisxSifPluginInstallParams();
       
    56         void ConstructL( const COpaqueNamedParams& aParams );
       
    57         void ConstructL( const CSisxSifPluginInstallParams& aParams );
       
    58         TInt GetIntParam( const COpaqueNamedParams& aParams, const TDesC& aParamName,
       
    59         		TInt aDefaultValue );
       
    60         void GetPolicyParam( const COpaqueNamedParams& aParams, const TDesC& aParamName,
       
    61                 TSifPolicy& aPolicy, const TSifPolicy& aDefault );
       
    62         void GetStringParamL( const COpaqueNamedParams& aParams, const TDesC& aParamName,
       
    63         		HBufC*& aBuf );
       
    64 
       
    65     private:    // data
       
    66         TBool iUseSilentMode;
       
    67         TBool iIsInstallInactive;
       
    68         TUint iDrive;
       
    69         TLanguage iLanguage;
       
    70         HBufC* iOCSPUrl;
       
    71         TSifPolicy iPerformOCSP;
       
    72         TSifPolicy iIgnoreOCSPWarnings;
       
    73         TSifPolicy iAllowUpgrade;
       
    74         TSifPolicy iInstallOptionalItems;
       
    75         TSifPolicy iAllowUntrusted;
       
    76         TSifPolicy iGrantCapabilities;
       
    77         TSifPolicy iAllowAppShutdown;
       
    78         TSifPolicy iAllowAppBreakDependency;
       
    79         TSifPolicy iAllowOverwrite;
       
    80         TSifPolicy iPackageInfo;
       
    81         TSifPolicy iAllowIncompatible;
       
    82         };
       
    83 
       
    84 }   // namespace Usif
       
    85 
       
    86 #endif  // C_SISXSIFPLUGININSTALLPARAMS_H
       
    87