|
1 /* |
|
2 * Copyright (c) 2007-2007 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: RFS ECOM plugin for Preset Server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_PSRRFSPLUGIN_H |
|
20 #define C_PSRRFSPLUGIN_H |
|
21 |
|
22 #include <rfsPlugin.h> |
|
23 |
|
24 /** |
|
25 * Preset Server RFS ECOM plugin implementation. |
|
26 * |
|
27 * Handles deleting of Preset Server files when RFS operation is invoked. |
|
28 * |
|
29 * @since S60 v3.2 |
|
30 */ |
|
31 class CPSRfsPlugin : public CRFSPlugin |
|
32 { |
|
33 |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 * |
|
39 * @since S60 v3.2 |
|
40 * @param aInitParams Initialisation parameters. |
|
41 * @return The created object. |
|
42 */ |
|
43 static CPSRfsPlugin* NewL( TAny* aInitParams ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 * |
|
48 * @since S60 v3.2 |
|
49 */ |
|
50 ~CPSRfsPlugin(); |
|
51 |
|
52 private: |
|
53 |
|
54 /** |
|
55 * Constructor. |
|
56 * |
|
57 * @since S60 v3.2 |
|
58 * @param aInitParams Initialisation parameters. |
|
59 */ |
|
60 CPSRfsPlugin( TAny* aInitParams ); |
|
61 |
|
62 /** |
|
63 * Second-phase constructor. |
|
64 * |
|
65 * @since S60 v3.2 |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 // from base class CRFSPlugin |
|
70 |
|
71 void RestoreFactorySettingsL( const TRfsReason aType ); |
|
72 void GetScriptL( const TRfsReason aType, TDes& aPath ); |
|
73 void ExecuteCustomCommandL( const TRfsReason aType, TDesC& aCommand ); |
|
74 |
|
75 /** |
|
76 * Resolves the most recently updated location for a file. |
|
77 * The paths searched are, in order, RAM and MMC. |
|
78 * |
|
79 * @param aFs The file server session to use. |
|
80 * @param aFileName The file name of the file which is wanted to find. |
|
81 * On return, will contain the full path to the file. |
|
82 * @param aPath The absolute path to the file. If drive letter is |
|
83 * given then that one will be first tried. |
|
84 * @return KErrNotFound if the file is not found, otherwise KErrNone |
|
85 */ |
|
86 TInt ResolveDrive( RFs& aFs, TFileName& aFileName, const TFileName& aPath ); |
|
87 |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // C_CPSRFSPLUGIN_H |