1 /* |
|
2 * Copyright (c) 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: Call handler class for svtcallmenu. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_SVTCALLSTATEHANDLER_H |
|
20 #define C_SVTCALLSTATEHANDLER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <telmenuextension.h> |
|
24 |
|
25 /** |
|
26 * Call state handler class for svtmatching. |
|
27 * |
|
28 * @lib svtmatching |
|
29 * @since S60 v5.1 |
|
30 */ |
|
31 NONSHARABLE_CLASS( CSvtCallStateHandler ) : public CBase |
|
32 { |
|
33 public: // Data |
|
34 |
|
35 /** |
|
36 * Features |
|
37 */ |
|
38 enum TFeature |
|
39 { |
|
40 ESvmFeatureNone, |
|
41 ESvmFeatureConference, |
|
42 ESvmFeatureUnattendedTransfer, |
|
43 ESvmFeatureAttendedTransfer |
|
44 }; |
|
45 |
|
46 |
|
47 public: |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 * @param aCallArray Current call info array. |
|
52 */ |
|
53 static CSvtCallStateHandler* NewL( |
|
54 const RArray<CTelMenuExtension::TCallInfo>& aCallArray ); |
|
55 |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~CSvtCallStateHandler(); |
|
61 |
|
62 /** |
|
63 * Checks is feature supported. |
|
64 * @param aFeature - Feature to be checked. |
|
65 * @return ETrue if feature supported. |
|
66 */ |
|
67 TBool FeatureSupported( TFeature aFeature ) const; |
|
68 |
|
69 |
|
70 private: |
|
71 |
|
72 CSvtCallStateHandler(); |
|
73 |
|
74 void ConstructL( const RArray<CTelMenuExtension::TCallInfo>& aCallArray ); |
|
75 |
|
76 /** |
|
77 * Checks is unattended transfer currently supported. |
|
78 * @return ETrue if supported. |
|
79 */ |
|
80 TBool UnattendedTransferPossible() const; |
|
81 |
|
82 private: // Data |
|
83 |
|
84 /** |
|
85 * Current call information. |
|
86 */ |
|
87 RArray<CTelMenuExtension::TCallInfo> iCallArray; |
|
88 |
|
89 |
|
90 #ifdef _DEBUG |
|
91 friend class T_CSvtCallStateHandler; |
|
92 #endif |
|
93 |
|
94 }; |
|
95 |
|
96 #endif // C_SVTCALLSTATEHANDLER_H |
|