|
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 #include <bmtouchpaneinterface.h> |
|
26 |
|
27 |
|
28 /** |
|
29 * Wrapper class to touch pane interface. |
|
30 * |
|
31 * @since S60 5.1 |
|
32 */ |
|
33 NONSHARABLE_CLASS( TPhTouchPaneWrapper ): public MTelTouchPaneExtension |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 TPhTouchPaneWrapper( MBubbleTouchPaneInterface& aTouchPane ); |
|
39 |
|
40 /** |
|
41 * Returns number of buttons in touch pane. |
|
42 * |
|
43 * @since S60 v5.1 |
|
44 * @return Button count. |
|
45 */ |
|
46 TInt NumberOfButtonsInPane() const; |
|
47 |
|
48 /** |
|
49 * Returns command id assinged to button in given position. |
|
50 * If button is toggling, currently active command is |
|
51 * returned. |
|
52 * |
|
53 * @since S60 v5.1 |
|
54 * @param aButtonIndex Button index starting 0. |
|
55 * @return Command id assigned to given position. |
|
56 */ |
|
57 TInt ButtonCommandId( TInt aButtonIndex ) const; |
|
58 |
|
59 /** |
|
60 * Sets button dimmed. |
|
61 * |
|
62 * @since S60 v5.1 |
|
63 * @param aCommand Command id. |
|
64 * @param aDimmed ETrue to set dimmed, EFalse to undim. |
|
65 */ |
|
66 void SetButtonDimmed( TInt aCommand, TBool aDimmed ); |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * Reference to touch pane interface |
|
72 * Not own. |
|
73 */ |
|
74 MBubbleTouchPaneInterface& iTouchPane; |
|
75 |
|
76 }; |
|
77 |
|
78 |
|
79 #endif TPHONETOUCHPANEWRAPPER_H |
|
80 |
|
81 //End of file |