realtimenetprots/sipfw/SIP/Codec/api/sipauthenticateheaderbase.h
changeset 0 307788aac0a8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/realtimenetprots/sipfw/SIP/Codec/api/sipauthenticateheaderbase.h	Tue Feb 02 01:03:15 2010 +0200
@@ -0,0 +1,93 @@
+/*
+* 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