|
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 : NormalUAC.h |
|
16 * Part of : TransactionUser |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 #ifndef NORMALUAC_H |
|
29 #define NORMALUAC_H |
|
30 |
|
31 // INCLUDES |
|
32 #include "UserAgentClient.h" |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 class CNormalUAC : public CUserAgentClient |
|
39 { |
|
40 public: // Constructor and destructor |
|
41 |
|
42 static CNormalUAC* NewL(CUserAgentCreateParams& aParams, |
|
43 MSipConnectionMgr& aConnectionMgr, |
|
44 MSipUriResolver& aResolver, |
|
45 CSIPSec& aSIPSec, |
|
46 TUint32 aCSeqNumber); |
|
47 |
|
48 ~CNormalUAC() {} |
|
49 |
|
50 public: // From CUserAgentClient |
|
51 |
|
52 void ReceiveResponseL(CSIPResponse* aResp, |
|
53 const CUserAgentState& aResolve, |
|
54 const CUserAgentState& aWaitResponse, |
|
55 const CUserAgentState& aWaitAckFromApp, |
|
56 const CUserAgentState& aWaitTransactionToEnd); |
|
57 |
|
58 /** |
|
59 * The old transaction will not send the request anymore and does not need |
|
60 * to use NormalUAC's CTransmitter. The possibly pending send request made |
|
61 * by the old CNormalClientTransaction is canceled. |
|
62 * |
|
63 * @pre |
|
64 * @post |
|
65 * |
|
66 * @see |
|
67 * |
|
68 * @param aNewTransactionId TransactionId that is given to the old |
|
69 * transaction. |
|
70 */ |
|
71 void PrepareTxForNewRequestL(TTransactionId& aNewTransactionId); |
|
72 |
|
73 void CreateTransactionL(); |
|
74 |
|
75 public: // New functions |
|
76 |
|
77 static CNormalUAC& Ptr(CUserAgent& aUserAgent); |
|
78 |
|
79 protected: |
|
80 |
|
81 CNormalUAC(CUserAgentCreateParams& aParams, |
|
82 MSipUriResolver& aResolver, |
|
83 CSIPSec& aSIPSec, |
|
84 TUint32 aCSeqNumber); |
|
85 |
|
86 private: // For testing purposes |
|
87 |
|
88 #ifdef CPPUNIT_TEST |
|
89 friend class CNormalUAC_WaitResponse_Test; |
|
90 #endif |
|
91 }; |
|
92 |
|
93 #endif // end of NORMALUAC_H |
|
94 |
|
95 // End of File |