homescreenpluginsrv/inc/hspsdomattribute.h
branchRCL_3
changeset 12 502e5d91ad42
parent 0 79c6a41cd166
equal deleted inserted replaced
11:bd874ee5e5e2 12:502e5d91ad42
    50         * @param aStringPool    Attached string pool.
    50         * @param aStringPool    Attached string pool.
    51         */
    51         */
    52         IMPORT_C static ChspsDomAttribute* NewL( 
    52         IMPORT_C static ChspsDomAttribute* NewL( 
    53             const TDesC8& aName, 
    53             const TDesC8& aName, 
    54             ChspsDomStringPool& aStringPool );
    54             ChspsDomStringPool& aStringPool );
       
    55 
       
    56         /**
       
    57         * Two-phased constructor 8 bit.
       
    58         * 
       
    59         * @since S60 5.0
       
    60         * @param aName          Name of attribute (String pool index).
       
    61         * @param aStringPool    Attached string pool.
       
    62         */
       
    63         IMPORT_C static ChspsDomAttribute* NewL( 
       
    64             const TInt aName, 
       
    65             ChspsDomStringPool& aStringPool );        
    55         
    66         
    56         /**
    67         /**
    57         * Two-phased stream constructor.
    68         * Two-phased stream constructor.
    58         * 
    69         * 
    59         * @since S60 5.0
    70         * @since S60 5.0
    81         /**
    92         /**
    82         * Makes a copy from original property.
    93         * Makes a copy from original property.
    83         * 
    94         * 
    84         * @since S60 5.0
    95         * @since S60 5.0
    85         * @param aStringPool Original string pool clone.
    96         * @param aStringPool Original string pool clone.
       
    97         * @param aFastClone     If ETrue, then fast mode cloning is used.
    86         * @return Pointer to an attribute. Ownership is transferred to a caller.
    98         * @return Pointer to an attribute. Ownership is transferred to a caller.
    87         */
    99         */
    88         ChspsDomAttribute* CloneL( ChspsDomStringPool& aStringPool );        
   100         ChspsDomAttribute* CloneL( ChspsDomStringPool& aStringPool,
       
   101                                    const TBool aFastClone = EFalse );        
    89         
   102         
    90         /**
   103         /**
    91         * Get the attribute value.
   104         * Get the attribute value.
    92         * 
   105         * 
    93         * @since S60 5.0
   106         * @since S60 5.0
   100         * 
   113         * 
   101         * @since S60 5.0
   114         * @since S60 5.0
   102         * @param aValue Attribute string value.
   115         * @param aValue Attribute string value.
   103         */
   116         */
   104         IMPORT_C void SetValueL( const TDesC8& aValue );
   117         IMPORT_C void SetValueL( const TDesC8& aValue );
       
   118         
       
   119         /**
       
   120         * Set attribute value.
       
   121         * 
       
   122         * @since S60 5.0
       
   123         * @param aValue Attribute ref value.
       
   124         */
       
   125         IMPORT_C void SetValueL( const TInt aValue );
   105         
   126         
   106         /**
   127         /**
   107         * Get the attributes name string pool index.
   128         * Get the attributes name string pool index.
   108         *  
   129         *  
   109         * @since S60 5.0
   130         * @since S60 5.0
   125         * Documented in ChspsDomListItem::Size
   146         * Documented in ChspsDomListItem::Size
   126         * 
   147         * 
   127         * @since S60 5.0
   148         * @since S60 5.0
   128         * @return Name.
   149         * @return Name.
   129         */
   150         */
   130         IMPORT_C const TDesC8& Name();
   151         IMPORT_C const TDesC8& Name();        
   131         
       
   132        
   152        
   133         /**
   153         /**
   134         * Documented in ChspsDomListItem::Size.
   154         * Documented in ChspsDomListItem::Size.
   135         */
   155         */
   136         TInt Size() const;
   156         TInt Size() const;
   157         /**
   177         /**
   158         * By default Symbian 2nd phase constructor is private.
   178         * By default Symbian 2nd phase constructor is private.
   159         */
   179         */
   160         void ConstructL( const TDesC8& aName );
   180         void ConstructL( const TDesC8& aName );
   161 
   181 
       
   182         /**
       
   183         * By default Symbian 2nd phase constructor is private.
       
   184         */
       
   185         void ConstructL( const TInt aName );        
   162      
   186      
   163     private:    // Data
   187     private:    // Data
   164         //String pool to get string for references, not owned.
   188         //String pool to get string for references, not owned.
   165         ChspsDomStringPool& iStringPool;
   189         ChspsDomStringPool& iStringPool;
   166         
   190