|
1 /*------------------------------------------------------------------ |
|
2 - |
|
3 * Software Name : UserEmulator |
|
4 * Version : v4.2.1309 |
|
5 * |
|
6 * Copyright (c) 2009 France Telecom. All rights reserved. |
|
7 * This software is distributed under the License |
|
8 * "Eclipse Public License - v 1.0" the text of which is available |
|
9 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
10 * |
|
11 * Initial Contributors: |
|
12 * France Telecom |
|
13 * |
|
14 * Contributors: |
|
15 *------------------------------------------------------------------ |
|
16 - |
|
17 * File Name: FolderContentsListener.h |
|
18 * |
|
19 * Created: 13/08/2009 |
|
20 * Author(s): Marcell Kiss, Reshma Sandeep Das |
|
21 * |
|
22 * Description: |
|
23 * An interface class for folder scan notifications |
|
24 *------------------------------------------------------------------ |
|
25 - |
|
26 * |
|
27 */ |
|
28 |
|
29 #ifndef FOLDERCONTENTSLISTENER_H__ |
|
30 #define FOLDERCONTENTSLISTENER_H__ |
|
31 |
|
32 //System includes |
|
33 #include <e32Std.h> |
|
34 |
|
35 /** |
|
36 * MFolderContentsListener, an interface class for folder scan notifications |
|
37 */ |
|
38 |
|
39 class MFolderContentsListener |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * This gets called before a new folder is being scanned. |
|
44 */ |
|
45 virtual void FolderStarting( const TDesC & aFullPath, TBool aIsDriveListFlag ) = 0; |
|
46 /** |
|
47 * This gets called with every entry of the currently scanned folder that is a folder |
|
48 */ |
|
49 virtual void NewFolder( const TDesC & aEntry ) = 0; |
|
50 |
|
51 /** |
|
52 * This gets called with every entry of the currently scanned folder that is a plain file |
|
53 */ |
|
54 virtual void NewFile( const TDesC & aEntry ) = 0; |
|
55 |
|
56 /** |
|
57 * This is called after all entries of the currently scanned folder |
|
58 * have been delivered. This is NOT called when a scan operation is |
|
59 * aborted by starting a new scan before this got called! |
|
60 */ |
|
61 virtual void FolderCompleteL() = 0; |
|
62 |
|
63 /** |
|
64 * This gets called if an unexpected error occures during scanning. |
|
65 */ |
|
66 virtual void ErrorOccured( TInt aReasonCode ) = 0; |
|
67 }; |
|
68 |
|
69 #endif |