|
1 /* |
|
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Name : sipproxyauthorizationheader.h |
|
16 * Part of : SIP Codec |
|
17 * Version : SIP/6.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 #ifndef CSIPPROXYAUTHORIZATIONHEADER_H |
|
24 #define CSIPPROXYAUTHORIZATIONHEADER_H |
|
25 |
|
26 // INCLUDES |
|
27 #include "sipauthorizationheaderbase.h" |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * @publishedAll |
|
32 * @released |
|
33 * |
|
34 * Class for SIP Proxy-Authorization-header manipulation. |
|
35 * |
|
36 * @lib sipcodec.lib |
|
37 */ |
|
38 class CSIPProxyAuthorizationHeader : public CSIPAuthorizationHeaderBase |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Constructs a CSIPProxyAuthorizationHeader |
|
44 * from textual representation of the header's value part. |
|
45 * @param aValue a value part of a "Proxy-Authenticate"-header |
|
46 * @return a new instance of CSIPProxyAuthorizationHeader |
|
47 */ |
|
48 IMPORT_C static CSIPProxyAuthorizationHeader* |
|
49 DecodeL(const TDesC8& aValue); |
|
50 |
|
51 /** |
|
52 * Creates a new instance of CSIPProxyAuthorizationHeader |
|
53 * @return a new instance of CSIPProxyAuthorizationHeader |
|
54 */ |
|
55 IMPORT_C static CSIPProxyAuthorizationHeader* |
|
56 NewL(RStringF aAuthScheme); |
|
57 |
|
58 /** |
|
59 * Creates a new instance of CSIPProxyAuthorizationHeader |
|
60 * @return a new instance of CSIPProxyAuthorizationHeader |
|
61 */ |
|
62 IMPORT_C static CSIPProxyAuthorizationHeader* |
|
63 NewLC(RStringF aAuthScheme); |
|
64 |
|
65 /** |
|
66 * Creates a deep-copy of a CSIPAuthorizationHeaderBase |
|
67 * @param aAuthenticateHeaderBase to be copied |
|
68 * @return a new instance of CSIPProxyAuthorizationHeader |
|
69 */ |
|
70 IMPORT_C static CSIPProxyAuthorizationHeader* |
|
71 NewL(const CSIPAuthorizationHeaderBase& aHeader); |
|
72 |
|
73 /** |
|
74 * Creates a deep-copy of a CSIPAuthorizationHeaderBase |
|
75 * @param aAuthenticateHeaderBase to be copied |
|
76 * @return a new instance of CSIPProxyAuthorizationHeader |
|
77 */ |
|
78 IMPORT_C static CSIPProxyAuthorizationHeader* |
|
79 NewLC(const CSIPAuthorizationHeaderBase& aHeader); |
|
80 |
|
81 /** |
|
82 * Destructor |
|
83 */ |
|
84 IMPORT_C ~CSIPProxyAuthorizationHeader(); |
|
85 |
|
86 public: // From CSIPHeaderBase |
|
87 |
|
88 /** |
|
89 * From CSIPHeaderBase ExternalizeSupported |
|
90 */ |
|
91 IMPORT_C TBool ExternalizeSupported() const; |
|
92 |
|
93 /** |
|
94 * From CSIPHeaderBase CloneL |
|
95 */ |
|
96 IMPORT_C CSIPHeaderBase* CloneL() const; |
|
97 |
|
98 /** |
|
99 * From CSIPHeaderBase Name |
|
100 */ |
|
101 IMPORT_C RStringF Name() const; |
|
102 |
|
103 public: // New functions, for internal use |
|
104 |
|
105 /** |
|
106 * @internalComponent |
|
107 */ |
|
108 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue); |
|
109 |
|
110 /** |
|
111 * @internalComponent |
|
112 */ |
|
113 static CSIPHeaderBase* InternalizeValueL(RReadStream& aReadStream); |
|
114 |
|
115 private: // Constructors |
|
116 |
|
117 CSIPProxyAuthorizationHeader(); |
|
118 |
|
119 private: // From CSIPHeaderBase |
|
120 |
|
121 void ExternalizeValueL(RWriteStream& aWriteStream) const; |
|
122 |
|
123 private: // For testing purposes |
|
124 #ifdef CPPUNIT_TEST |
|
125 friend class CSIPProxyAuthorizationHeaderTest; |
|
126 #endif |
|
127 }; |
|
128 |
|
129 #endif // CSIPPROXYAUTHORIZATIONHEADER_H |
|
130 |
|
131 // End of File |