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 : sipwwwauthenticateheader.h
23 #ifndef CSIPWWWAUTHENTICATEHEADER_H
24 #define CSIPWWWAUTHENTICATEHEADER_H
27 #include "sipauthenticateheaderbase.h"
28 #include "_sipcodecdefs.h"
35 * Class for SIP WWW-Authenticate-header manipulation.
39 class CSIPWWWAuthenticateHeader : public CSIPAuthenticateHeaderBase
41 public: // Constructors and destructor
44 * Constructs a CSIPWWWAuthenticateHeader from textual representation
45 * of the header's value part.
46 * @param aValue a value part of a "WWW-Authenticate"-header
47 * @return a new instance of CSIPWWWAuthenticateHeader
49 IMPORT_C static CSIPWWWAuthenticateHeader*
50 DecodeL(const TDesC8& aValue);
53 * Creates a new instance of CSIPWWWAuthenticateHeader
54 * @return a new instance of CSIPWWWAuthenticateHeader
56 IMPORT_C static CSIPWWWAuthenticateHeader*
57 NewL(RStringF aAuthScheme);
60 * Creates a new instance of CSIPWWWAuthenticateHeader
61 * @return a new instance of CSIPWWWAuthenticateHeader
63 IMPORT_C static CSIPWWWAuthenticateHeader*
64 NewLC(RStringF aAuthScheme);
69 IMPORT_C ~CSIPWWWAuthenticateHeader();
71 public: // From CSIPHeaderBase
74 * From CSIPHeaderBase CloneL
76 IMPORT_C CSIPHeaderBase* CloneL() const;
79 * From CSIPHeaderBase Name
81 IMPORT_C RStringF Name() const;
83 public: // New functions, for internal use
85 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
86 static CSIPHeaderBase* InternalizeValueL(RReadStream& aReadStream);
88 private: // Constructors
90 CSIPWWWAuthenticateHeader();
92 private: // For testing purposes
94 UNIT_TEST(CSIPWWWAuthenticateHeaderTest)
97 #endif // CSIPWWWAUTHENTICATEHEADER_H