|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MMCEINSESSIONOBSERVER_H |
|
22 #define MMCEINSESSIONOBSERVER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMceSession; |
|
29 class CMceInSession; |
|
30 class TMceTransactionDataContainer; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * An interface to be implemented by users of MCE if they wish to receive |
|
36 * invitations to session from network. |
|
37 * |
|
38 * This observer is set using CMceManager::SetInSessionObserver function. |
|
39 * |
|
40 * @lib mceclient.lib |
|
41 */ |
|
42 class MMceInSessionObserver |
|
43 { |
|
44 |
|
45 public: // Functions |
|
46 |
|
47 /** |
|
48 * Incoming session invitation. The CMceInSession is given to the |
|
49 * application as a callback. |
|
50 * @param aSession, pointer to the incoming session. Ownership is |
|
51 * transferred. |
|
52 * @param aContainer, if present, holds details of |
|
53 * transaction causing state change. |
|
54 */ |
|
55 virtual void IncomingSession( |
|
56 CMceInSession* aSession, |
|
57 TMceTransactionDataContainer* aContainer ) = 0; |
|
58 |
|
59 |
|
60 /** |
|
61 * Incoming session update. The new updated CMceInSession is given to the |
|
62 * application as a callback. |
|
63 * @param aOrigSession, the original session to be updated. This instance |
|
64 * cannot be used anymore, all actions done using aUpdatedSession instance. |
|
65 * @param aUpdatedSession, pointer to the new updated session. Ownership is |
|
66 * transferred. |
|
67 * @param aContainer, if present, holds details of |
|
68 * update transaction. |
|
69 */ |
|
70 virtual void IncomingUpdate( |
|
71 CMceSession& aOrigSession, |
|
72 CMceInSession* aUpdatedSession, |
|
73 TMceTransactionDataContainer* aContainer ) = 0; |
|
74 |
|
75 }; |
|
76 |
|
77 #endif |