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 "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.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"
34 * Class for SIP Proxy-Authenticate-header manipulation.
38 class CSIPProxyAuthenticateHeader : public CSIPAuthenticateHeaderBase
40 public: // Constructors and destructor
43 * Constructs a CSIPProxyAuthenticateHeader from textual representation
44 * of the header's value part.
45 * @param aValue a value part of a "Proxy-Authenticate"-header
46 * @return a new instance of CSIPProxyAuthenticateHeader
48 IMPORT_C static CSIPProxyAuthenticateHeader*
49 DecodeL(const TDesC8& aValue);
52 * Creates a new instance of CSIPProxyAuthenticateHeader
53 * @return a new instance of CSIPProxyAuthenticateHeader
55 IMPORT_C static CSIPProxyAuthenticateHeader*
56 NewL(RStringF aAuthScheme);
59 * Creates a new instance of CSIPProxyAuthenticateHeader
60 * @return a new instance of CSIPProxyAuthenticateHeader
62 IMPORT_C static CSIPProxyAuthenticateHeader*
63 NewLC(RStringF aAuthScheme);
68 IMPORT_C ~CSIPProxyAuthenticateHeader();
70 public: // From CSIPHeaderBase
73 * From CSIPHeaderBase CloneL
75 IMPORT_C CSIPHeaderBase* CloneL() const;
78 * From CSIPHeaderBase Name
80 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 CSIPProxyAuthenticateHeader();
92 private: // For testing purposes
94 friend class CSIPProxyAuthenticateHeaderTest;
98 #endif // CSIPPROXYAUTHENTICATEHEADER_H