|
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 Power saving query settings view. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef GSPOWERSAVINGQUERYPLUGINCONTAINER_H |
|
20 #define GSPOWERSAVINGQUERYPLUGINCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <gsbasecontainer.h> |
|
24 |
|
25 // FORWARD DECLARATION |
|
26 class CGSListBoxItemTextArray; |
|
27 class CGSPowerSavingQueryPluginModel; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * CGSPowerSavingQueryPluginContainer container class |
|
33 * @since Series 60_3.1 |
|
34 * |
|
35 */ |
|
36 class CGSPowerSavingQueryPluginContainer : public CGSBaseContainer |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Symbian OS constructor. |
|
42 * @param aRect Listbox's rect. |
|
43 * |
|
44 */ |
|
45 void ConstructL( const TRect& aRect ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CGSPowerSavingQueryPluginContainer(); |
|
51 |
|
52 public: //new |
|
53 |
|
54 /** |
|
55 * Updates listbox's item's value. |
|
56 * @param aFeatureId An item which is updated. |
|
57 * |
|
58 */ |
|
59 void UpdateListBoxL( TInt aFeatureId ); |
|
60 |
|
61 /** |
|
62 * Retrieves the currently selected listbox feature id |
|
63 * @return feature id. |
|
64 */ |
|
65 TInt CurrentFeatureId() const; |
|
66 |
|
67 /** |
|
68 * Retrieves the power saving query plugin data model |
|
69 * @return the data model |
|
70 */ |
|
71 CGSPowerSavingQueryPluginModel* Model(); |
|
72 |
|
73 protected: // from CGSBaseContainer |
|
74 void ConstructListBoxL( TInt aResLbxId ); |
|
75 |
|
76 private: // new |
|
77 void CreateListBoxItemsL(); |
|
78 |
|
79 /* |
|
80 * MakePowerSavingQueryItemL |
|
81 */ |
|
82 void MakePowerSavingQueryItemL(); |
|
83 |
|
84 private: |
|
85 /** |
|
86 * Required for help. |
|
87 * |
|
88 */ |
|
89 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
90 |
|
91 private: // data |
|
92 //Listbox item array model |
|
93 CGSListBoxItemTextArray* iListboxItemArray; |
|
94 //Data Model |
|
95 CGSPowerSavingQueryPluginModel* iModel; |
|
96 }; |
|
97 |
|
98 #endif //GSPOWERSAVINGQUERYPLUGINCONTAINER_H |
|
99 |
|
100 // End of File |