idlehomescreen/inc/xndomattribute.h
changeset 2 08c6ee43b396
parent 0 f72a12da539e
--- a/idlehomescreen/inc/xndomattribute.h	Thu Jan 07 12:39:41 2010 +0200
+++ b/idlehomescreen/inc/xndomattribute.h	Mon Jan 18 20:10:36 2010 +0200
@@ -47,14 +47,14 @@
         */
         IMPORT_C static CXnDomAttribute* NewL( 
             const TDesC8& aName, 
-            CXnDomStringPool& aStringPool );
+            CXnDomStringPool* aStringPool );
         
         /**
         * Two-phased stream constructor.
         */
         static CXnDomAttribute* NewL( 
             RReadStream& aStream, 
-            CXnDomStringPool& aStringPool );
+            CXnDomStringPool* aStringPool );
         /**
         * Destructor.
         */
@@ -103,6 +103,14 @@
         * @return String pool index.
         */
         IMPORT_C TInt16 ValueStringPoolIndex()const;
+        
+        /**
+         * Swap used string pool.
+         * 
+         * @param aStringPool   New string pool to be used.
+         *                      Ownership not transferred!
+         */
+        IMPORT_C void SwapStringPoolL( CXnDomStringPool* aStringPool );        
          
     public: //From CXnDomListItem
         
@@ -133,7 +141,7 @@
         /**
         * C++ default constructor.
         */
-        CXnDomAttribute( CXnDomStringPool& aStringPool );
+        CXnDomAttribute( CXnDomStringPool* aStringPool );
             
         /**
         * By default Symbian 2nd phase constructor is private.
@@ -143,7 +151,7 @@
      
     private:    // Data
         //String pool to get string for references, not owned
-        CXnDomStringPool& iStringPool;
+        CXnDomStringPool* iStringPool;
         
         //Attribute name reference
         TInt16         iNameRef;