homescreenpluginsrv/inc/hspsodt.h
branchRCL_3
changeset 18 bd874ee5e5e2
parent 0 79c6a41cd166
child 19 502e5d91ad42
--- a/homescreenpluginsrv/inc/hspsodt.h	Fri Feb 19 23:07:29 2010 +0200
+++ b/homescreenpluginsrv/inc/hspsodt.h	Fri Mar 12 15:43:54 2010 +0200
@@ -151,6 +151,13 @@
         * @param aIndex Index of the resource to be deleted.
         */ 
         IMPORT_C void DeleteResourceL( TInt aIndex );
+
+        /**
+        * Deletes all resources from the ODT.
+        * 
+        * @since S60 5.0
+        */ 
+        IMPORT_C void DeleteAllResources();        
         
         /**
         * Gets a resource.
@@ -344,8 +351,15 @@
         * @since S60 5.0
         * @return ChspsODT* pointer to the cloned ODT.
         */ 
-        IMPORT_C ChspsODT* CloneL();
-        
+        IMPORT_C ChspsODT* CloneL() const;
+
+        /**
+        * Clones given ODT to this ODT.
+        * 
+        * @since S60 5.0
+        * @param	aODT	Source ODT.
+        */         
+        IMPORT_C void CloneL( ChspsODT& aODT );        
         
         /**
         * Clones the aDom and sets it as this ChspsODT's DomDocument.
@@ -475,6 +489,15 @@
         */
         void ConstructL();
 
+    private:
+        /**
+        * Helper to ODT cloning. Prevents duplicate code in two clone methods.
+        * 
+        * @param aSource    Source ODT
+        * @param aTarget    Target ODT
+        */
+        static void CopyODTDataL( const ChspsODT& aSource, ChspsODT& aTarget );
+        
     private:    // Data
 
         // Family mask (bits for e.g. vga, qhd_tch etc resolutions)