|
1 /* |
|
2 * Copyright (c) 2005 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: See class definition below. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CMCETESTUIENGINESIPOBSERVER_H__ |
|
21 #define __CMCETESTUIENGINESIPOBSERVER_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "CMCETestUiEngine.h" |
|
25 #include "SIPObserver.h" |
|
26 #include <sipconnectionobserver.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 class CSIPServerTransaction; |
|
31 |
|
32 // CLASS DEFINITION |
|
33 /** |
|
34 * CMCETestUIEngineSipObserver is a dummy class hiding the MSIPObserver |
|
35 * dummies. Id there is not going to be any other use of class, one solution |
|
36 * would be to remove the class and include MSIPObserver dummies to |
|
37 * CMCETestUIEngine. |
|
38 */ |
|
39 class CMCETestUIEngineSipObserver |
|
40 : public MSIPObserver, |
|
41 public MSIPConnectionObserver |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Static constructor. |
|
47 * |
|
48 * @return An initialized instance of this class. |
|
49 */ |
|
50 static CMCETestUIEngineSipObserver* NewL(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CMCETestUIEngineSipObserver(); |
|
56 |
|
57 |
|
58 public: // from MSIPObserver |
|
59 |
|
60 void IncomingRequest(TUint32 aIapId, |
|
61 CSIPServerTransaction* aTransaction); |
|
62 |
|
63 void TimedOut(CSIPServerTransaction& aTransaction); |
|
64 public: // From MSIPConnectionObserver, all dummies |
|
65 |
|
66 void IncomingRequest (CSIPServerTransaction* aTransaction); |
|
67 void IncomingRequest (CSIPServerTransaction* aTransaction, |
|
68 CSIPDialog& aDialog); |
|
69 void IncomingResponse (CSIPClientTransaction& aTransaction); |
|
70 void IncomingResponse (CSIPClientTransaction& aTransaction, |
|
71 CSIPDialogAssocBase& aDialogAssoc); |
|
72 void IncomingResponse (CSIPClientTransaction& aTransaction, |
|
73 CSIPInviteDialogAssoc* aDialogAssoc); |
|
74 void IncomingResponse (CSIPClientTransaction& aTransaction, |
|
75 CSIPRegistrationBinding& aRegistration); |
|
76 void ErrorOccured (TInt aError, |
|
77 CSIPTransactionBase& aTransaction); |
|
78 void ErrorOccured (TInt aError, |
|
79 CSIPClientTransaction& aTransaction, |
|
80 CSIPRegistrationBinding& aRegistration); |
|
81 void ErrorOccured ( |
|
82 TInt aError, |
|
83 CSIPTransactionBase& aTransaction, |
|
84 CSIPDialogAssocBase& aDialogAssoc); |
|
85 void ErrorOccured (TInt aError, CSIPRefresh& aSIPRefresh); |
|
86 void ErrorOccured (TInt aError, |
|
87 CSIPRegistrationBinding& aRegistration); |
|
88 void ErrorOccured (TInt aError, |
|
89 CSIPDialogAssocBase& aDialogAssoc); |
|
90 void InviteCompleted (CSIPClientTransaction& aTransaction); |
|
91 void InviteCanceled (CSIPServerTransaction& aTransaction); |
|
92 void ConnectionStateChanged (CSIPConnection::TState aState); |
|
93 |
|
94 CSIP* GetSipInstance(); |
|
95 |
|
96 private: |
|
97 |
|
98 /** |
|
99 * C++ default constructor. |
|
100 */ |
|
101 CMCETestUIEngineSipObserver(); |
|
102 |
|
103 /** |
|
104 * Symbian 2nd phase constructor |
|
105 */ |
|
106 void ConstructL(); |
|
107 |
|
108 CSIP* iSip; |
|
109 |
|
110 }; |
|
111 |
|
112 #endif // __CMCETESTUIENGINESIPOBSERVER_H__ |