1 /* |
|
2 * Copyright (c) 2009 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: Container for Optical Joystick |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSOPTICALJOYSTICKPLUGINCONTAINER_H |
|
20 #define GSOPTICALJOYSTICKPLUGINCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <bldvariant.hrh> |
|
24 #include <gsbasecontainer.h> |
|
25 |
|
26 #include "gssettingid.h" |
|
27 |
|
28 // FORWARD DECLARATION |
|
29 class CGSListBoxItemTextArray; |
|
30 class CRepository; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CGSOpticalJoystickPluginContainer container class |
|
36 * @since Series 60_3.1 |
|
37 * |
|
38 */ |
|
39 class CGSOpticalJoystickPluginContainer : public CGSBaseContainer |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Symbian OS constructor. |
|
45 * @param aRect Listbox's rect. |
|
46 * |
|
47 */ |
|
48 void ConstructL( const TRect& aRect ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 ~CGSOpticalJoystickPluginContainer(); |
|
54 |
|
55 public: //new |
|
56 |
|
57 /** |
|
58 * Updates listbox's item's value. |
|
59 * @param aFeatureId An item which is updated. |
|
60 * |
|
61 */ |
|
62 void UpdateListBoxL( TInt aFeatureId ); |
|
63 |
|
64 /** |
|
65 * Retrieves the currently selected listbox feature id |
|
66 * @return feature id. |
|
67 */ |
|
68 TInt CurrentFeatureId() const; |
|
69 |
|
70 /** |
|
71 * Set the status of optical joystick |
|
72 * @param aStatus Status of the optical joystick. |
|
73 */ |
|
74 void GetOpticalJoystickStatus(TInt& aStatus); |
|
75 |
|
76 /** |
|
77 * Set the status of optical joystick |
|
78 * @param aStatus Status of the optical joystick to be set to. |
|
79 */ |
|
80 void SetOpticalJoystickStatusL(TInt aStatus); |
|
81 |
|
82 protected: // from CGSBaseContainer |
|
83 void ConstructListBoxL( TInt aResLbxId ); |
|
84 |
|
85 private: // new |
|
86 void CreateListBoxItemsL(); |
|
87 void MakeFocusedItemContentL(); |
|
88 |
|
89 private: |
|
90 /** |
|
91 * Required for help. |
|
92 * |
|
93 */ |
|
94 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
95 |
|
96 private: // data |
|
97 //Auto disconnect list item |
|
98 CDesCArrayFlat* iAutodisconValue; |
|
99 //Listbox item array model |
|
100 CGSListBoxItemTextArray* iListboxItemArray; |
|
101 //Repository to access optical joystick status |
|
102 CRepository* iPersonalizationRepository; |
|
103 }; |
|
104 |
|
105 #endif //GSOPTICALJOYSTICKPLUGINCONTAINER_H |
|
106 |
|
107 // End of File |
|