|
1 /* |
|
2 * Copyright (c) 2005-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 : CSIPURIParams.h |
|
16 * Part of : SIP Codec |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 |
|
29 #ifndef CSIPURIPARAMS_H |
|
30 #define CSIPURIPARAMS_H |
|
31 |
|
32 #include "CSIPParamContainerBase.h" |
|
33 |
|
34 |
|
35 class CSIPURIParams : public CSIPParamContainerBase |
|
36 { |
|
37 public: |
|
38 |
|
39 static CSIPURIParams* DecodeL (const TDesC8& aValue, |
|
40 TBool aSIPSURI); |
|
41 |
|
42 static CSIPURIParams* NewL (const CSIPURIParams& aParams, |
|
43 TBool aSIPSURI); |
|
44 |
|
45 static CSIPURIParams* NewLC (const CSIPURIParams& aParams, |
|
46 TBool aSIPSURI); |
|
47 |
|
48 CSIPURIParams (TBool aSIPSURI); |
|
49 ~CSIPURIParams (); |
|
50 |
|
51 TBool operator==(const CSIPURIParams& aParams) const; |
|
52 |
|
53 private: // From CSIPParamContainerBase |
|
54 |
|
55 void CheckAndUpdateParamL (RStringF aName, |
|
56 TBool aHasValue, |
|
57 TPtrC8& aValue) const; |
|
58 |
|
59 private: // Checking functions |
|
60 |
|
61 TBool CheckOtherParam (RStringF aName, |
|
62 TBool aHasValue, |
|
63 const TDesC8& aValue) const; |
|
64 |
|
65 TBool CheckSIPURIParamToken (const TDesC8& aParamToken) const; |
|
66 |
|
67 private: // Data |
|
68 |
|
69 TBool iSIPSURI; |
|
70 |
|
71 private: // For testing purposes |
|
72 |
|
73 UNIT_TEST(CSIPURIParamsTest) |
|
74 }; |
|
75 |
|
76 #endif // CSIPURIPARAMS_H |
|
77 |
|
78 // End of File |