secureswitools/swisistools/source/interpretsislib/dbconstants.h
changeset 0 ba25891c3a9e
child 25 98b66e4fb0be
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2008-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 the License "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 * DbConstants - Contains all names for accessing properties from the database.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file 
       
    22  @released
       
    23  @internalTechnology
       
    24 */
       
    25 
       
    26 #ifndef DBCONSTANTS_H
       
    27 #define DBCONSTANTS_H
       
    28 
       
    29 #include <string>
       
    30 #include "sisinfo.h"
       
    31 #include "sisregistryobject.h"
       
    32 
       
    33 namespace DbConstants
       
    34 {
       
    35 	extern std::string	ComponentUid;
       
    36 	extern std::wstring	CompInstallType;
       
    37 	extern std::wstring	CompDependencyPackageCount;
       
    38 	extern std::wstring	CompDependencyComponentId;
       
    39 	extern std::wstring	CompDependencyFromVersion;
       
    40 	extern std::wstring	CompDependencyToVersion;
       
    41 	extern std::wstring CompEmbeddedPackagePresent;
       
    42 	extern std::wstring	CompEmbeddedPackageCount;
       
    43 	extern std::wstring	CompEmbeddedPackageUid;
       
    44 	extern std::wstring	CompEmbeddedPackageName;
       
    45 	extern std::wstring	CompEmbeddedPackageVendor;
       
    46 	extern std::wstring	CompEmbeddedPackageIndex;
       
    47 	extern std::wstring	CompPropertyCount;
       
    48 	extern std::wstring	CompPropertyKey;
       
    49 	extern std::wstring	CompPropertyValue;
       
    50 
       
    51 	// file description  - component property
       
    52 
       
    53 	extern std::wstring	WCFileName;
       
    54 	extern std::wstring	WCFileMimeType;
       
    55 	extern std::wstring	WCFileSisFileOperation;
       
    56 	extern std::wstring	WCFileFileOperationOptions;
       
    57 	extern std::wstring	WCFileUncompressedLength;
       
    58 	extern std::wstring	WCFileIndex;
       
    59 	extern std::wstring	WCFileSid;
       
    60 	extern std::wstring	WCFileHashAlgorithm;
       
    61 	extern std::wstring	WCFileHashData;
       
    62 	
       
    63 	// file description  - file property
       
    64 	extern std::wstring	FileMimeType;
       
    65 	extern std::wstring	FileSisFileOperation;
       
    66 	extern std::wstring	FileFileOperationOptions;
       
    67 	extern std::wstring	FileUncompressedLength;
       
    68 	extern std::wstring	FileIndex;
       
    69 	extern std::wstring	FileSid;
       
    70 	extern std::wstring	FileHashAlgorithm;
       
    71 	extern std::wstring	FileHashData;
       
    72 	
       
    73 	// file description properties
       
    74 	extern std::wstring	CompWildCardFileCount;
       
    75 	extern std::wstring	CompSidFileName;
       
    76 
       
    77 	// inROM
       
    78 	extern std::wstring	CompInRom;
       
    79 	extern std::wstring	CompIsSigned;
       
    80 	extern std::wstring	CompSignedBySuCert;
       
    81 	extern std::wstring	CompDeletablePreinstalled;
       
    82 	extern std::wstring	CompTrust;
       
    83 	extern std::wstring	CompIsRemoveWithLastDependent;
       
    84 	extern std::wstring	CompTrustTimeStamp;
       
    85 
       
    86 	// trust status
       
    87 	extern std::wstring	CompTrustValidationStatus;
       
    88 	extern std::wstring	CompTrustRevocationStatus;
       
    89 	extern std::wstring	CompTrustResultDate;
       
    90 	extern std::wstring	CompTrustLastCheckDate;
       
    91 	extern std::wstring	CompTrustIsQuarantined;
       
    92 	extern std::wstring	CompTrustQuarantinedDate;
       
    93 
       
    94 	// InstallChainIndices
       
    95 	extern std::wstring	CompInstallChainIndexCount;
       
    96 	extern std::wstring	CompInstallChainIndex;
       
    97 	
       
    98 	// SisRegistryPackage
       
    99 	extern std::wstring	CompSidCount;
       
   100 	extern std::wstring CompSidsPresent;
       
   101 	extern std::wstring	CompSid;
       
   102 
       
   103 	// ControllerInfo
       
   104 	extern std::wstring	CompControllerCount;
       
   105 	extern std::wstring	CompControllerVersion;
       
   106 	extern std::wstring	CompControllerOffset;
       
   107 	extern std::wstring	CompControllerHashAlgorithm;
       
   108 	extern std::wstring	CompControllerHashData;
       
   109 
       
   110 	extern std::wstring	CompLanguage;
       
   111 	extern std::wstring	CompSelectedDrive;
       
   112 
       
   113 	extern std::wstring	CompUid;
       
   114 	extern std::wstring	CompUniqueVendorName;
       
   115 	extern std::wstring	CompIndex;
       
   116 
       
   117 	// These defaults need to be synchronised with the ones in scrdbconstants.h. They are an optimisation which makes component and file properties optional in the case
       
   118 	// they have default values. This saves SCR DB size and access times
       
   119 	static const CSISInfo::TSISInstallationType KDefaultInstallType = CSISInfo::EInstInstallation;	
       
   120 	static const bool KDefaultIsInRom = true;
       
   121 	static const bool KDefaultIsDeletablePreInstalled = false;
       
   122 	static const bool KDefaultIsSigned = false;
       
   123 	static const int KDefaultTrustValue = SisRegistryObject::KSisPackageCertificateChainValidatedToTrustAnchor;
       
   124 	static const int KDefaultRemoveWithLastDependent = 0;
       
   125 	static const bool KDefaultIsSignedBySuCert = false;
       
   126 	static const int KDefaultSidCount = 1;
       
   127 	static const int KDefaultControllerCount = 1;
       
   128 	static const int KDefaultEmbeddedPackageCount = 0;
       
   129 	static const int KDefaultCompPropertyCount = 0;
       
   130 	static const int KDefaultWildCardFileCount = 0;
       
   131 	static const int KDefaultChainIndex = 1; 	
       
   132 	static const int KDefaultInstalledDrive = 0; 	
       
   133 	static const int KDefaultInstalledLanguage = CSISLanguage::ELangEnglish;
       
   134 }	
       
   135 
       
   136 #endif // DBCONSTANTS_H