equal
deleted
inserted
replaced
170 * was completed successfully or not. |
170 * was completed successfully or not. |
171 */ |
171 */ |
172 int FillVectorWithStorageData(); |
172 int FillVectorWithStorageData(); |
173 |
173 |
174 /** |
174 /** |
175 * A utility function which converts a wstring into a TDesC |
|
176 * and writes it into the stream. |
|
177 * |
|
178 * @param stream an RDesWriteStream into which the converted |
|
179 * string is written |
|
180 * @param tempString the wstring which is to be converted. |
|
181 */ |
|
182 void WriteStringtoStreamL(RDesWriteStream& aStream, std::wstring aTempString); |
|
183 |
|
184 /** |
|
185 * A utility function which reads a TDesC from the stream, converts it |
175 * A utility function which reads a TDesC from the stream, converts it |
186 * to a wstring and writes it into the vector. |
176 * to a wstring and writes it into the vector. |
187 * |
177 * |
188 * @param stream an RDesReadStream from which the TDesC data is read |
178 * @param stream an RDesReadStream from which the TDesC data is read |
189 */ |
179 */ |
198 * |
188 * |
199 * @return returns an integer specifying whether the operation |
189 * @return returns an integer specifying whether the operation |
200 * has completed successfully or not. |
190 * has completed successfully or not. |
201 */ |
191 */ |
202 int WriteDataToStorage(); |
192 int WriteDataToStorage(); |
|
193 |
|
194 |
|
195 void FetchStorageEntryToStringVector( |
|
196 const java::storage::JavaStorageEntry& aAttribute, |
|
197 java::storage::JavaStorageApplicationList_t::const_iterator& aApplicationsIter |
|
198 ); |
|
199 |
|
200 void WriteItemToStorageEntry(const std::wstring& aEntryName, |
|
201 const std::wstring& aEntryValue, |
|
202 java::storage::JavaStorageApplicationEntry_t& aInsertEntry); |
|
203 |
203 public: |
204 public: |
204 /** |
205 /** |
205 * Utility function which fills the vector with data got from storage. |
206 * Utility function which fills the vector with data got from storage. |
206 * Handles data of only APPLICATION_PACKAGE_TABLE. |
207 * Handles data of only APPLICATION_PACKAGE_TABLE. |
207 * |
208 * |
394 /** |
395 /** |
395 * Shows the remaining number of bytes available in the stream. |
396 * Shows the remaining number of bytes available in the stream. |
396 * Own |
397 * Own |
397 */ |
398 */ |
398 int iBufferSpaceLeft; |
399 int iBufferSpaceLeft; |
|
400 |
|
401 /** |
|
402 * During backup data fromJavaStorage will be temporarily stored |
|
403 * in serialised format in this buffer. |
|
404 */ |
|
405 HBufC8* iBufForJavaStorageItemsPtr; |
|
406 |
|
407 /** |
|
408 * Stores the position in iBufForJavaStorageItemsPtr from where data is |
|
409 * being read during backup operation. |
|
410 */ |
|
411 TPtrC8 iBuffReadPointer; |
|
412 |
399 }; |
413 }; |
400 |
414 |
401 } // namespace backup |
415 } // namespace backup |
402 } // namespace java |
416 } // namespace java |
403 |
417 |