|
1 /* |
|
2 * Copyright (c) 2004 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: Observer interface for line events. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MVTCTLLINEEVENTOBSERVER_H |
|
21 #define MVTCTLLINEEVENTOBSERVER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32def.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Observer interface for line events |
|
30 * |
|
31 * @lib CSCallCtrl |
|
32 * @since 2.6 |
|
33 */ |
|
34 class MVtCtlLineEventObserver |
|
35 { |
|
36 public: // new functions |
|
37 |
|
38 /** |
|
39 * ELineEventCallAdded call added to line |
|
40 * ELineEventIncomingCall incoming call |
|
41 * ELineEventStatusChange line status changed |
|
42 */ |
|
43 enum TLineEvent { |
|
44 ELineEventCallAdded, |
|
45 ELineEventIncomingCall, |
|
46 ELineEventStatusChange |
|
47 }; |
|
48 |
|
49 /** |
|
50 * Event handler for line events. |
|
51 * @param aEvent line event |
|
52 * @param aCallName call name |
|
53 */ |
|
54 virtual void HandleLineEventL( |
|
55 const TLineEvent aEvent, |
|
56 TDesC& aCallName ) = 0; |
|
57 |
|
58 /** |
|
59 * Event handler for line events. |
|
60 * @param aEvent line event |
|
61 * @param aCallName call name |
|
62 * @param aStatus call status |
|
63 */ |
|
64 /***************************************************** |
|
65 * Series 60 Customer / ETel |
|
66 * Series 60 ETel API |
|
67 *****************************************************/ |
|
68 virtual void HandleLineEventL( |
|
69 const TLineEvent aEvent, |
|
70 const RMobileCall::TMobileCallStatus aStatus ) = 0; |
|
71 }; |
|
72 |
|
73 #endif // MVTCTLLINEEVENTOBSERVER_H |
|
74 |
|
75 // End of File |