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