|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Declares dialog CApSelQueryDialog for access point selection. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef APSEL_QUERY_DIALOG_H |
|
21 #define APSEL_QUERY_DIALOG_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknlistquerydialog.h> |
|
25 #include <ApSettingsHandlerCommons.h> |
|
26 #include <ActiveApDb.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CApSelectorListboxModel; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * CApSelQueryDialog class |
|
34 * |
|
35 */ |
|
36 NONSHARABLE_CLASS( CApSelQueryDialog ) : public CAknListQueryDialog, |
|
37 public MActiveApDbObserver |
|
38 { |
|
39 |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Constructor |
|
44 * @param aModel a reference to the data model |
|
45 * @param aIndex a pointer to hold the UID of the selected item |
|
46 * @return The constructed access point selection query dialog |
|
47 */ |
|
48 CApSelQueryDialog( CApSettingsModel& aModel, |
|
49 TUint32* aIndex ); |
|
50 |
|
51 /** |
|
52 * Destructor |
|
53 */ |
|
54 virtual ~CApSelQueryDialog(); |
|
55 |
|
56 |
|
57 public: // Functions from base classes |
|
58 /** |
|
59 * from MActiveApDbObserver |
|
60 */ |
|
61 virtual void HandleApDbEventL( TEvent anEvent ); |
|
62 |
|
63 |
|
64 private: |
|
65 /** |
|
66 * From CAknListQueryDialog |
|
67 */ |
|
68 virtual void PreLayoutDynInitL( void ); |
|
69 |
|
70 |
|
71 /** |
|
72 * From CAknListQueryDialog |
|
73 */ |
|
74 virtual void PostLayoutDynInitL(); |
|
75 |
|
76 |
|
77 /** |
|
78 * From CAknListQueryDialog |
|
79 */ |
|
80 TBool OkToExitL( TInt aButtonId ); |
|
81 |
|
82 |
|
83 // From CCoeControl |
|
84 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, |
|
85 TEventCode aType); |
|
86 |
|
87 |
|
88 // From MEikCommandObserver |
|
89 void ProcessCommandL( TInt aCommandId ); |
|
90 |
|
91 |
|
92 protected: // New functions |
|
93 /** |
|
94 * Fills up listbox control with data |
|
95 */ |
|
96 void FillListBoxWithDataL(); |
|
97 |
|
98 |
|
99 /** |
|
100 * Loads protected icons |
|
101 * @return The icon offset where they were appended. |
|
102 */ |
|
103 TInt LoadIconsL(); |
|
104 |
|
105 |
|
106 protected: // Functions from base classes |
|
107 |
|
108 |
|
109 private: //data |
|
110 CApSettingsModel* iDataModel; // does not own it, |
|
111 // just passed for usage! |
|
112 CEikListBox* iList; |
|
113 CApSelectorListboxModel* iModel; |
|
114 TUint32* iSelected; |
|
115 TBool iNeedUnlock; |
|
116 |
|
117 }; |
|
118 |
|
119 #endif |
|
120 |
|
121 // End of File |