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: Main class for svtcallmenu. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_SCMTELCALLMENU_H |
|
20 #define C_SCMTELCALLMENU_H |
|
21 |
|
22 #include <telmenuextension.h> |
|
23 |
|
24 class CSvtCallStateHandler; |
|
25 |
|
26 /** |
|
27 * Main class for svtcallmenu. |
|
28 * |
|
29 * @lib svtcallmenu |
|
30 * @since S60 v5.1 |
|
31 */ |
|
32 NONSHARABLE_CLASS(CSvtCallMenu) : |
|
33 public CTelMenuExtension |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 */ |
|
40 static CSvtCallMenu* NewL(); |
|
41 |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CSvtCallMenu(); |
|
47 |
|
48 |
|
49 // from base class CTelMenuExtension |
|
50 |
|
51 /** |
|
52 * Modifys given menu pane. Removes unsupported options from call menu and |
|
53 * adds custom menu commands to the menu. |
|
54 * |
|
55 * @param aCallArray - Array holding information of all ongoing calls. |
|
56 * @param aMenuPane - A modifyable menu pane. |
|
57 */ |
|
58 void ModifyExtensionsCallMenuL( |
|
59 const RArray<CTelMenuExtension::TCallInfo>& aCallArray, |
|
60 CEikMenuPane& aMenuPane ); |
|
61 |
|
62 /** |
|
63 * Modifys given touch pane buttons. Dimms unsupported buttons from the |
|
64 * pane. |
|
65 * |
|
66 * @param aCallArray - Array holding information of all ongoing calls. |
|
67 * @param aTouchPane - A touch pane interface. |
|
68 */ |
|
69 void ModifyExtensionsTouchPaneButtonsL( |
|
70 const RArray<CTelMenuExtension::TCallInfo>& aCallArray, |
|
71 MTelTouchPaneExtension& aTouchPane ); |
|
72 |
|
73 /** |
|
74 * Handles custom menu commands. |
|
75 * |
|
76 * @param aCommand It is the code of the command to be handled. |
|
77 * @return boolean value was the command handled (ETrue) or not (EFalse). |
|
78 */ |
|
79 TBool HandleCommandL( TInt aCommand ); |
|
80 |
|
81 |
|
82 private: |
|
83 |
|
84 CSvtCallMenu(); |
|
85 |
|
86 /** |
|
87 * Creates new call state handler. |
|
88 * |
|
89 * @param aCallArray - Array holding information of all ongoing calls. |
|
90 */ |
|
91 void CreateCallStateHandlerL( |
|
92 const RArray<CTelMenuExtension::TCallInfo>& aCallArray ); |
|
93 |
|
94 private: // data |
|
95 |
|
96 /** |
|
97 * Pointer to call state handler. |
|
98 * Own. |
|
99 */ |
|
100 CSvtCallStateHandler* iCallStateHandler; |
|
101 |
|
102 |
|
103 #ifdef _DEBUG |
|
104 friend class T_CSvtCallMenuPlugin; |
|
105 #endif |
|
106 |
|
107 }; |
|
108 |
|
109 #endif // C_SCMTELCALLMENU_H |
|
110 |
|
111 |
|