|
1 /* |
|
2 * Copyright (c) 2006-2009 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 /** |
|
22 @file |
|
23 @publishedPartner |
|
24 @released |
|
25 */ |
|
26 #ifndef CTSYDOMAINPSKEYS_H |
|
27 #define CTSYDOMAINPSKEYS_H |
|
28 |
|
29 // INCLUDES |
|
30 #include <e32std.h> |
|
31 |
|
32 /** |
|
33 * For Call forwarding number |
|
34 */ |
|
35 const TUid KPSUidCtsyCallForwardingInfo = { 0x1020299D }; |
|
36 |
|
37 /** |
|
38 * For Emergency call info |
|
39 * Provides information whether an emergency call is active or not |
|
40 */ |
|
41 const TUid KPSUidCtsyEmergencyCallInfo = { 0x102029A0 }; |
|
42 |
|
43 /** For Emergency call info */ |
|
44 enum KEmergencyCallInfo |
|
45 { |
|
46 KCTSYEmergencyCallInfo, |
|
47 }; |
|
48 |
|
49 /** |
|
50 * Telephony Call Information API. |
|
51 */ |
|
52 const TUid KPSUidCtsyCallInformation = {0x102029AC}; |
|
53 /** |
|
54 * State of ongoing call(s). The following table shows states if |
|
55 * in different combinations of phone calls. |
|
56 * |
|
57 * Call 1 state Call 2 state TPSCTsyCallState |
|
58 * ========================================================= |
|
59 * idle idle EPSCTsyCallStateNone |
|
60 * hold idle EPSCTsyCallStateHold |
|
61 * hold dialling EPSCTsyCallStateDialling |
|
62 * hold ringing EPSCTsyCallStateRinging |
|
63 * hold answering EPSCTsyCallStateAnswering |
|
64 * hold connected EPSCTsyCallStateConnected |
|
65 * connected connected EPSCTsyCallStateConnected |
|
66 * connected ringing EPSCTsyCallStateRinging |
|
67 * disconnecting connected EPSCTsyCallStateConnected |
|
68 * disconnecting hold EPSCTsyCallStateHold |
|
69 * disconnecting idle EPSCTsyCallStateDisconnecting |
|
70 * disconnecting ringing EPSCTsyCallStateRinging |
|
71 * |
|
72 * @type: RProperty::EInt |
|
73 |
|
74 * For single calls |
|
75 * |
|
76 |
|
77 * Mobile originated call states: |
|
78 |
|
79 * (1) EPSCTsyCallStateNone |
|
80 * (2) EPSCTsyCallStateDialling |
|
81 * (3) EPSCTsyCallStateAlerting |
|
82 * (4) EPSTelephonyCallStateConnected |
|
83 * (5) EPSCTsyCallStateDisconnecting |
|
84 * (6) EPSCTsyCallStateNone |
|
85 * |
|
86 * Note that state transitions (2) --> (5) and (3) --> (5) are also possible. |
|
87 * |
|
88 * Mobile terminated call states: |
|
89 |
|
90 * (1) EPSCTsyCallStateNone |
|
91 * (8) EPSCTsyCallStateRinging |
|
92 * (4) EPSTelephonyCallStateConnected |
|
93 * (5) EPSCTsyCallStateDisconnecting |
|
94 * (6) EPSCTsyCallStateNone |
|
95 * |
|
96 * Note that state transition (8) --> (5) is also possible. |
|
97 * |
|
98 * If the call is put on Hold the the following state transition are possible: |
|
99 * (4) --> (9) EPSCTsyCallStateHold --> (4) |
|
100 * (4) --> (9) --> (5) |
|
101 |
|
102 */ |
|
103 |
|
104 /** |
|
105 * State of ongoing call. |
|
106 * |
|
107 */ |
|
108 const TUint32 KCTsyCallState = 0x00000001; |
|
109 enum TPSCTsyCallState |
|
110 { |
|
111 /** Call has not been initialized */ |
|
112 EPSCTsyCallStateUninitialized, |
|
113 /** None */ |
|
114 EPSCTsyCallStateNone, |
|
115 /** Call is in alerting state */ |
|
116 EPSCTsyCallStateAlerting, |
|
117 /** Call is in ringing state */ |
|
118 EPSCTsyCallStateRinging, |
|
119 /** Call is being dialled */ |
|
120 EPSCTsyCallStateDialling, |
|
121 /** Call is being answered */ |
|
122 EPSCTsyCallStateAnswering, |
|
123 /** Call is being disconnected */ |
|
124 EPSCTsyCallStateDisconnecting, |
|
125 /** Call is connected */ |
|
126 EPSCTsyCallStateConnected, |
|
127 /** Call is held */ |
|
128 EPSCTsyCallStateHold |
|
129 }; |
|
130 |
|
131 /** |
|
132 * Type of ongoing call. |
|
133 * |
|
134 */ |
|
135 const TUint32 KCTsyCallType = 0x00000002; |
|
136 enum TPSCTsyCallType |
|
137 { |
|
138 /** Call type has not been initialized */ |
|
139 EPSCTsyCallTypeUninitialized, |
|
140 /** None */ |
|
141 EPSCTsyCallTypeNone, |
|
142 /** CS voice call */ |
|
143 EPSCTsyCallTypeCSVoice, |
|
144 /** Fax call */ |
|
145 EPSCTsyCallTypeFax, |
|
146 /** Data call */ |
|
147 EPSCTsyCallTypeData, |
|
148 /** HSCSD call */ |
|
149 EPSCTsyCallTypeHSCSD, |
|
150 /** H.324 multimedia call */ |
|
151 EPSCTsyCallTypeH324Multimedia, |
|
152 /** VoIP call */ |
|
153 EPSCTsyCallTypeVoIP |
|
154 }; |
|
155 |
|
156 #endif //CTSYDOMAINPSKEYS_H |