secureswitools/swianalysistoolkit/source/chainvalidityandinstallfilestatustools/dumpinstallfilestatustool/sisfiledata.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006-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 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20  @file 
       
    21  @internalComponent 
       
    22 */
       
    23 
       
    24 #ifndef __SISFILEDATA_H__
       
    25 #define __SISFILEDATA_H__
       
    26 #pragma warning(disable: 4786)
       
    27 
       
    28 #include "options.h"
       
    29 #include "launchprocess.h"
       
    30 #include <sstream>
       
    31 
       
    32 const std::string KEciFile = "executablecapabilities.eci";
       
    33 
       
    34 /**
       
    35  * SISFileData Class reads the execapabilities.eci file(containing information of the executable
       
    36  * and their corressponding capabilities).
       
    37  * @internalComponent 
       
    38  */
       
    39 class SISFileData
       
    40 {
       
    41 
       
    42 public:
       
    43 
       
    44 	struct ExeLabelAndCapabilitiesList
       
    45 		{
       
    46 		ExeLabelAndCapabilitiesList* iNext;
       
    47 		std::string iExeLabel;
       
    48 		int iExeCapability;
       
    49 		};
       
    50 
       
    51 public:
       
    52 
       
    53 	SISFileData();
       
    54 
       
    55 	~SISFileData();
       
    56 
       
    57 	/**
       
    58 	  Extracts executable and capabilities information from the given eci file 
       
    59 	  generated by dumpsis.
       
    60 	  @param	aECIFile	execapabilities.eci file
       
    61 	 */
       
    62 	int EciFileRead(const char* aEciFile ,const Options& aOptions);
       
    63 
       
    64 	const ExeLabelAndCapabilitiesList* ExeNameAndCapabilityList() const  { return iExeLabelAndCapabilities ; }
       
    65 
       
    66 private:
       
    67 
       
    68 	std::string iExeName;
       
    69 	ExeLabelAndCapabilitiesList* iExeLabelAndCapabilities;
       
    70 };
       
    71 
       
    72 #endif	
       
    73