|
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: Header file for CGSConnSettingsSelectionDlg class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef GSCONNSETTINGSSELECTIONDLG_H |
|
19 #define GSCONNSETTINGSSELECTIONDLG_H |
|
20 |
|
21 #include <aknradiobuttonsettingpage.h> |
|
22 #include <AknInfoPopupNoteController.h> |
|
23 |
|
24 class CGSConnSettingsSelectionDlg : public CAknRadioButtonSettingPage |
|
25 { |
|
26 |
|
27 public: |
|
28 |
|
29 /** |
|
30 * Symbian OS two-phased constructor |
|
31 * |
|
32 * @param aResourceID Text at top of setting pane |
|
33 * @param aCurrentSelectionIndex Current slected item |
|
34 * @param aItemArray Pointer to array of loaded resource texts for radio buttons |
|
35 * @param aPopupResource ID of popup note resource array |
|
36 * @return |
|
37 * |
|
38 */ |
|
39 static CGSConnSettingsSelectionDlg* NewL(TInt aResourceID, |
|
40 TInt& aCurrentSelectionIndex, |
|
41 const MDesCArray* aItemArray, |
|
42 TInt aPopupResource); |
|
43 |
|
44 /** |
|
45 * Symbian OS two-phased constructor |
|
46 * |
|
47 * @param aPopupResource ID of popup note resource array |
|
48 */ |
|
49 void ConstructL(TInt aPopupResource); |
|
50 |
|
51 /** |
|
52 * C++ default constructor. |
|
53 * |
|
54 * @param aResourceID Text at top of setting pane |
|
55 * @param aCurrentSelectionIndex Current slected item |
|
56 * @param aItemArray Pointer to array of loaded resource texts for radio buttons |
|
57 * @param aPopupResource ID of popup note resource array |
|
58 */ |
|
59 CGSConnSettingsSelectionDlg( |
|
60 TInt aResourceID, |
|
61 TInt& aCurrentSelectionIndex, |
|
62 const MDesCArray* aItemArray, |
|
63 TInt aPopupResource); |
|
64 /** |
|
65 * Destructor. |
|
66 */ |
|
67 virtual ~CGSConnSettingsSelectionDlg(); |
|
68 |
|
69 private: |
|
70 //From CAknListBoxSettingPage |
|
71 void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType); |
|
72 |
|
73 //From CAknSettingPage |
|
74 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType); |
|
75 |
|
76 private: |
|
77 //New Functions |
|
78 |
|
79 /** |
|
80 * Displays info popup on the screen |
|
81 * |
|
82 */ |
|
83 void ShowInfoPopupL(); |
|
84 |
|
85 private: //Private data |
|
86 |
|
87 /** |
|
88 * Pointer to popup note controller. Owned. |
|
89 */ |
|
90 CAknInfoPopupNoteController* iPopupController; |
|
91 |
|
92 /** |
|
93 * Pointer to loaded popup note resources. Owned. |
|
94 */ |
|
95 CDesCArrayFlat* iPopupItems; |
|
96 |
|
97 }; |
|
98 #endif // GSCONNSETTINGSSELECTIONDLG_H |