imgtools/imgcheck/inc/checker.h
changeset 0 044383f39525
child 590 360bd6b35136
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 2007-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 * Checker interface class declaration
       
    16 * @internalComponent
       
    17 * @released
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef CHECKER_H
       
    23 #define CHECKER_H
       
    24 
       
    25 #include "cmdlinehandler.h"
       
    26 #include "reporter.h"
       
    27 #include "imagereader.h"
       
    28 
       
    29 typedef std::map<std::string, ExeVsIdDataMap> ImgVsExeIdData;
       
    30 
       
    31 /** 
       
    32 Different status of a dependency
       
    33 
       
    34 @internalComponent
       
    35 @released
       
    36 */
       
    37 const String KStatusYes("Available");
       
    38 const String KStatusNo("Missing");
       
    39 const String KStatusHidden("Hidden");
       
    40 const String KDependency("Dependency");
       
    41 
       
    42 /** 
       
    43 All SID validation status constants
       
    44 
       
    45 @internalComponent
       
    46 @released
       
    47 */
       
    48 const String KUniqueAlias("Unique(alias)");
       
    49 const String KUnique("Unique");
       
    50 const String KDuplicate("Duplicate");
       
    51 const String KSid("SID");
       
    52 
       
    53 /** 
       
    54 VID and Debuggable flag validation status constants
       
    55 
       
    56 @internalComponent
       
    57 @released
       
    58 */
       
    59 const String KValid("Valid");
       
    60 const String KInValid("Invalid");
       
    61 const String KDbgMatching("Matching");
       
    62 const String KDbgNotMatching("Not Matching");
       
    63 const String KDbgFlag("DBG");
       
    64 const String KVid("VID");
       
    65 
       
    66 /**
       
    67 This class is a virtual base. If any new checks or validation needs to be 
       
    68 included as part of this tool, the new checker or validator class should be
       
    69 derived from this class.
       
    70 
       
    71 @internalComponent
       
    72 @released
       
    73 */
       
    74 class Checker
       
    75 {
       
    76 protected:
       
    77 	CmdLineHandler* iCmdLine;
       
    78 	ImageReaderPtrList iImageReaderList;
       
    79 	//To identify whether missing or all dependency data to be generated
       
    80 	bool iAllExecutables;
       
    81 	//To disable all checks
       
    82 	bool iNoCheck;
       
    83 
       
    84 public:
       
    85 	Checker(CmdLineHandler* aCmdPtr,ImageReaderPtrList& aImageReaderList);
       
    86 	virtual ~Checker();
       
    87 	virtual void Check(ImgVsExeStatus& imgVsExeStatus)=0;
       
    88 	virtual void PrepareAndWriteData(ExeContainer* aExeContainer)=0;
       
    89 };
       
    90 #endif//CHECKER_H