webservices/wsmessages/inc/sensoapmessagedom2.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:        CSenSoapMessageDom is an utility class offering capability to
       
    15 *                parse XML SOAP envelope and manipulation methods to alter its
       
    16 *                contents.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 #ifndef SEN_SOAP_MESSAGE_DOM2_H
       
    28 #define SEN_SOAP_MESSAGE_DOM2_H
       
    29 
       
    30 //  INCLUDES
       
    31 #include <SenWsSecurityHeader2.h>
       
    32 #include <SenSoapMessage2.h>
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 * CSenSoapMessage extends basic SOAP envelope functionality by
       
    38 * offering methods to set the security header and security token.
       
    39 * @lib SenUtils.lib
       
    40 * @since Series60 4.0
       
    41 */
       
    42 class CSenSoapMessageDom2 : public CSenSoapMessage2
       
    43     {
       
    44     public:  // Constructors and destructor
       
    45 
       
    46         /**
       
    47         * Two-phase constructor.
       
    48         */
       
    49         IMPORT_C static CSenSoapMessageDom2* NewL();
       
    50 
       
    51         /**
       
    52         * Two-phase constructor.
       
    53         */
       
    54         IMPORT_C static CSenSoapMessageDom2* NewLC();
       
    55 
       
    56         /**
       
    57         * Two-phase constructor.
       
    58         */
       
    59 	    IMPORT_C static CSenSoapMessageDom2* NewL(TSOAPVersion aVersion);
       
    60 
       
    61         /**
       
    62         * Two-phase constructor.
       
    63         */
       
    64 	    IMPORT_C static CSenSoapMessageDom2* NewLC(TSOAPVersion aVersion);
       
    65 
       
    66         /**
       
    67         * Two-phase constructor.
       
    68         */
       
    69         IMPORT_C static CSenSoapMessageDom2* NewL(TSOAPVersion aVersion,
       
    70                                                   const TDesC8& aSecurityNs);
       
    71 
       
    72         /**
       
    73         * Two-phase constructor.
       
    74         */
       
    75         IMPORT_C static CSenSoapMessageDom2* NewLC(TSOAPVersion aVersion,
       
    76                                                    const TDesC8& aSecurityNs);
       
    77 
       
    78         /**
       
    79         * Two-phase constructor.
       
    80         */
       
    81         IMPORT_C static CSenSoapMessageDom2* NewL(MSenMessageContext& aContext);
       
    82 
       
    83         /**
       
    84         * Two-phase constructor.
       
    85         */
       
    86         IMPORT_C static CSenSoapMessageDom2* NewLC(MSenMessageContext& aContext);
       
    87 
       
    88         /**
       
    89         * Two-phase constructor.
       
    90         */
       
    91 	    IMPORT_C static CSenSoapMessageDom2* NewL(MSenMessageContext& aContext,
       
    92 	                                              TSOAPVersion aVersion);
       
    93 
       
    94         /**
       
    95         * Two-phase constructor.
       
    96         */
       
    97 	    IMPORT_C static CSenSoapMessageDom2* NewLC(MSenMessageContext& aContext,
       
    98 	                                               TSOAPVersion aVersion);
       
    99 
       
   100         /**
       
   101         * Two-phase constructor.
       
   102         */
       
   103         IMPORT_C static CSenSoapMessageDom2* NewL(MSenMessageContext& aContext,
       
   104                                                   TSOAPVersion aVersion,
       
   105                                                   const TDesC8& aSecurityNs);
       
   106 
       
   107         /**
       
   108         * Two-phase constructor.
       
   109         */
       
   110         IMPORT_C static CSenSoapMessageDom2* NewLC(MSenMessageContext& aContext,
       
   111                                                    TSOAPVersion aVersion,
       
   112                                                    const TDesC8& aSecurityNs);
       
   113         /**
       
   114         * Two-phased copy constructor.
       
   115         */
       
   116         IMPORT_C static CSenSoapMessageDom2* NewL(CSenSoapMessageDom2& aMessage);
       
   117 
       
   118         /**
       
   119         * Two-phased copy constructor.
       
   120         */
       
   121         IMPORT_C static CSenSoapMessageDom2* NewLC(CSenSoapMessageDom2& aMessage);
       
   122 
       
   123         /**
       
   124         * Destructor.
       
   125         */
       
   126         IMPORT_C virtual ~CSenSoapMessageDom2();
       
   127 
       
   128     public: // From MSenMessage
       
   129         IMPORT_C virtual TClass Type();
       
   130         IMPORT_C virtual MSenMessage* CloneL();       
       
   131 
       
   132     protected:
       
   133 
       
   134         /**
       
   135          *  C++ default constructor.
       
   136          */
       
   137         IMPORT_C CSenSoapMessageDom2::CSenSoapMessageDom2();
       
   138 
       
   139         IMPORT_C CSenFragmentBase* CreateBodyFragmentL(const TDesC8& aNsUri,
       
   140                                                        const TDesC8& aLocalName,
       
   141                                                        const TDesC8& aPrefix,
       
   142                                                        const RAttributeArray& aAttributes,
       
   143                                                        TXmlEngElement& aParent,
       
   144                                                        RSenDocument& aOwnerDocument);
       
   145     };
       
   146 
       
   147 #endif // SEN_SOAP_MESSAGE_DOM2_H
       
   148 
       
   149 // End of File
       
   150 
       
   151