1 /* |
|
2 * Copyright (c) 2007-2008 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: Class header for CWsfSearchWlansDialog |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_WSFSEARCHWLANSDIALOG_H |
|
20 #define C_WSFSEARCHWLANSDIALOG_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <aknlistquerydialog.h> |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 #include "wsfaiuiobserver.h" |
|
27 |
|
28 |
|
29 NONSHARABLE_CLASS( CWsfSearchWlansDialog ) : public CAknListQueryDialog, |
|
30 public MWsfAiUiObserver |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Two-phased constructor |
|
36 * @since S60 5.0 |
|
37 * @param aSelectedItem - reference of the selected item |
|
38 * @return instance of CWsfSearchWlansDialog class |
|
39 */ |
|
40 static CWsfSearchWlansDialog* NewL( TInt &aSelectedItem ); |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. Leaves the object on CleanupStack |
|
44 * @since S60 5.0 |
|
45 * @param aSelectedItem - reference of the selected item |
|
46 * @return instance of CWsfSearchWlansDialog class |
|
47 */ |
|
48 static CWsfSearchWlansDialog* NewLC( TInt &aSelectedItem ); |
|
49 |
|
50 /** |
|
51 * Destructor of CWsfSearchWlansDialog class |
|
52 * @since S60 5.0 |
|
53 */ |
|
54 ~CWsfSearchWlansDialog(); |
|
55 |
|
56 private: |
|
57 |
|
58 /** |
|
59 * Default C++ constructor |
|
60 * @since S60 5.0 |
|
61 * @param aSelectedItem - reference of the selected item |
|
62 */ |
|
63 CWsfSearchWlansDialog( TInt &aSelectedItem ); |
|
64 |
|
65 /** |
|
66 * 2nd phase constructor |
|
67 * @since S60 5.0 |
|
68 */ |
|
69 void ConstructL(); |
|
70 |
|
71 private: // from CEikDialog |
|
72 |
|
73 /** |
|
74 * From CEikDialog |
|
75 * Framework method called to processs a command ID |
|
76 * @param aCommandId ID of the command to respond to. |
|
77 */ |
|
78 void ProcessCommandL( TInt aCommandId ); |
|
79 |
|
80 /** |
|
81 * Sets the default value to the dialog. |
|
82 */ |
|
83 void PreLayoutDynInitL(); |
|
84 |
|
85 private: // from MWsfAiUiObserver |
|
86 |
|
87 /** |
|
88 * Update the contents of control |
|
89 * Set the focus on aCurrentImte |
|
90 * @since S60 5.0 |
|
91 * @param aItemTextArray text of the current item |
|
92 * @param aCurrentItem index of the current item |
|
93 */ |
|
94 void UpdateHotSpotsL( MDesCArray* aItemTextArray, |
|
95 TInt aCurrentItem ); |
|
96 |
|
97 /** |
|
98 * Gives back the index of the selected item |
|
99 * @since S60 5.0 |
|
100 * @return the index of the selected item |
|
101 */ |
|
102 TInt SelectedItem(); |
|
103 |
|
104 /* |
|
105 * Check if the control is multiline capable control |
|
106 * @since S60 5.0 |
|
107 * @return Etrue if control is multiline capable control |
|
108 */ |
|
109 TBool MultilineControl(); |
|
110 |
|
111 /* |
|
112 * Display engine off text in UI |
|
113 * @since S60 5.0 |
|
114 */ |
|
115 void DisplayEngineOffL(); |
|
116 |
|
117 /* |
|
118 * Set the refressing UI note visible |
|
119 * @since S60 5.0 |
|
120 */ |
|
121 void ForceRefreshingL(); |
|
122 |
|
123 /* |
|
124 * Starts connecting animation |
|
125 * @since S60 5.2 |
|
126 */ |
|
127 void StartConnectingAnimationL(); |
|
128 |
|
129 /** |
|
130 * Update the contents of control |
|
131 * @since S60 5.0 |
|
132 * @param aItemTextArray text of the current item |
|
133 */ |
|
134 void UpdateViewL( MDesCArray* aItemTextArray ); |
|
135 |
|
136 |
|
137 private: |
|
138 |
|
139 /** |
|
140 * Reference of the selecte item |
|
141 */ |
|
142 TInt *iSelectedItem; |
|
143 }; |
|
144 |
|
145 |
|
146 |
|
147 #endif // C_WSFSEARCHWLANSDIALOG_H |
|