|
1 |
|
2 /* |
|
3 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Initial Contributors: |
|
11 * Nokia Corporation - initial contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef _SIPEXSIPSERVERESTABLISHINGSTATE_H_ |
|
22 #define _SIPEXSIPSERVERESTABLISHINGSTATE_H_ |
|
23 |
|
24 // INCLUDES |
|
25 #include "SIPExSIPStateBase.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CSIPExSIPEngine; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * Reacts to events that are possible in |
|
33 * "ClientOffering" state. |
|
34 */ |
|
35 class CSIPExSIPServerEstablishingState: public CSIPExSIPStateBase |
|
36 { |
|
37 public:// Constructors and destructor |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 */ |
|
41 IMPORT_C static CSIPExSIPServerEstablishingState* NewL(); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 IMPORT_C virtual ~CSIPExSIPServerEstablishingState(); |
|
47 |
|
48 public://new functions |
|
49 /** |
|
50 * Links the states |
|
51 * @param aEstablishedState SIP Session is established. |
|
52 * @param aTerminatedState Peer has declined the invite, SIP Session is terminated. |
|
53 */ |
|
54 void LinkStates( |
|
55 CSIPExSIPStateBase& aEstablishedState, |
|
56 CSIPExSIPStateBase& aTerminatedState ); |
|
57 |
|
58 public://functions from base class |
|
59 |
|
60 /** |
|
61 * AckReceivedL |
|
62 * ACK has been received. |
|
63 * @param aEngine Reference to Engine object. |
|
64 * @param aTransaction Contains response elements. |
|
65 */ |
|
66 void AckReceivedL( CSIPExSIPEngine& aEngine, |
|
67 CSIPServerTransaction& aTransaction ); |
|
68 |
|
69 |
|
70 /** |
|
71 * ByeReceivedL |
|
72 * BYE has been received. |
|
73 * @param aEngine Reference to Engine object. |
|
74 * @param aTransaction Contains response elements. |
|
75 */ |
|
76 void ByeReceivedL( CSIPExSIPEngine& aEngine, |
|
77 CSIPServerTransaction& aTransaction ); |
|
78 |
|
79 /** |
|
80 * CancelReceivedL |
|
81 * CANCEL has been received. |
|
82 * @param aEngine Reference to Engine object. |
|
83 * @param aTransaction Contains response elements. |
|
84 */ |
|
85 void CancelReceivedL( CSIPExSIPEngine& aEngine, |
|
86 CSIPClientTransaction& aTransaction ); |
|
87 |
|
88 |
|
89 private: |
|
90 /** |
|
91 * C++ default constructor. |
|
92 */ |
|
93 CSIPExSIPServerEstablishingState(); |
|
94 |
|
95 private://data members |
|
96 CSIPExSIPStateBase* iEstablishedState; |
|
97 CSIPExSIPStateBase* iTerminatedState; |
|
98 }; |
|
99 |
|
100 #endif // _SIPEXSIPSERVERESTABLISHINGSTATE_H_ |
|
101 |