2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Name : sipauthenticateheaderbase.h
23 #ifndef CSIPAUTHENTICATEHEADERBASE_H
24 #define CSIPAUTHENTICATEHEADERBASE_H
27 #include "sipauthheaderbase.h"
28 #include "_sipcodecdefs.h"
30 // FORWARD DECLARATIONS
31 class CSIPAuthenticateHeaderParams;
38 * A base class for SIP Proxy-Authenticate- and WWW-Authenticate-headers
42 class CSIPAuthenticateHeaderBase : public CSIPAuthHeaderBase
44 public: // Constructors and destructor
49 IMPORT_C virtual ~CSIPAuthenticateHeaderBase();
52 public: // New functions
55 * Check whether a qop-value in qop-options is present.
56 * @param aQopValue the qop-value
57 * @return ETrue if present, otherwise EFalse.
59 IMPORT_C TBool HasQopValueL(const TDesC8& aQopValue) const;
61 public: // From CSIPHeaderBase
64 * From CSIPHeaderBase ExternalizeSupported
66 IMPORT_C virtual TBool ExternalizeSupported() const;
68 protected: // Constructors
70 CSIPAuthenticateHeaderBase();
72 void ConstructL(const CSIPAuthenticateHeaderBase& aHeader);
74 protected: // From CSIPHeaderBase
76 void ExternalizeValueL(RWriteStream& aWriteStream) const;
78 protected: // From CSIPAuthBase
80 const CSIPParamContainerBase& Params() const;
81 CSIPParamContainerBase& Params();
83 protected: // New functions
85 void DoInternalizeValueL(RReadStream& aReadStream);
89 CSIPAuthenticateHeaderParams* iParams;
92 #endif // CSIPAUTHENTICATEHEADERBASE_H