webservices/wsutils/inc/senpropertiesfragment.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef SEN_PROPERTIES_FRAGMENT_H
       
    26 #define SEN_PROPERTIES_FRAGMENT_H
       
    27 
       
    28 //  INCLUDES
       
    29 #include <SenDomFragment.h>
       
    30 
       
    31 class CSenPropertiesFragment : public CSenDomFragment
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         /**
       
    36         * Basic contructor. Should be used only for parsing new fragments etc. 
       
    37         * Constructing DomFragments for other use should be done with at least 
       
    38         * localname parameter.
       
    39         * @since Series60
       
    40         */
       
    41         IMPORT_C static CSenPropertiesFragment* NewL(
       
    42                                             RStringPool *ipStringPool = NULL);
       
    43 
       
    44         /**
       
    45         * Basic constructor.
       
    46         * @since Series60
       
    47         * @param aElement Element to copy construction data from.
       
    48         */
       
    49         IMPORT_C static CSenPropertiesFragment* NewL(
       
    50                                             const CSenElement& aElement,
       
    51                                             RStringPool *ipStringPool = NULL);
       
    52 
       
    53         /**
       
    54         * Basic constructor.
       
    55         * @since Series60
       
    56         * @param aLocalName is the XML localname of this fragment
       
    57         * Leave codes:  
       
    58         *       KErrSenInvalidCharacters if aLocalName contains
       
    59         *       illegal characters.     
       
    60         *       KErrSenZeroLengthDescriptor if aLocalName is zero length.
       
    61         */
       
    62         IMPORT_C static CSenPropertiesFragment* NewL(
       
    63                                             const TDesC8& aLocalName,
       
    64                                             RStringPool *ipStringPool = NULL);
       
    65 
       
    66         /**
       
    67         * Basic constructor.
       
    68         * @since Series60
       
    69         * @param aNsUri is the XML namespace user of this fragment
       
    70         * @param aLocalName is the XML localname of this fragment
       
    71         * Leave codes:  
       
    72         *       KErrSenInvalidCharacters if aLocalName contains
       
    73         *       illegal characters.     
       
    74         *       KErrSenZeroLengthDescriptor if aLocalName is zero length.
       
    75         */
       
    76         IMPORT_C static CSenPropertiesFragment* NewL(
       
    77                                             const TDesC8& aNsUri,
       
    78                                             const TDesC8& aLocalName,
       
    79                                             RStringPool *ipStringPool = NULL);
       
    80 
       
    81         /**
       
    82         * Basic constructor.
       
    83         * @since Series60
       
    84         * @param aNsUri is the XML namespace user of this fragment
       
    85         * @param aLocalName is the XML localname of this fragment
       
    86         * @param aQName is the XML qualifiedname of this fragment
       
    87         * Leave codes:  
       
    88         *       KErrSenInvalidCharacters if aLocalName or aQName contains
       
    89         *       illegal characters.     
       
    90         *       KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.
       
    91         */
       
    92         IMPORT_C static CSenPropertiesFragment* NewL(
       
    93                                             const TDesC8& aNsUri,
       
    94                                             const TDesC8& aLocalName,
       
    95                                             const TDesC8& aQName,
       
    96                                             RStringPool *ipStringPool = NULL);
       
    97 
       
    98         /**
       
    99         * Basic constructor.
       
   100         * @since Series60
       
   101         * @param aNsUri is the XML namespace of this fragment
       
   102         * @param aLocalName is the XML localname of this fragment
       
   103         * @param aQName is the qualifiedname of this fragment
       
   104         * @param aAttrs are the XML attributes of this fragment
       
   105         * Leave codes:  
       
   106         *       KErrSenInvalidCharacters if aLocalName or aQName contains
       
   107         *       illegal characters.     
       
   108         *       KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.
       
   109         */
       
   110         IMPORT_C static CSenPropertiesFragment* NewL(const TDesC8& aNsUri,
       
   111                                             const TDesC8& aLocalName,
       
   112                                             const TDesC8& aQName,
       
   113                                             const RAttributeArray& aAttrs,
       
   114                                             RStringPool *ipStringPool = NULL);
       
   115 
       
   116         /**
       
   117         * Basic constructor.
       
   118         * @since Series60
       
   119         * @param aNsUri is the XML namespace of this fragment
       
   120         * @param aLocalName is the XML localname of this fragment
       
   121         * @param aQName is the qualifiedname of this fragment
       
   122         * @param aAttrs are the XML attributes of this fragment
       
   123         * @param aParent is the parent XML element of this fragment
       
   124         * Leave codes:  
       
   125         *       KErrSenInvalidCharacters if aLocalName or aQName contains
       
   126         *       illegal characters.     
       
   127         *       KErrSenZeroLengthDescriptor if aLocalName or aQName is zero length.
       
   128         */
       
   129         IMPORT_C static CSenPropertiesFragment* NewL(const TDesC8& aNsUri,
       
   130                                             const TDesC8& aLocalName,
       
   131                                             const TDesC8& aQName,
       
   132                                             const RAttributeArray& aAttrs,
       
   133                                             CSenElement& aParent,
       
   134                                             RStringPool *ipStringPool = NULL);
       
   135 
       
   136 
       
   137         virtual void ExpandL(const TDesC8& aNsUri,
       
   138                                       const TDesC8& aLocalName,
       
   139                                       const TDesC8& aQName,
       
   140                                       const RAttributeArray& aAttrs);
       
   141 
       
   142         virtual void SetStringPool(RStringPool& aStringPool);
       
   143                            
       
   144         virtual RStringPool& StringPool();
       
   145         
       
   146         virtual TBool HasStringPool() const;
       
   147                                       
       
   148         /**
       
   149         * Destructor.
       
   150         */
       
   151         virtual ~CSenPropertiesFragment();
       
   152 
       
   153     protected:  
       
   154         
       
   155         /**
       
   156         * C++ default constructor.
       
   157         */
       
   158         CSenPropertiesFragment();
       
   159 
       
   160         void BaseConstructL(const CSenElement& aElement, 
       
   161                             RStringPool *ipStringPool);
       
   162 
       
   163         void BaseConstructL(const TDesC8& aLocalName,
       
   164                             RStringPool *ipStringPool);
       
   165 
       
   166         void BaseConstructL(const TDesC8& aNsUri,
       
   167                             const TDesC8& aLocalName,
       
   168                             RStringPool *ipStringPool);
       
   169 
       
   170         void BaseConstructL(const TDesC8& aNsUri,
       
   171                             const TDesC8& aLocalName,
       
   172                             const TDesC8& aQName,
       
   173                             RStringPool *ipStringPool);
       
   174 
       
   175         void BaseConstructL(const TDesC8& aNsUri,
       
   176                             const TDesC8& aLocalName,
       
   177                             const TDesC8& aQName,
       
   178                             const RAttributeArray& aAttrs,
       
   179                             RStringPool *ipStringPool);
       
   180 
       
   181         void BaseConstructL(const TDesC8& aNsUri,
       
   182                             const TDesC8& aLocalName,
       
   183                             const TDesC8& aQName,
       
   184                             const RAttributeArray& aAttrs,
       
   185                             CSenElement& aParent,
       
   186                             RStringPool *ipStringPool);
       
   187 
       
   188         void BaseConstructL(CSenXmlReader& aReader,
       
   189                             RStringPool *ipStringPool);
       
   190         
       
   191         virtual void StartElementL(const TDesC8& aNsUri,
       
   192                                    const TDesC8& aLocalName,
       
   193                                    const TDesC8& aQName,
       
   194                                    const RAttributeArray& aAttrs);
       
   195 
       
   196         virtual void EndElementL(const TDesC8& aNsUri,
       
   197                                           const TDesC8& aLocalName,
       
   198                                           const TDesC8& aQName);
       
   199 
       
   200         virtual void CharactersL(const TDesC8& aChars,TInt aStart,TInt aLength);
       
   201         
       
   202         virtual void AllocContentSaverL();     
       
   203         
       
   204     protected: // Data
       
   205         RStringPool* ipStringPool;
       
   206     };
       
   207 
       
   208 #endif //SEN_PROPERTIES_FRAGMENT_H
       
   209 
       
   210 // End of File
       
   211