|
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 : CancelUAS.h |
|
16 * Part of : TransactionUser |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 |
|
29 #ifndef CANCELUAS_H |
|
30 #define CANCELUAS_H |
|
31 |
|
32 // INCLUDES |
|
33 #include "NormalUAS.h" |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class RStringF; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /* |
|
41 * This class represents a CANCEL UserAgent server. It is created for handling |
|
42 * a CANCEL request received from network and it sends a final response back to |
|
43 * remote endpoint without passing the CANCEL to upper layer. |
|
44 */ |
|
45 class CCancelUAS : public CNormalUAS |
|
46 { |
|
47 public: |
|
48 static CCancelUAS* NewL(CUserAgentCreateParams& aParams, |
|
49 MSipConnectionMgr& aConnectionMgr, |
|
50 MSIPRequestRouter& aRouter, |
|
51 MSipDialogs& aDialogs); |
|
52 |
|
53 /** |
|
54 * CANCEL has been received from network. |
|
55 * |
|
56 * @pre aCancel != NULL |
|
57 * @post |
|
58 * |
|
59 * @see |
|
60 * |
|
61 * @param aCancel CANCEL request, ownership is transferred |
|
62 * @param aFinalRespSent State which UAS will enter |
|
63 */ |
|
64 void CancelReceivedL(CSIPRequest* aCancel, |
|
65 const CUserAgentState& aFinalRespSent); |
|
66 |
|
67 static CCancelUAS& Ptr(CUserAgent& aUserAgent); |
|
68 |
|
69 private: |
|
70 CCancelUAS(CUserAgentCreateParams& aParams, |
|
71 MSipDialogs& aDialogs, |
|
72 MSIPRequestRouter& aRouter); |
|
73 |
|
74 //uses CreateTransactionL of CNormalUAS |
|
75 |
|
76 void ConstructL(MSipConnectionMgr& aConnectionMgr); |
|
77 |
|
78 /** |
|
79 * Sends 200 response. |
|
80 * |
|
81 * @pre |
|
82 * @post |
|
83 * |
|
84 * @see |
|
85 * |
|
86 * @param aFinalRespSent State which UAS will enter. |
|
87 * @param aToTag To tag |
|
88 */ |
|
89 void Send200L(const CUserAgentState& aFinalRespSent, RStringF aToTag); |
|
90 }; |
|
91 |
|
92 #endif // end of CANCELUAS_H |
|
93 |
|
94 // End of File |