|
1 /* |
|
2 * Copyright (c) 2005 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: Declaration of CActiveSelectWLanDlgPlugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __ACTIVE_SELECT_WLAN_DLG_PLUGIN_H__ |
|
21 #define __ACTIVE_SELECT_WLAN_DLG_PLUGIN_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "SelectWLanDlgPlugin.h" |
|
25 #include "SelectWLANDlg.h" |
|
26 #include "WlanNetworkDataProvider.h" |
|
27 #include "ConnectionUiUtilitiesCommon.h" |
|
28 |
|
29 /** |
|
30 * CActiveSelectWLanDlgPlugin class, |
|
31 * an active object for CSelectWLanDlgPlugin |
|
32 */ |
|
33 NONSHARABLE_CLASS( CActiveSelectWLanDlgPlugin ) : public CActive |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * NewL function |
|
38 * @param aPlugin a pointer to notifier plugin |
|
39 */ |
|
40 static CActiveSelectWLanDlgPlugin* NewL( CSelectWLanDlgPlugin* aPlugin ); |
|
41 |
|
42 /** |
|
43 * StartSearchWlanNetworkL setactive and starts active object |
|
44 */ |
|
45 void StartSearchWlanNetworkL(); |
|
46 |
|
47 /** |
|
48 * Destructor |
|
49 */ |
|
50 virtual ~CActiveSelectWLanDlgPlugin(); |
|
51 |
|
52 /** |
|
53 * Timer callback of iPeridoc. |
|
54 */ |
|
55 static TInt Tick( TAny* aObject ); |
|
56 |
|
57 /** |
|
58 * Timer callback of iPeridoc. |
|
59 */ |
|
60 void DoTick(); |
|
61 |
|
62 |
|
63 protected: |
|
64 /** |
|
65 * ConstructL |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 /** |
|
70 * Constructor |
|
71 * @param aPlugin a pointer to notifier plugin |
|
72 */ |
|
73 CActiveSelectWLanDlgPlugin( CSelectWLanDlgPlugin* aPlugin ); |
|
74 |
|
75 /** |
|
76 * Starts Timer |
|
77 * @param aTickInterval refersh interval |
|
78 */ |
|
79 void StartTimerL( TInt aTickInterval ); |
|
80 |
|
81 /** |
|
82 * Stops Timer |
|
83 */ |
|
84 void StopTimer(); |
|
85 |
|
86 /** |
|
87 * DoCancel from CActive |
|
88 */ |
|
89 virtual void DoCancel(); |
|
90 |
|
91 /** |
|
92 * RunL from CActive |
|
93 */ |
|
94 virtual void RunL(); |
|
95 |
|
96 /** |
|
97 * Gives back, refresh interval of scan for network |
|
98 */ |
|
99 TInt GetRefreshInterval(); |
|
100 |
|
101 /** |
|
102 * Destroy wait dialog |
|
103 */ |
|
104 void DestroyWaitDialog(); |
|
105 |
|
106 /** |
|
107 * Destroy results dialog |
|
108 */ |
|
109 void DestroyResultsListDialog(); |
|
110 |
|
111 |
|
112 protected: |
|
113 |
|
114 // a pointer to notifer, not owned |
|
115 CSelectWLanDlgPlugin* iPlugin; |
|
116 |
|
117 //owned |
|
118 CWlanNetworkDataProvider* iWlanDataProv; |
|
119 |
|
120 // Timer, to refresh details of networks. Owned. |
|
121 CPeriodic* iPeriodic; |
|
122 |
|
123 // Pointer to the dialog |
|
124 CSelectWLANDlg* iResultsListDialog; |
|
125 |
|
126 CAknWaitDialog* iWaitDialog; |
|
127 |
|
128 }; |
|
129 |
|
130 #endif // __ACTIVE_SELECT_WLAN_DLG_PLUGIN_H__ |
|
131 |
|
132 // End of file |