equal
deleted
inserted
replaced
|
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 that finds extensions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CXSPSCANNER_H__ |
|
21 #define __CXSPSCANNER_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <s32file.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CxSPLoader; |
|
28 |
|
29 // TYPEDEFS |
|
30 typedef CArrayPtrFlat<CxSPLoader> CxSPArray; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Scanns for ECom extensions. |
|
36 */ |
|
37 class CxSPScanner : public CBase |
|
38 { |
|
39 public: // Constructor and destructor |
|
40 |
|
41 /** |
|
42 * Static factory function that performs the 2-phased construction. |
|
43 * |
|
44 * @param aExtensions Array of extensions |
|
45 * @return New instance of this class. |
|
46 */ |
|
47 static CxSPScanner* NewL(CxSPArray& aExtensions); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 ~CxSPScanner(); |
|
53 |
|
54 public: // Interface |
|
55 /** |
|
56 * Scans a directory and appends found extensions to iExtensions. |
|
57 */ |
|
58 void ScanL(); |
|
59 |
|
60 private: // Implementation |
|
61 CxSPScanner(CxSPArray& aExtensions); |
|
62 |
|
63 private: // Data |
|
64 /// Ref: Array of extensions that this scanner builds. |
|
65 CxSPArray& iExtensions; |
|
66 }; |
|
67 |
|
68 #endif // __CXSPSCANNER_H__ |
|
69 |
|
70 // End of File |