|
1 /* |
|
2 * Copyright (c) 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 "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: Juha Kauppinen, Mika Hokkanen |
|
13 * |
|
14 * Description: Photo Browser |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __FILESYSTEMMONITORAO_H__ |
|
19 #define __FILESYSTEMMONITORAO_H__ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <f32file.h> |
|
23 //#include "IEFileLoader.h" |
|
24 #include "ImagicConsts.h" |
|
25 #include "IEImageFinder.h" |
|
26 //#include "IEEngineImp.h" |
|
27 |
|
28 class CIEImageFinder; |
|
29 |
|
30 class CFileSystemMonitorAO : public CActive |
|
31 { |
|
32 public: |
|
33 // Constructor and destructor |
|
34 static CFileSystemMonitorAO* NewL(RFs& aFileServer, CIEImageFinder* aImageFinder); |
|
35 static CFileSystemMonitorAO* NewLC(RFs& aFileServer, CIEImageFinder* aImageFinder); |
|
36 void ConstructL(); |
|
37 CFileSystemMonitorAO(RFs& aFileServer, CIEImageFinder* aImageFinder); |
|
38 ~CFileSystemMonitorAO(); |
|
39 void StartMonitoring(); |
|
40 void StopMonitoring(); |
|
41 |
|
42 private: |
|
43 // From CActive |
|
44 void RunL(); |
|
45 void DoCancel(); |
|
46 void RunError(); |
|
47 |
|
48 private: // Data |
|
49 |
|
50 CIEImageFinder* iImageFinder; |
|
51 RFs& iFileServer; |
|
52 |
|
53 |
|
54 }; |
|
55 |
|
56 #endif //__FILESYSTEMMONITORAO_H__ |