2 * Copyright (c) 2007-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 : sipproxyauthorizationheader.h
23 #ifndef CSIPPROXYAUTHORIZATIONHEADER_H
24 #define CSIPPROXYAUTHORIZATIONHEADER_H
27 #include "sipauthorizationheaderbase.h"
28 #include "_sipcodecdefs.h"
35 * Class for SIP Proxy-Authorization-header manipulation.
39 class CSIPProxyAuthorizationHeader : public CSIPAuthorizationHeaderBase
41 public: // Constructors and destructor
44 * Constructs a CSIPProxyAuthorizationHeader
45 * from textual representation of the header's value part.
46 * @param aValue a value part of a "Proxy-Authenticate"-header
47 * @return a new instance of CSIPProxyAuthorizationHeader
49 IMPORT_C static CSIPProxyAuthorizationHeader*
50 DecodeL(const TDesC8& aValue);
53 * Creates a new instance of CSIPProxyAuthorizationHeader
54 * @return a new instance of CSIPProxyAuthorizationHeader
56 IMPORT_C static CSIPProxyAuthorizationHeader*
57 NewL(RStringF aAuthScheme);
60 * Creates a new instance of CSIPProxyAuthorizationHeader
61 * @return a new instance of CSIPProxyAuthorizationHeader
63 IMPORT_C static CSIPProxyAuthorizationHeader*
64 NewLC(RStringF aAuthScheme);
67 * Creates a deep-copy of a CSIPAuthorizationHeaderBase
68 * @param aAuthenticateHeaderBase to be copied
69 * @return a new instance of CSIPProxyAuthorizationHeader
71 IMPORT_C static CSIPProxyAuthorizationHeader*
72 NewL(const CSIPAuthorizationHeaderBase& aHeader);
75 * Creates a deep-copy of a CSIPAuthorizationHeaderBase
76 * @param aAuthenticateHeaderBase to be copied
77 * @return a new instance of CSIPProxyAuthorizationHeader
79 IMPORT_C static CSIPProxyAuthorizationHeader*
80 NewLC(const CSIPAuthorizationHeaderBase& aHeader);
85 IMPORT_C ~CSIPProxyAuthorizationHeader();
87 public: // From CSIPHeaderBase
90 * From CSIPHeaderBase ExternalizeSupported
92 IMPORT_C TBool ExternalizeSupported() const;
95 * From CSIPHeaderBase CloneL
97 IMPORT_C CSIPHeaderBase* CloneL() const;
100 * From CSIPHeaderBase Name
102 IMPORT_C RStringF Name() const;
104 public: // New functions, for internal use
109 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
114 static CSIPHeaderBase* InternalizeValueL(RReadStream& aReadStream);
116 private: // Constructors
118 CSIPProxyAuthorizationHeader();
120 private: // From CSIPHeaderBase
122 void ExternalizeValueL(RWriteStream& aWriteStream) const;
124 private: // For testing purposes
126 UNIT_TEST(CSIPProxyAuthorizationHeaderTest)
129 #endif // CSIPPROXYAUTHORIZATIONHEADER_H