|
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: Wrapper class to touch pane interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TPHONETOUCHPANEWRAPPER_H |
|
20 #define TPHONETOUCHPANEWRAPPER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <teltouchpaneextension.h> |
|
25 |
|
26 /** |
|
27 * Wrapper class to touch pane interface. |
|
28 * |
|
29 * @since S60 5.1 |
|
30 */ |
|
31 NONSHARABLE_CLASS( TPhTouchPaneWrapper ): public MTelTouchPaneExtension |
|
32 { |
|
33 |
|
34 public: |
|
35 TPhTouchPaneWrapper(); |
|
36 |
|
37 /** |
|
38 * Returns number of buttons in touch pane. |
|
39 * |
|
40 * @since S60 v5.1 |
|
41 * @return Button count. |
|
42 */ |
|
43 TInt NumberOfButtonsInPane() const; |
|
44 |
|
45 /** |
|
46 * Returns command id assinged to button in given position. |
|
47 * If button is toggling, currently active command is |
|
48 * returned. |
|
49 * |
|
50 * @since S60 v5.1 |
|
51 * @param aButtonIndex Button index starting 0. |
|
52 * @return Command id assigned to given position. |
|
53 */ |
|
54 TInt ButtonCommandId( TInt aButtonIndex ) const; |
|
55 |
|
56 /** |
|
57 * Sets button dimmed. |
|
58 * |
|
59 * @since S60 v5.1 |
|
60 * @param aCommand Command id. |
|
61 * @param aDimmed ETrue to set dimmed, EFalse to undim. |
|
62 */ |
|
63 void SetButtonDimmed( TInt aCommand, TBool aDimmed ); |
|
64 |
|
65 private: |
|
66 |
|
67 }; |
|
68 |
|
69 |
|
70 #endif TPHONETOUCHPANEWRAPPER_H |
|
71 |
|
72 //End of file |