|
1 /* |
|
2 * Copyright (c) 2002-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 : CTransactionHeaders.h |
|
16 * Part of : TransactionUser |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 |
|
29 #ifndef CTRANSACTIONHEADERS_H |
|
30 #define CTRANSACTIONHEADERS_H |
|
31 |
|
32 #include <e32base.h> |
|
33 |
|
34 #include "MTransactionHeaders.h" |
|
35 |
|
36 |
|
37 class CTransactionHeaders : |
|
38 public CBase, |
|
39 public MTransactionHeaders |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Creates a new instance. |
|
44 * |
|
45 * @pre |
|
46 * @post |
|
47 * |
|
48 * @see |
|
49 * |
|
50 * @param aRequestURI Request-URI, ownership isn't transferred |
|
51 * @param aTo To-header, ownership isn't transferred |
|
52 * @param aFrom From-header, ownership isn't transferred |
|
53 * @param aCallID CallID, ownership isn't transferred. |
|
54 * @param aCSeq CSeq number |
|
55 * @param aRecordRoute Record-route headers, ownership isn't transferred |
|
56 * @param aContact Contact headers, ownership isn't transferred |
|
57 * @return value New CTransactionHeaders object, ownership is transferred. |
|
58 */ |
|
59 static CTransactionHeaders* |
|
60 NewL(const CURIContainer* aRequestURI, |
|
61 const CSIPToHeader* aTo, |
|
62 const CSIPFromHeader* aFrom, |
|
63 const CSIPCallIDHeader* aCallID, |
|
64 TUint aCSeq, |
|
65 RPointerArray<CSIPRecordRouteHeader>& aRecordRoute, |
|
66 RPointerArray<CSIPContactHeader>& aContact); |
|
67 |
|
68 ~CTransactionHeaders(); |
|
69 |
|
70 CURIContainer* RequestURI(); |
|
71 |
|
72 CSIPToHeader* ToHeader(); |
|
73 |
|
74 CSIPFromHeader* FromHeader(); |
|
75 |
|
76 CSIPCallIDHeader* CallIDHeader(); |
|
77 |
|
78 TUint CSeqNumber() const; |
|
79 |
|
80 RPointerArray<CSIPRouteHeaderBase>* RecordRoute(); |
|
81 |
|
82 RPointerArray<CSIPContactHeader>* Contact(); |
|
83 |
|
84 private: |
|
85 CTransactionHeaders(TUint aCSeq); |
|
86 |
|
87 void ConstructL(const CURIContainer* aRequestURI, |
|
88 const CSIPToHeader* aTo, |
|
89 const CSIPFromHeader* aFrom, |
|
90 const CSIPCallIDHeader* aCallID, |
|
91 RPointerArray<CSIPRecordRouteHeader>& aRecordRoute, |
|
92 RPointerArray<CSIPContactHeader>& aContact); |
|
93 |
|
94 CURIContainer* iRequestURI; //can be NULL |
|
95 CSIPToHeader* iTo; //can be NULL |
|
96 CSIPFromHeader* iFrom; //can be NULL |
|
97 CSIPCallIDHeader* iCallID; //can be NULL |
|
98 |
|
99 //CSeq sequence number |
|
100 TUint iCSeq; |
|
101 |
|
102 RPointerArray<CSIPRouteHeaderBase>* iRecordRoute; |
|
103 RPointerArray<CSIPContactHeader>* iContact; |
|
104 |
|
105 |
|
106 #ifdef CPPUNIT_TEST |
|
107 friend class CTransactionUser_Test; |
|
108 #endif |
|
109 }; |
|
110 |
|
111 #endif // end of CTRANSACTIONHEADERS_H |
|
112 |
|
113 // End of File |