epoc32/include/mw/sipauthenticateheaderbase.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h) This is the epoc32/include tree with the "platform" subtrees removed, and all but a selected few mbg and rsg files removed.

/*
* Copyright (c) 2006-2009 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:
* Name          : sipauthenticateheaderbase.h
* Part of       : SIP Codec
* Version       : SIP/5.0 
*
*/



#ifndef CSIPAUTHENTICATEHEADERBASE_H
#define CSIPAUTHENTICATEHEADERBASE_H

//  INCLUDES
#include "sipauthheaderbase.h"

// FORWARD DECLARATIONS
class CSIPAuthenticateHeaderParams;

// CLASS DECLARATION
/**
* @publishedAll
* @released
*
* A base class for SIP Proxy-Authenticate- and WWW-Authenticate-headers
*
* @lib sipcodec.lib
*/
class CSIPAuthenticateHeaderBase : public CSIPAuthHeaderBase
	{
	public: // Constructors and destructor

		/**
		* Destructor.
		*/
		IMPORT_C virtual ~CSIPAuthenticateHeaderBase();


	public: // New functions

		/**
		* Check whether a qop-value in qop-options is present. 
		* @param aQopValue the qop-value
		* @return ETrue if present, otherwise EFalse. 
		*/
		IMPORT_C TBool HasQopValueL(const TDesC8& aQopValue) const;

	public: // From CSIPHeaderBase

		/**
		* From CSIPHeaderBase ExternalizeSupported
		*/
		IMPORT_C virtual TBool ExternalizeSupported() const;
		
	protected: // Constructors

		CSIPAuthenticateHeaderBase();
		void ConstructL();
		void ConstructL(const CSIPAuthenticateHeaderBase& aHeader);

	protected: // From CSIPHeaderBase

		void ExternalizeValueL(RWriteStream& aWriteStream) const;

	protected: // From CSIPAuthBase

		const CSIPParamContainerBase& Params() const;
		CSIPParamContainerBase& Params();

	protected: // New functions

		void DoInternalizeValueL(RReadStream& aReadStream);

	protected: // Data

		CSIPAuthenticateHeaderParams* iParams;
	};

#endif // CSIPAUTHENTICATEHEADERBASE_H

// End of File