webservices/wsstar/wsstarmessagehandlers/inc/wsstaraddressingheaderinbound.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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 WSSTAR_ADDRESSING_HEADER_INBOUND_H
       
    26 #define WSSTAR_ADDRESSING_HEADER_INBOUND_H
       
    27 
       
    28 #include <e32std.h>
       
    29 
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 
       
    33 // CONSTANTS
       
    34 
       
    35 
       
    36 // INCLUDES
       
    37 #include "SenBaseFragment.h"
       
    38 
       
    39 #include "senmessagehandler.h"
       
    40 #include "wsstarmessagehandlerscons.h"
       
    41 #include "wsstarmessagecontext.h"
       
    42 #include "SenSoapEnvelope.h"
       
    43 #include "uri8.h"
       
    44 
       
    45 
       
    46 const TInt KStateParsingReplyTo = 501;
       
    47 const TInt KStateParsingFaultTo = 503;
       
    48 const TInt KStateParsingFrom = 505;
       
    49 
       
    50 /**
       
    51  * Class:       
       
    52  *
       
    53  * Description: An implementation of the CWSStarHandler definition. This is concrete
       
    54  * class, instance of which ECOM framework gives to ECOM clients.
       
    55  */
       
    56 class CWSStarAddressingHeaderInbound : public CSenBaseFragment//, public MWSStarHandlerAddressingHeader
       
    57     {
       
    58 public:
       
    59     /**
       
    60      * Function:    NewL
       
    61      *
       
    62      * Description: Create instance of concrete implementation. Note that ECOM
       
    63      *              interface implementations can only have two signatures for
       
    64      *              NewL:
       
    65      *               - NewL without parameters (used here)
       
    66      *               - NewL with TAny* pointer, which may provide some client
       
    67      *                 data
       
    68      *
       
    69      * Returns:    Instance of this class.
       
    70      *
       
    71      * Note:       The interface, which is abstract base class of this
       
    72      *             implementation, also provides NewL method. Normally abstract
       
    73      *             classes do not provide NewL, because they cannot create
       
    74      *             instances of themselves.
       
    75      */
       
    76     static CWSStarAddressingHeaderInbound* NewL(const TDesC8* aVersion);
       
    77     static CWSStarAddressingHeaderInbound* NewLC(const TDesC8* aVersion);
       
    78 
       
    79 
       
    80 private:
       
    81     // From CBaseFragment
       
    82     virtual void StartElementL(const TDesC8& aNsUri,
       
    83                                const TDesC8& aLocalName,
       
    84                                const TDesC8& aQName,
       
    85                                const RAttributeArray& aAttributes);
       
    86     
       
    87     virtual void EndElementL(const TDesC8& aNsUri,
       
    88                              const TDesC8& aLocalName,
       
    89                              const TDesC8& aQName);
       
    90 
       
    91     
       
    92 public: // destructor
       
    93     virtual ~CWSStarAddressingHeaderInbound();
       
    94 
       
    95 
       
    96 protected:
       
    97     /**
       
    98      * Function:   CWSStarHandlerAddressingInbound
       
    99      *
       
   100      * Discussion: Perform the first phase of two phase construction
       
   101      */
       
   102     CWSStarAddressingHeaderInbound();
       
   103 
       
   104     /**
       
   105      * Function:   ConstructL
       
   106      *
       
   107      * Discussion: Perform the second phase construction of a
       
   108      *             CImplementationClassPlus object.
       
   109      */
       
   110     void ConstructL(const TDesC8* aVersion);
       
   111 
       
   112 public:
       
   113     TInt SetMessageContext(MSenMessageContext& aCtx);
       
   114     const TDesC8* Version() const;
       
   115 
       
   116 private:
       
   117 
       
   118 //data
       
   119     MSenMessageContext* iMessageContext; //not owned    
       
   120     const TDesC8* iVersion;
       
   121     HBufC8* iVersionBuf;
       
   122     TBool iDeviceAddress;
       
   123     };
       
   124 
       
   125 #endif // WSSTAR_ADDRESSING_HEADER_INBOUND_H
       
   126