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