idlehomescreen/inc/xndomattribute.h
changeset 2 08c6ee43b396
parent 0 f72a12da539e
equal deleted inserted replaced
1:5315654608de 2:08c6ee43b396
    45         /**
    45         /**
    46         * Two-phased constructor 8 bit.
    46         * Two-phased constructor 8 bit.
    47         */
    47         */
    48         IMPORT_C static CXnDomAttribute* NewL( 
    48         IMPORT_C static CXnDomAttribute* NewL( 
    49             const TDesC8& aName, 
    49             const TDesC8& aName, 
    50             CXnDomStringPool& aStringPool );
    50             CXnDomStringPool* aStringPool );
    51         
    51         
    52         /**
    52         /**
    53         * Two-phased stream constructor.
    53         * Two-phased stream constructor.
    54         */
    54         */
    55         static CXnDomAttribute* NewL( 
    55         static CXnDomAttribute* NewL( 
    56             RReadStream& aStream, 
    56             RReadStream& aStream, 
    57             CXnDomStringPool& aStringPool );
    57             CXnDomStringPool* aStringPool );
    58         /**
    58         /**
    59         * Destructor.
    59         * Destructor.
    60         */
    60         */
    61         IMPORT_C virtual ~CXnDomAttribute();
    61         IMPORT_C virtual ~CXnDomAttribute();
    62 
    62 
   101         * Get the attributes value string pool index. 
   101         * Get the attributes value string pool index. 
   102         * @since Series 60 3.1
   102         * @since Series 60 3.1
   103         * @return String pool index.
   103         * @return String pool index.
   104         */
   104         */
   105         IMPORT_C TInt16 ValueStringPoolIndex()const;
   105         IMPORT_C TInt16 ValueStringPoolIndex()const;
       
   106         
       
   107         /**
       
   108          * Swap used string pool.
       
   109          * 
       
   110          * @param aStringPool   New string pool to be used.
       
   111          *                      Ownership not transferred!
       
   112          */
       
   113         IMPORT_C void SwapStringPoolL( CXnDomStringPool* aStringPool );        
   106          
   114          
   107     public: //From CXnDomListItem
   115     public: //From CXnDomListItem
   108         
   116         
   109         /**
   117         /**
   110         * Documented in CXnDomListItem::Size
   118         * Documented in CXnDomListItem::Size
   131     private:
   139     private:
   132         
   140         
   133         /**
   141         /**
   134         * C++ default constructor.
   142         * C++ default constructor.
   135         */
   143         */
   136         CXnDomAttribute( CXnDomStringPool& aStringPool );
   144         CXnDomAttribute( CXnDomStringPool* aStringPool );
   137             
   145             
   138         /**
   146         /**
   139         * By default Symbian 2nd phase constructor is private.
   147         * By default Symbian 2nd phase constructor is private.
   140         */
   148         */
   141         void ConstructL( const TDesC8& aName );
   149         void ConstructL( const TDesC8& aName );
   142 
   150 
   143      
   151      
   144     private:    // Data
   152     private:    // Data
   145         //String pool to get string for references, not owned
   153         //String pool to get string for references, not owned
   146         CXnDomStringPool& iStringPool;
   154         CXnDomStringPool* iStringPool;
   147         
   155         
   148         //Attribute name reference
   156         //Attribute name reference
   149         TInt16         iNameRef;
   157         TInt16         iNameRef;
   150         
   158         
   151         //Attribute value reference
   159         //Attribute value reference