|
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 _SIPEXSIPCLIENTOFFERINGSTATE_H_ |
|
22 #define _SIPEXSIPCLIENTOFFERINGSTATE_H_ |
|
23 |
|
24 |
|
25 // INCLUDES |
|
26 #include "SIPExSIPStateBase.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CSIPExSIPEngine; |
|
30 |
|
31 |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * Reacts to events that are possible in |
|
35 * "ClientOffering" state. |
|
36 */ |
|
37 class CSIPExSIPClientOfferingState: public CSIPExSIPStateBase |
|
38 { |
|
39 public:// Constructors and destructor |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 IMPORT_C static CSIPExSIPClientOfferingState* NewL(); |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 IMPORT_C virtual ~CSIPExSIPClientOfferingState(); |
|
49 |
|
50 public://new functions |
|
51 /** |
|
52 * Links the states |
|
53 * @param aIdleState The "waiting for something to happen" state. |
|
54 * @param aEstablishedState SIP Session is established. |
|
55 * @param aTerminatedState Peer has declined the invite, SIP Session is terminated. |
|
56 */ |
|
57 void LinkStates( |
|
58 CSIPExSIPStateBase& aIdleState, |
|
59 CSIPExSIPStateBase& aEstablishedState, |
|
60 CSIPExSIPStateBase& aTerminatedState ); |
|
61 |
|
62 public://functions from base class |
|
63 |
|
64 /** |
|
65 * CancelInviteL |
|
66 * Cancel an INVITE sent previously. |
|
67 * @param aEngine Reference to Engine object. |
|
68 */ |
|
69 void CancelInviteL( CSIPExSIPEngine& aEngine ); |
|
70 |
|
71 |
|
72 /** |
|
73 * ResponseReceivedL |
|
74 * A SIP response has been received from the network. |
|
75 * @param aEngine Reference to Engine object. |
|
76 * @param aTransaction Contains response elements. |
|
77 */ |
|
78 void ResponseReceivedL( CSIPExSIPEngine& aEngine, |
|
79 CSIPClientTransaction& aTransaction ); |
|
80 |
|
81 |
|
82 private: |
|
83 /** |
|
84 * C++ default constructor. |
|
85 */ |
|
86 CSIPExSIPClientOfferingState(); |
|
87 |
|
88 private://data members |
|
89 CSIPExSIPStateBase* iIdleState; |
|
90 CSIPExSIPStateBase* iEstablishedState; |
|
91 CSIPExSIPStateBase* iTerminatedState; |
|
92 }; |
|
93 |
|
94 #endif // _SIPEXSIPCLIENTOFFERINGSTATE_H_ |
|
95 |