|
1 /* |
|
2 * Copyright (c) 2004 - 2007 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: Call control interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MVTCTLCALLCONTROL_H |
|
21 #define MVTCTLCALLCONTROL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "VtCtlDefs.h" |
|
25 #include "TVtCtlType.h" |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Call control class |
|
31 * |
|
32 * @lib CSCallCtrl |
|
33 * @since 2.6 |
|
34 */ |
|
35 class MVtCtlCallControl |
|
36 { |
|
37 public: // new functions |
|
38 |
|
39 /** |
|
40 * Session state |
|
41 * EIdle idle, no connection |
|
42 * EInitializing initializing MO session |
|
43 * EAlerting alerting at remote end |
|
44 * ERinging incoming session ringing |
|
45 * EConnected session is established |
|
46 * EDisconnecting disconnecting session |
|
47 */ |
|
48 enum TVtCtlState { |
|
49 EUnknown, // 0 |
|
50 EIdle, // 1 |
|
51 EInitializing, // 2 |
|
52 EAlerting, // 3 |
|
53 ERinging, // 4 |
|
54 EConnected, // 5 |
|
55 EDisconnecting // 6 |
|
56 }; |
|
57 |
|
58 /** |
|
59 * Session direction |
|
60 * EDirectionUnknown unknown direction |
|
61 * EDirectionMobileOriginated MO session |
|
62 * DirectionMobileTerminated MT session |
|
63 */ |
|
64 enum TVtCtlDirection |
|
65 { |
|
66 EDirectionUnknown, |
|
67 EDirectionMobileOriginated, |
|
68 DirectionMobileTerminated |
|
69 }; |
|
70 |
|
71 /** |
|
72 * Gets session duration |
|
73 * @param aId session id |
|
74 * @param aDuration session duration |
|
75 * @return Symbian OS error code |
|
76 */ |
|
77 virtual TInt GetDuration( |
|
78 TVtCtlSessionId aId, |
|
79 TVtCtlDuration& aDuration ) = 0; |
|
80 |
|
81 /** |
|
82 * Gets information on a session. |
|
83 * @param aId session id |
|
84 * @param aInfo packetized object derived from TVtCtlType |
|
85 */ |
|
86 virtual void GetSessionInfoL( |
|
87 TVtCtlSessionId aId, |
|
88 TDes8& aInfo ) = 0; |
|
89 |
|
90 /** |
|
91 * Returns session state |
|
92 * @param aId session id |
|
93 * @return session state |
|
94 */ |
|
95 virtual TVtCtlState GetSessionState( |
|
96 TVtCtlSessionId aId ) const = 0; |
|
97 |
|
98 /** |
|
99 * Returns previous session state |
|
100 * @param aId session id |
|
101 * @return session state |
|
102 */ |
|
103 virtual TVtCtlState GetPreviousPreviousState( |
|
104 TVtCtlSessionId aId ) const = 0; |
|
105 |
|
106 }; |
|
107 |
|
108 #endif // MVTCTLCALLCONTROL_H |
|
109 |
|
110 // End of File |