|
1 /* |
|
2 * Copyright (c) 2002-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: Monitors Events from VoiceMailBox -server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IPVMBXEVENTMONITOR_H |
|
21 #define IPVMBXEVENTMONITOR_H |
|
22 |
|
23 |
|
24 #include <mceeventobserver.h> |
|
25 |
|
26 |
|
27 class CIpVmbxEngine; |
|
28 |
|
29 |
|
30 /** |
|
31 * Handles and processes events from VoiceMailBox -server |
|
32 * |
|
33 * @lib IPVoiceMailAppEngine.lib |
|
34 */ |
|
35 NONSHARABLE_CLASS( TIpVmbxEventMonitor ) : public MMceEventObserver |
|
36 { |
|
37 |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * C++ default constructor. |
|
42 * |
|
43 * @param Instance to engine for message sending. |
|
44 */ |
|
45 TIpVmbxEventMonitor( CIpVmbxEngine& aEngine ); |
|
46 |
|
47 |
|
48 public: |
|
49 |
|
50 // From base class MMceEventObserver |
|
51 |
|
52 /** |
|
53 * From base class MMceEventObserver |
|
54 * The state of the event has changed |
|
55 * |
|
56 * @param aEvent, the event that has changed |
|
57 * @param aContainer, if present, holds details of |
|
58 * transaction causing state change |
|
59 */ |
|
60 void EventStateChanged( |
|
61 CMceEvent& aEvent, |
|
62 TMceTransactionDataContainer* aContainer ); |
|
63 |
|
64 /** |
|
65 * From base class MMceEventObserver |
|
66 * The state of the event has changed |
|
67 * |
|
68 * @param aEvent, event received notification |
|
69 * @param aContainer, if present, holds details of |
|
70 * transaction causing state change |
|
71 */ |
|
72 void NotifyReceived( |
|
73 CMceEvent& aEvent, |
|
74 TMceTransactionDataContainer* aContainer ); |
|
75 |
|
76 /** |
|
77 * From base class MMceEventObserver |
|
78 * The state of the event used by the refer has changed |
|
79 * |
|
80 * @param aEvent, the event that has changed |
|
81 * @param aActive, ETrue if connection active, EFalse if connection |
|
82 * inactive |
|
83 */ |
|
84 void EventConnectionStateChanged( CMceEvent& aEvent, TBool aActive ); |
|
85 |
|
86 /** |
|
87 * From base class MMceEventObserver |
|
88 * An error has occurred concerning a specific SIP event |
|
89 * Note, that each error causes the event state to be ETerminated |
|
90 * |
|
91 * @param aEvent, The event raising the error |
|
92 * @param aError, Error code |
|
93 */ |
|
94 void Failed( CMceEvent& aEvent, TInt aError ); |
|
95 |
|
96 |
|
97 private: // Data |
|
98 |
|
99 /** |
|
100 * Instance to engine |
|
101 */ |
|
102 CIpVmbxEngine& iEngine; |
|
103 |
|
104 }; |
|
105 |
|
106 #endif // IPVMBXEVENTMONITOR_H |