1 /* |
|
2 * Copyright (c) 2005-2006 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: Handles restory factory settings |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef RfsFotaPlugin_H |
|
22 #define RfsFotaPlugin_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include <fotastorage.h> |
|
27 |
|
28 #include "rfsPlugin.h" |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Ensures that there is disk space reservation in place after 1st boot |
|
34 * |
|
35 * @lib fotaserver.exe |
|
36 * @since S60 v3.1 |
|
37 */ |
|
38 class CRfsFotaPlugin: public CRFSPlugin |
|
39 { |
|
40 public: |
|
41 |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * |
|
46 * @since S60 v3.1 |
|
47 * @param aInitParams initial parameters |
|
48 * @return Error code |
|
49 */ |
|
50 static CRfsFotaPlugin* NewL(TAny* aInitParams); |
|
51 |
|
52 virtual ~CRfsFotaPlugin(); |
|
53 |
|
54 |
|
55 /** |
|
56 * Handle restory factory settings. Run at boot up. |
|
57 * |
|
58 * @since S60 v3.1 |
|
59 * @param aType type of boot |
|
60 * @return none |
|
61 */ |
|
62 void RestoreFactorySettingsL( const TRfsReason aType ); |
|
63 |
|
64 |
|
65 /** |
|
66 * GetScriptL |
|
67 * |
|
68 * @param aType |
|
69 * @param aPath |
|
70 * @return None |
|
71 */ |
|
72 void GetScriptL( const TRfsReason aType, TDes& aPath ); |
|
73 |
|
74 |
|
75 /** |
|
76 * GetScriptL |
|
77 * |
|
78 * @param aType |
|
79 * @param aCommand |
|
80 * @return None |
|
81 */ |
|
82 void ExecuteCustomCommandL( const TRfsReason aType, TDesC& aCommand ); |
|
83 |
|
84 |
|
85 private: |
|
86 |
|
87 CRfsFotaPlugin(); |
|
88 |
|
89 |
|
90 /** |
|
91 * Constructor |
|
92 * |
|
93 * @param aInitParams |
|
94 * @return None |
|
95 */ |
|
96 CRfsFotaPlugin(TAny* aInitParams); |
|
97 |
|
98 void ConstructL(); |
|
99 |
|
100 |
|
101 |
|
102 /** |
|
103 * Load fota storage plugin |
|
104 * |
|
105 * @param None |
|
106 * @return None |
|
107 */ |
|
108 void LoadStoragePluginL (); |
|
109 |
|
110 |
|
111 /** |
|
112 * unload fota storage plugin |
|
113 * |
|
114 * @param None |
|
115 * @return None |
|
116 */ |
|
117 void UnLoadStoragePluginL (); |
|
118 |
|
119 private: // data |
|
120 |
|
121 |
|
122 /** |
|
123 * Destructor key of fotastorageplugin. |
|
124 */ |
|
125 TUid iStorageDtorKey; |
|
126 |
|
127 |
|
128 /** |
|
129 * Fotastorage plugin. Used for disk space reservation file handling |
|
130 */ |
|
131 CFotaStorage* iStorage; |
|
132 |
|
133 }; |
|
134 |
|
135 |
|
136 #endif // RfsFotaPlugin_H |
|
137 |
|
138 // End of File |
|