|
1 /* |
|
2 * Copyright (c) 2008 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: Implementation of CHSPSBRHandler class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "hspsbrhandler.h" |
|
20 #include "hspsthemeserver.h" |
|
21 |
|
22 |
|
23 // ======== LOCAL FUNCTIONS ==================================================== |
|
24 |
|
25 |
|
26 // ======== MEMBER FUNCTIONS =================================================== |
|
27 |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CHSPSBRHandler::CHSPSBRHandler |
|
31 // C++ default constructor can NOT contain any code, that |
|
32 // might leave. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 CHSPSBRHandler::CHSPSBRHandler( ChspsThemeServer& aServer ): |
|
36 iServer( aServer ) |
|
37 { |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CHSPSBRHandler::ConstructL |
|
42 // Symbian 2nd phase constructor can leave. |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 void CHSPSBRHandler::ConstructL() |
|
46 { |
|
47 } |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // CHSPSBRHandler::NewL |
|
51 // Two-phased constructor. |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 CHSPSBRHandler* CHSPSBRHandler::NewL( ChspsThemeServer& aServer ) |
|
55 { |
|
56 CHSPSBRHandler* self = new( ELeave ) CHSPSBRHandler( aServer ); |
|
57 |
|
58 CleanupStack::PushL( self ); |
|
59 self->ConstructL(); |
|
60 CleanupStack::Pop( self ); |
|
61 |
|
62 return self; |
|
63 } |
|
64 |
|
65 |
|
66 // Destructor |
|
67 CHSPSBRHandler::~CHSPSBRHandler() |
|
68 { |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------- |
|
72 // CHSPSBRHandler::AllSnapshotsSuppliedL |
|
73 // --------------------------------------------------------- |
|
74 // |
|
75 void CHSPSBRHandler::AllSnapshotsSuppliedL() |
|
76 { |
|
77 // No implementation needed. Must not leave |
|
78 } |
|
79 |
|
80 // --------------------------------------------------------- |
|
81 // CHSPSBRHandler::ReceiveSnapshotDataL |
|
82 // --------------------------------------------------------- |
|
83 // |
|
84 void CHSPSBRHandler::ReceiveSnapshotDataL( |
|
85 TDriveNumber /* aDrive */, |
|
86 TDesC8& /* aBuffer */, |
|
87 TBool /* aLastSection */ ) |
|
88 { |
|
89 // No implementation needed |
|
90 User::Leave( KErrNotSupported ); |
|
91 } |
|
92 |
|
93 // --------------------------------------------------------- |
|
94 // CHSPSBRHandler::GetExpectedDataSize |
|
95 // --------------------------------------------------------- |
|
96 // |
|
97 TUint CHSPSBRHandler::GetExpectedDataSize( |
|
98 TDriveNumber /* aDrive */) |
|
99 { |
|
100 // No implementation needed |
|
101 return 0; |
|
102 } |
|
103 |
|
104 // --------------------------------------------------------- |
|
105 // CHSPSBRHandler::GetSnapshotDataL |
|
106 // --------------------------------------------------------- |
|
107 // |
|
108 void CHSPSBRHandler::GetSnapshotDataL( |
|
109 TDriveNumber /* aDrive */, |
|
110 TPtr8& /* aBuffer */, |
|
111 TBool& /* aFinished */) |
|
112 { |
|
113 // No implementation needed |
|
114 User::Leave( KErrNotSupported ); |
|
115 } |
|
116 |
|
117 // --------------------------------------------------------- |
|
118 // CHSPSBRHandler::InitialiseGetBackupDataL |
|
119 // --------------------------------------------------------- |
|
120 // |
|
121 void CHSPSBRHandler::InitialiseGetBackupDataL( |
|
122 TDriveNumber aDrive ) |
|
123 { |
|
124 if( aDrive == EDriveC ) |
|
125 { |
|
126 // Prepare backup data for passive backup |
|
127 iServer.CreateBackupDataL(); |
|
128 } |
|
129 } |
|
130 |
|
131 // --------------------------------------------------------- |
|
132 // CHSPSBRHandler::GetBackupDataSectionL |
|
133 // --------------------------------------------------------- |
|
134 // |
|
135 void CHSPSBRHandler::GetBackupDataSectionL( |
|
136 TPtr8& /*aBuffer*/, |
|
137 TBool& aFinished ) |
|
138 { |
|
139 // No data for active backup |
|
140 aFinished = ETrue; |
|
141 } |
|
142 |
|
143 // --------------------------------------------------------- |
|
144 // CHSPSBRHandler::InitialiseRestoreBaseDataL |
|
145 // --------------------------------------------------------- |
|
146 // |
|
147 void CHSPSBRHandler::InitialiseRestoreBaseDataL( |
|
148 TDriveNumber /* aDrive */ ) |
|
149 { |
|
150 // No implementation needed |
|
151 User::Leave( KErrNotSupported ); |
|
152 } |
|
153 |
|
154 // --------------------------------------------------------- |
|
155 // CHSPSBRHandler::RestoreBaseDataSectionL |
|
156 // Create the files where the restore is performed from |
|
157 // --------------------------------------------------------- |
|
158 // |
|
159 void CHSPSBRHandler::RestoreBaseDataSectionL( |
|
160 TDesC8& /*aBuffer*/, |
|
161 TBool /*aFinished*/ ) |
|
162 { |
|
163 // No implementation needed |
|
164 } |
|
165 |
|
166 // --------------------------------------------------------- |
|
167 // CHSPSBRHandler::InitialiseRestoreIncrementDataL |
|
168 // --------------------------------------------------------- |
|
169 // |
|
170 void CHSPSBRHandler::InitialiseRestoreIncrementDataL( |
|
171 TDriveNumber /*aDrive*/ ) |
|
172 { |
|
173 // No implementation needed |
|
174 User::Leave( KErrNotSupported ); |
|
175 } |
|
176 |
|
177 // --------------------------------------------------------- |
|
178 // CHSPSBRHandler::RestoreIncrementDataSectionL |
|
179 // --------------------------------------------------------- |
|
180 // |
|
181 void CHSPSBRHandler::RestoreIncrementDataSectionL( |
|
182 TDesC8& /*aBuffer*/, |
|
183 TBool /*aFinished*/ ) |
|
184 { |
|
185 // No implementation needed |
|
186 User::Leave( KErrNotSupported ); |
|
187 } |
|
188 |
|
189 // --------------------------------------------------------- |
|
190 // CHSPSBRHandler::RestoreComplete |
|
191 // --------------------------------------------------------- |
|
192 // |
|
193 void CHSPSBRHandler::RestoreComplete( |
|
194 TDriveNumber /*aDrive*/ ) |
|
195 { |
|
196 // No implementation needed |
|
197 } |
|
198 |
|
199 // --------------------------------------------------------- |
|
200 // CHSPSBRHandler::TerminateMultiStageOperation |
|
201 // --------------------------------------------------------- |
|
202 // |
|
203 void CHSPSBRHandler::TerminateMultiStageOperation() |
|
204 { |
|
205 // No implementation needed |
|
206 } |
|
207 |
|
208 // --------------------------------------------------------- |
|
209 // CHSPSBRHandler::GetDataChecksum |
|
210 // --------------------------------------------------------- |
|
211 // |
|
212 TUint CHSPSBRHandler::GetDataChecksum( |
|
213 TDriveNumber /* aDrive */) |
|
214 { |
|
215 // No implementation needed |
|
216 return 0; |
|
217 } |
|
218 |
|
219 // End of file |