|
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: |
|
15 * Scanner class used to scan file system by filename extension |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef MSENGFINDALLSCANNER_H |
|
22 #define MSENGFINDALLSCANNER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "msengfilescanner.h" |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Scanner class used to scan file system by filename extension. |
|
31 */ |
|
32 class CMsengFindAllScanner : public CMsengFileScanner |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * constructor |
|
38 */ |
|
39 static CMsengFindAllScanner* NewL( |
|
40 MMsengScannerObserver& aObserver, |
|
41 CMsengInfoArray& aScanArray, |
|
42 RFs& aFsSession); |
|
43 |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 ~CMsengFindAllScanner(); |
|
49 |
|
50 public: // New functions |
|
51 |
|
52 /** |
|
53 * |
|
54 */ |
|
55 virtual CDir* FindFilesL(const TDesC& aDirectory, TBool& aMoveToNextDirectory); |
|
56 |
|
57 /** |
|
58 * |
|
59 */ |
|
60 virtual TLocationResponse HandleLocatedEntryL(const TDesC& aFullFileNameAndPath, |
|
61 const TEntry& aEntry); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * C++ default constructor. |
|
67 */ |
|
68 CMsengFindAllScanner( |
|
69 MMsengScannerObserver& aObserver, |
|
70 CMsengInfoArray& aScanArray, |
|
71 RFs& aFsSession); |
|
72 |
|
73 private: |
|
74 |
|
75 // Prohibit copy constructor if not deriving from CBase. |
|
76 CMsengFindAllScanner( const CMsengFindAllScanner& ); |
|
77 // Prohibit assigment operator if not deriving from CBase. |
|
78 CMsengFindAllScanner& operator= ( const CMsengFindAllScanner& ); |
|
79 }; |
|
80 |
|
81 #endif // MSENGFINDALLSCANNER_H |
|
82 |
|
83 // End of File |