|
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: Handles CS call status changes |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MCEPOCOMACSSTATEOBSERVER_H |
|
23 #define MCEPOCOMACSSTATEOBSERVER_H |
|
24 |
|
25 // first include paltform includes, like e32base.h then api etc <> files then |
|
26 // always include this file as the first omapoc related include file |
|
27 //#include "PoCOmaCommonDefs.h" |
|
28 |
|
29 // INCLUDES |
|
30 |
|
31 // CONSTANTS |
|
32 |
|
33 /** |
|
34 * CS call states |
|
35 * ref. TSACurrentCall from SACLS.H |
|
36 * ref. EPSCurrentCall from PSVariables.H |
|
37 * |
|
38 */ |
|
39 // ! keep enum start value way under 100 |
|
40 enum TPoCOmaCsState |
|
41 { |
|
42 EPoCOmaCallUninitialized, |
|
43 EPoCOmaCallStateNone, |
|
44 EPoCOmaCallStateVoice, |
|
45 EPoCOmaCallStateFax, |
|
46 EPoCOmaCallStateData, |
|
47 EPoCOmaCallStateAlerting, |
|
48 EPoCOmaCallStateRinging, |
|
49 EPoCOmaCallStateAlternating, |
|
50 EPoCOmaCallStateDialling, |
|
51 EPoCOmaCallStateAnswering, |
|
52 EPoCOmaCallStateDisconnecting, |
|
53 EPoCOmaCallStateConnected, |
|
54 EPoCOmaCallStateHold |
|
55 }; |
|
56 |
|
57 // MACROS |
|
58 |
|
59 // DATA TYPES |
|
60 |
|
61 // FUNCTION PROTOTYPES |
|
62 |
|
63 // FORWARD DECLARATIONS |
|
64 |
|
65 // CLASS DECLARATION |
|
66 |
|
67 /** |
|
68 * Mixin class for having CS call status notifications. |
|
69 */ |
|
70 class MMcePoCOmaCSStateObserver |
|
71 { |
|
72 public: |
|
73 /** |
|
74 * Called when CS Call status has changed. |
|
75 * @param aStatus Status of CS call. |
|
76 */ |
|
77 virtual void CsStatusChangedL( TPoCOmaCsState aStatus ) = 0; |
|
78 }; |
|
79 |
|
80 #endif // POCOMACSSTATEOBSERVER_H |
|
81 |
|
82 // End of File |