equal
deleted
inserted
replaced
|
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. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 @released |
|
24 */ |
|
25 |
|
26 #include "checker.h" |
|
27 |
|
28 /** |
|
29 Constructor intializes iCmdLine and iImageReaderList members. |
|
30 |
|
31 @internalComponent |
|
32 @released |
|
33 |
|
34 @param aCmdPtr - pointer to a processed CmdLineHandler object |
|
35 @param aImageReaderList - List of ImageReader insatance pointers |
|
36 */ |
|
37 Checker::Checker(CmdLineHandler* aCmdPtr, ImageReaderPtrList& aImageReaderList) |
|
38 :iCmdLine(aCmdPtr), iImageReaderList(aImageReaderList), iAllExecutables(false), iNoCheck(false) |
|
39 { |
|
40 /** |
|
41 The funciton iCmdLine->ReportFlag(), needs to be called for each and |
|
42 every executable present in the image. To increase the performance it is |
|
43 better to preserve this value. |
|
44 */ |
|
45 if(iCmdLine->ReportFlag() & KAll) |
|
46 { |
|
47 iAllExecutables = true; |
|
48 } |
|
49 |
|
50 if(iCmdLine->ReportFlag() & KNoCheck) |
|
51 { |
|
52 iNoCheck = true; |
|
53 } |
|
54 } |
|
55 |
|
56 /** |
|
57 Destructor |
|
58 |
|
59 @internalComponent |
|
60 @released |
|
61 */ |
|
62 Checker::~Checker() |
|
63 { |
|
64 iCmdLine = 0; |
|
65 } |