webservices/wshttpchanneltransportplugin/inc/senmtomtxnstate.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 
       
    26 
       
    27 
       
    28 #ifndef WSF_MTOM_TXN_STATE_H
       
    29 #define WSF_MTOM_TXN_STATE_H
       
    30 
       
    31 //  INCLUDES
       
    32 #include "sentxnstate.h"
       
    33 #include "senmultipartutils.h"
       
    34 #include "senmultiparttxnstate.h"
       
    35 // CONSTANTS
       
    36 
       
    37 _LIT8(KDownloadFolder, "SenBlobResponses"); // folder where should be created Blobs from Response
       
    38 	
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 
       
    42 // CLASS DECLARATION
       
    43 /**
       
    44  * Class for working with MTOM messages - creates MTOM request and parse MTOM response
       
    45  * Implements the MHTTPDataSupplier interface.
       
    46  *
       
    47  */
       
    48 class CSenMtomTxnState : public CSenMultiPartTxnState
       
    49     {
       
    50 public:  // Constructors and destructor
       
    51 
       
    52     /**
       
    53      * Two-phased constructor.
       
    54      *
       
    55      */
       
    56     static CSenMtomTxnState* NewLC(MSenResponseObserver& aObserver,
       
    57                              	   const TDesC8* aUri,
       
    58                                	   const TDesC8& aSoapAction,
       
    59                                	   CSenSoapEnvelope2& aSoapEnvelope2);
       
    60 
       
    61     /**
       
    62      * Two-phased constructor.
       
    63      *
       
    64      */
       
    65     static CSenMtomTxnState* NewL(MSenResponseObserver& aObserver,
       
    66                               	  const TDesC8* aUri,
       
    67                               	  const TDesC8& aSoapAction,
       
    68                               	  CSenSoapEnvelope2& aSoapEnvelope2);
       
    69 
       
    70 
       
    71 
       
    72     // Functions from base classes
       
    73 
       
    74 
       
    75 
       
    76     
       
    77     /**
       
    78      * From CSenTxnState
       
    79      * Creates and sets ContentType in MTOM envelope header
       
    80      * @param aSession
       
    81      * @param aHeaders
       
    82      */
       
    83     void SetContentTypeHeaderL(const RHTTPSession aSession, RHTTPHeaders aHeaders);
       
    84     void MessageL();
       
    85     
       
    86 private:
       
    87 
       
    88     /**
       
    89      * C++ default constructor.
       
    90      *
       
    91      */
       
    92     CSenMtomTxnState(MSenResponseObserver& aObserver);
       
    93 
       
    94     /**
       
    95      * 2nd phase constructor.
       
    96      *
       
    97      */
       
    98     void ConstructL(const TDesC8* aUri,
       
    99                     const TDesC8& aSoapAction,
       
   100                     CSenSoapEnvelope2& aSoapEnvelope2);
       
   101     };
       
   102 
       
   103 #endif // WSF_MTOM_TXN_STATE_H
       
   104 
       
   105 // End of File