|
1 /* |
|
2 * Copyright (c) 2006 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 "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: Memory scan engine registry scanning |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MSENGREGISTRYSCANNER_H |
|
20 #define MSENGREGISTRYSCANNER_H |
|
21 |
|
22 // USER INCLUDES |
|
23 #include "msengscannerbase.h" |
|
24 |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * This class represents a registry scanner. |
|
30 * |
|
31 * @since 3.2 |
|
32 */ |
|
33 class CMsengRegistryScanner : public CMsengScannerBase |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Constructor. |
|
39 * |
|
40 * @param aDrive - Drive to be scanned. |
|
41 */ |
|
42 static CMsengRegistryScanner* NewL( TDriveNumber aDrive, MMsengScannerObserver& aObserver, |
|
43 CMsengInfoArray& aScanArray, RFs& aFsSession); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CMsengRegistryScanner(); |
|
49 |
|
50 public: // New functions |
|
51 |
|
52 /** |
|
53 * Starts the scan operation. |
|
54 * @since S60 3.2 |
|
55 */ |
|
56 void Scan(); |
|
57 |
|
58 protected: // Functions from base classes |
|
59 |
|
60 /** |
|
61 * From CMsengScannerBase |
|
62 * Do one incremental scanning step |
|
63 * |
|
64 * @since S60 3.2 |
|
65 */ |
|
66 virtual TStepResult PerformStepL(); |
|
67 |
|
68 |
|
69 private: |
|
70 |
|
71 CMsengRegistryScanner(TDriveNumber aDrive, MMsengScannerObserver& aObserver, |
|
72 CMsengInfoArray& aScanArray, RFs& aFsSession); |
|
73 |
|
74 void ScanSisRegistryL(); |
|
75 |
|
76 private: // Internal enumerations |
|
77 |
|
78 /** |
|
79 * |
|
80 */ |
|
81 enum TRegistryType |
|
82 { |
|
83 ERegistrySisx, |
|
84 ERegistryLast |
|
85 }; |
|
86 |
|
87 private: // Data |
|
88 |
|
89 TRegistryType iType; |
|
90 TDriveNumber iDrive; |
|
91 }; |
|
92 |
|
93 #endif // MSENGREGISTRYSCANNER |
|
94 |
|
95 // End of File |