javamanager/javabackup/midp2backup/src.s60/javastoragebackuputil.h
changeset 67 63b81d807542
parent 21 2a9601315dfc
--- a/javamanager/javabackup/midp2backup/src.s60/javastoragebackuputil.h	Mon Aug 23 14:24:31 2010 +0300
+++ b/javamanager/javabackup/midp2backup/src.s60/javastoragebackuputil.h	Thu Sep 02 13:22:59 2010 +0300
@@ -172,16 +172,6 @@
     int FillVectorWithStorageData();
 
     /**
-     * A utility function which converts a wstring into a TDesC
-     * and writes it into the stream.
-     *
-     * @param stream an RDesWriteStream into which the converted
-     *        string is written
-     * @param tempString the wstring which is to be converted.
-     */
-    void WriteStringtoStreamL(RDesWriteStream& aStream, std::wstring aTempString);
-
-    /**
      * A utility function which reads a TDesC from the stream, converts it
      * to a wstring and writes it into the vector.
      *
@@ -200,6 +190,17 @@
      *         has completed successfully or not.
      */
     int WriteDataToStorage();
+
+
+    void FetchStorageEntryToStringVector(
+        const java::storage::JavaStorageEntry& aAttribute,
+        java::storage::JavaStorageApplicationList_t::const_iterator& aApplicationsIter
+        );
+
+    void WriteItemToStorageEntry(const std::wstring& aEntryName,
+                                 const std::wstring& aEntryValue,
+                                 java::storage::JavaStorageApplicationEntry_t& aInsertEntry);
+
 public:
     /**
      * Utility function which fills the vector with data got from storage.
@@ -396,6 +397,19 @@
      * Own
      */
     int iBufferSpaceLeft;
+
+    /**
+     * During backup data fromJavaStorage will be temporarily stored
+     * in serialised format in this buffer.
+     */
+    HBufC8* iBufForJavaStorageItemsPtr;
+
+    /**
+     * Stores the position in iBufForJavaStorageItemsPtr from where data is
+     * being read during backup operation.
+     */
+    TPtrC8 iBuffReadPointer;
+
 };
 
 } // namespace backup