|
1 /* |
|
2 * Copyright (c) 2010 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: Monitors file creations, modifications and deletions. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 inline TInt RFastFindFSPEngine::Enable() |
|
20 { |
|
21 return DoControl( EFastFindFSPOpEnable ); |
|
22 } |
|
23 |
|
24 inline TInt RFastFindFSPEngine::Disable() |
|
25 { |
|
26 return DoControl( EFastFindFSPOpDisable ); |
|
27 } |
|
28 |
|
29 inline void RFastFindFSPEngine::RegisterNotification( |
|
30 TFastFindFSPStatusPckg& aFastFindFSPStatus, TRequestStatus& aStat ) |
|
31 { |
|
32 DoRequest( EFastFindFSPOpRegisterNotification, aStat, aFastFindFSPStatus ); |
|
33 } |
|
34 |
|
35 inline void RFastFindFSPEngine::AddNotificationPath( const TDesC& aPath ) |
|
36 { |
|
37 TFastFindFSPStatusPckg pckg; |
|
38 TRequestStatus rs; |
|
39 TFastFindFSPStatus& status = pckg(); |
|
40 |
|
41 status.iFileName.Zero(); |
|
42 status.iFileName.Copy( aPath ); |
|
43 |
|
44 DoRequest( EFastFindFSPOpAddNotificationPath, rs, pckg ); |
|
45 User::WaitForRequest( rs ); |
|
46 } |
|
47 |
|
48 inline void RFastFindFSPEngine::RemoveNotificationPath( const TDesC& aPath ) |
|
49 { |
|
50 TFastFindFSPStatusPckg pckg; |
|
51 TRequestStatus rs; |
|
52 TFastFindFSPStatus& status = pckg(); |
|
53 |
|
54 status.iFileName.Zero(); |
|
55 status.iFileName.Copy( aPath ); |
|
56 |
|
57 DoRequest( EFastFindFSPOpRemoveNotificationPath, rs, pckg ); |
|
58 User::WaitForRequest( rs ); |
|
59 } |
|
60 |
|
61 inline void RFastFindFSPEngine::AddIgnorePath (const TDesC& aPath ) |
|
62 { |
|
63 TFastFindFSPStatusPckg pckg; |
|
64 TRequestStatus rs; |
|
65 TFastFindFSPStatus& status = pckg(); |
|
66 |
|
67 status.iFileName.Zero(); |
|
68 status.iFileName.Copy( aPath ); |
|
69 |
|
70 DoRequest( EFastFindFSPOpAddIgnorePath, rs, pckg ); |
|
71 User::WaitForRequest( rs ); |
|
72 } |
|
73 |
|
74 inline void RFastFindFSPEngine::RemoveIgnorePath( const TDesC& aPath ) |
|
75 { |
|
76 TFastFindFSPStatusPckg pckg; |
|
77 TRequestStatus rs; |
|
78 TFastFindFSPStatus& status = pckg(); |
|
79 |
|
80 status.iFileName.Zero(); |
|
81 status.iFileName.Copy( aPath ); |
|
82 |
|
83 DoRequest( EFastFindFSPOpRemoveIgnorePath, rs, pckg ); |
|
84 User::WaitForRequest( rs ); |
|
85 } |
|
86 |
|
87 inline void RFastFindFSPEngine::NotificationCancel() |
|
88 { |
|
89 DoCancel( EFastFindFSPOpNotificationCancel ); |
|
90 } |
|
91 |