imgtools/imgcheck/inc/imgcheckmanager.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 * ImageChecker controller class declaration
       
    16 * @internalComponent
       
    17 * @released
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef IMGCHECKMANAGER_H
       
    23 #define IMGCHECKMANAGER_H
       
    24 
       
    25 #include "cmdlinehandler.h"
       
    26 #include "imagereader.h"
       
    27 #include "checker.h"
       
    28 
       
    29 /** 
       
    30 This class is a controller class for imgcheck tool. Controls the instantiation and 
       
    31 operations of ImageReader, Checker, Reporter and ReportWriter.
       
    32 
       
    33 @internalComponent
       
    34 @released
       
    35 */
       
    36 class ImgCheckManager
       
    37 {
       
    38 public:
       
    39 	ImgCheckManager(CmdLineHandler* aCmdPtr);
       
    40 	~ImgCheckManager(void);
       
    41 	void Process(ImageReader* aImgReader);
       
    42 	void CreateObjects(void); 
       
    43 	void Execute(void);
       
    44 	void FillReporterData(void);
       
    45 	void GenerateReport(void);
       
    46 	void InsertWriter(ReportWriter* aWriter);
       
    47 
       
    48 private:
       
    49 	void HandleImage(const String& aImgName, EImageType aImageType = EUnknownImage);
       
    50     
       
    51 protected:
       
    52 	CmdLineHandler* iCmdLine;
       
    53 	Reporter *iReporter;
       
    54 	ImageReaderPtrList iImageReaderList;
       
    55 	CheckerPtrList iCheckerList;
       
    56 	WriterPtrList iWriterList;
       
    57 	bool iNoRomImage;
       
    58 };
       
    59 
       
    60 #endif //IMGCHECKMANAGER_H