|
1 /* |
|
2 * Copyright (c) 2008 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MMCETRANSACTIONOBSERVER_H |
|
22 #define MMCETRANSACTIONOBSERVER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <mcedefs.h> |
|
26 #include <e32std.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class TMceTransactionDataContainer; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * An interface to be implemented by users of MCE if they wish to |
|
35 * send extension SIP requests such as INFO within an existing session. |
|
36 * |
|
37 * This observer is set using CMceManager::SetTransactionObserver function. |
|
38 * |
|
39 * @lib mceclient.lib |
|
40 */ |
|
41 class MMceTransactionObserver |
|
42 { |
|
43 public: // |
|
44 |
|
45 /** |
|
46 * A response related to a transaction was received. |
|
47 * @param aSession, the session that was used to create the transaction |
|
48 * @param aTransactionId, the identifier for the transaction |
|
49 * @param aContainer, if present, |
|
50 * holds details of the incoming SIP response. |
|
51 */ |
|
52 virtual void TransactionResponse( |
|
53 CMceSession& aSession, |
|
54 TMceTransactionId aTransactionId, |
|
55 TMceTransactionDataContainer* aContainer ) = 0; |
|
56 |
|
57 /** |
|
58 * An error related to a transaction was received. |
|
59 * @param aSession, the session that was used to create the transaction |
|
60 * @param aTransactionId, the identifier for the transaction |
|
61 * @param aError, Error code |
|
62 */ |
|
63 virtual void TransactionFailed( |
|
64 CMceSession& aSession, |
|
65 TMceTransactionId aTransactionId, |
|
66 TInt aError ) = 0; |
|
67 }; |
|
68 |
|
69 #endif // MMCETRANSACTIONOBSERVER_H |
|
70 |
|
71 |
|
72 // End of File |
|
73 |