equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __AGSFILESEARCH_H__ |
|
17 #define __AGSFILESEARCH_H__ |
|
18 |
|
19 #include <badesca.h> |
|
20 |
|
21 class RFs; |
|
22 class CDir; |
|
23 |
|
24 NONSHARABLE_CLASS(CAgnFileScanner) : public CBase |
|
25 { |
|
26 public: |
|
27 static CDesCArray* ListAgendaFilesL(RFs& aFs, const TUidType aFileType,const TDesC& aSearchPath); |
|
28 |
|
29 private: |
|
30 CAgnFileScanner(RFs& aFs, const TUidType aFileType, const TDesC& aSearchPath); |
|
31 ~CAgnFileScanner(); |
|
32 CDesCArray* ScanLD(); |
|
33 void GenerateRootDirsL(); |
|
34 void ScanForFilesL(CDesCArray& aArray); |
|
35 void ScanDirectoryL(const TDesC& aDirPath, CDesCArray& aArray); |
|
36 void AppendFileNamesL(const CDir& aFileSet, const TDesC& aDirPath, CDesCArray& aArray, const TUidType* aUid) const; |
|
37 private: |
|
38 RFs& iFs; |
|
39 TUidType iFileType; |
|
40 CDesCArray* iDirStack; |
|
41 TFileName iPath; |
|
42 //When the is specified the search only happens in that path otherwise in whole drive. |
|
43 }; |
|
44 |
|
45 |
|
46 #endif |