homescreenpluginsrv/inc/hspsdomattribute.h
branchRCL_3
changeset 19 502e5d91ad42
parent 0 79c6a41cd166
--- a/homescreenpluginsrv/inc/hspsdomattribute.h	Fri Mar 12 15:43:54 2010 +0200
+++ b/homescreenpluginsrv/inc/hspsdomattribute.h	Mon Mar 15 12:41:53 2010 +0200
@@ -52,6 +52,17 @@
         IMPORT_C static ChspsDomAttribute* NewL( 
             const TDesC8& aName, 
             ChspsDomStringPool& aStringPool );
+
+        /**
+        * Two-phased constructor 8 bit.
+        * 
+        * @since S60 5.0
+        * @param aName          Name of attribute (String pool index).
+        * @param aStringPool    Attached string pool.
+        */
+        IMPORT_C static ChspsDomAttribute* NewL( 
+            const TInt aName, 
+            ChspsDomStringPool& aStringPool );        
         
         /**
         * Two-phased stream constructor.
@@ -83,9 +94,11 @@
         * 
         * @since S60 5.0
         * @param aStringPool Original string pool clone.
+        * @param aFastClone     If ETrue, then fast mode cloning is used.
         * @return Pointer to an attribute. Ownership is transferred to a caller.
         */
-        ChspsDomAttribute* CloneL( ChspsDomStringPool& aStringPool );        
+        ChspsDomAttribute* CloneL( ChspsDomStringPool& aStringPool,
+                                   const TBool aFastClone = EFalse );        
         
         /**
         * Get the attribute value.
@@ -104,6 +117,14 @@
         IMPORT_C void SetValueL( const TDesC8& aValue );
         
         /**
+        * Set attribute value.
+        * 
+        * @since S60 5.0
+        * @param aValue Attribute ref value.
+        */
+        IMPORT_C void SetValueL( const TInt aValue );
+        
+        /**
         * Get the attributes name string pool index.
         *  
         * @since S60 5.0
@@ -127,8 +148,7 @@
         * @since S60 5.0
         * @return Name.
         */
-        IMPORT_C const TDesC8& Name();
-        
+        IMPORT_C const TDesC8& Name();        
        
         /**
         * Documented in ChspsDomListItem::Size.
@@ -159,6 +179,10 @@
         */
         void ConstructL( const TDesC8& aName );
 
+        /**
+        * By default Symbian 2nd phase constructor is private.
+        */
+        void ConstructL( const TInt aName );        
      
     private:    // Data
         //String pool to get string for references, not owned.