webservices/wsstar/wsstarmessagehandlers/inc/wsstarpassportheaderinbound.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 07 Jan 2010 16:19:19 +0200
changeset 0 62f9d29f7211
permissions -rw-r--r--
Revision: 200951 Kit: 201001

/*
* Copyright (c) 2006-2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:    Header declaration
*
*/




//Co-Branding CR
#ifndef WSSTAR_PASSPORT_HEADER_INBOUND_H
#define WSSTAR_PASSPORT_HEADER_INBOUND_H

#include <e32std.h>


// FORWARD DECLARATIONS

// CONSTANTS


// INCLUDES
#include "SenBaseFragment.h"

#include "senmessagehandler.h"
#include "wsstarmessagehandlerscons.h"
#include "wsstarmessagecontext.h"
#include "SenSoapEnvelope.h"


const TInt KStateParsingMainBrandID = 601;
const TInt KStateParsingBrandIDList = 603;
const TInt KStateParsingIsWinLiveUser = 605;
const TInt KStateParsingCID = 607;

/**
 * Class:       
 *
 * Description: An implementation of the CWSStarHandler definition. This is concrete
 * class, instance of which ECOM framework gives to ECOM clients.
 */
class CWSStarPassportHeaderInbound : public CSenBaseFragment
    {
public:
    /**
     * Function:    NewL
     *
     * Description: Create instance of concrete implementation. Note that ECOM
     *              interface implementations can only have two signatures for
     *              NewL:
     *               - NewL without parameters (used here)
     *               - NewL with TAny* pointer, which may provide some client
     *                 data
     *
     * Returns:    Instance of this class.
     *
     * Note:       The interface, which is abstract base class of this
     *             implementation, also provides NewL method. Normally abstract
     *             classes do not provide NewL, because they cannot create
     *             instances of themselves.
     */
    static CWSStarPassportHeaderInbound* NewL();
    static CWSStarPassportHeaderInbound* NewLC();


private:
    // From CBaseFragment
    virtual void StartElementL(const TDesC8& aNsUri,
                               const TDesC8& aLocalName,
                               const TDesC8& aQName,
                               const RAttributeArray& aAttributes);
    
    virtual void EndElementL(const TDesC8& aNsUri,
                             const TDesC8& aLocalName,
                             const TDesC8& aQName);

    
public: // destructor
    virtual ~CWSStarPassportHeaderInbound();


protected:
    /**
     * Function:   CWSStarHandlerAddressingInbound
     *
     * Discussion: Perform the first phase of two phase construction
     */
    CWSStarPassportHeaderInbound();

    /**
     * Function:   ConstructL
     *
     * Discussion: Perform the second phase construction of a
     *             CImplementationClassPlus object.
     */
    void ConstructL();

public:
    TInt SetMessageContext(MSenMessageContext& aCtx);

private:

//data
    MSenMessageContext* iMessageContext; //not owned   
    CSenElement* ipBrandIdListElem; //owned
    };

#endif // WSSTAR_PASSPORT_HEADER_INBOUND_H