|
1 /* |
|
2 * Copyright (c) 2001-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 the License "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: Definition of class CWiFiProtSelectNetworkDlg. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_WIFIPROTSELECTNETWORKDLG_H |
|
20 #define C_WIFIPROTSELECTNETWORKDLG_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknlistquerydialog.h> |
|
24 |
|
25 // CLASS DECLARATIONS |
|
26 /** |
|
27 * Class implements a query dialog. |
|
28 */ |
|
29 NONSHARABLE_CLASS( CWiFiProtSelectNetworkDlg ) : public CAknListQueryDialog |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Constructor the CWiFiProtSelectNetworkDlg class |
|
34 * @param aStatus TRequestStatus from activerunner |
|
35 * @param aSelected returned selection index |
|
36 * @param CDesCArrayFlat* aItems listbox items, ownership passed |
|
37 * @param CArrayPtr<CGulIcon>* aIcons listbox icons, ownership passed |
|
38 * @return - |
|
39 */ |
|
40 CWiFiProtSelectNetworkDlg( TRequestStatus& aStatus , TInt& aSelected , |
|
41 CDesCArrayFlat* aItems, |
|
42 CArrayPtr<CGulIcon>* aIcons ); |
|
43 |
|
44 /** |
|
45 * Destructor |
|
46 */ |
|
47 virtual ~CWiFiProtSelectNetworkDlg(); |
|
48 |
|
49 /** |
|
50 * Calls PrepareLC and RunLD with the supplied parameters |
|
51 */ |
|
52 void PrepareAndRunLD( ); |
|
53 |
|
54 |
|
55 private: |
|
56 |
|
57 /** |
|
58 * Exit function of CWiFiProtSelectNetworkDlg |
|
59 * @param aButtonId |
|
60 * @return TBool exit or no |
|
61 */ |
|
62 virtual TBool OkToExitL( TInt aButtonId ); |
|
63 |
|
64 /** |
|
65 * PreLayoutDynInitL |
|
66 */ |
|
67 void PreLayoutDynInitL(); |
|
68 |
|
69 /** |
|
70 * Handles a change to the application's resources. |
|
71 * @param aType Type of resource change |
|
72 */ |
|
73 void HandleResourceChange( TInt aType ); |
|
74 |
|
75 private: |
|
76 // Client's request status, dialog completes it when it finished |
|
77 TRequestStatus& iRequestStatus; |
|
78 // Selected item's index |
|
79 TInt& iSelected; |
|
80 // Icons array |
|
81 CArrayPtr<CGulIcon>* iIcons; |
|
82 // Items array |
|
83 CDesCArrayFlat* iItems; |
|
84 }; |
|
85 |
|
86 #endif // C_WIFIPROTSELECTNETWORKDLG_H |
|
87 |
|
88 // End of File |