1 /* |
|
2 * Copyright (c) 2007 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 * class definition for CCchWlanExtension |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CCHWLANEXTENSION_H |
|
21 #define CCHWLANEXTENSION_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <commdb.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CRepository; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * CCchWlanExtension class. |
|
34 * @since 3.2 |
|
35 * Extension class for WLAN functionality. |
|
36 */ |
|
37 class CCchWlanExtension : public CBase |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor |
|
43 */ |
|
44 static CCchWlanExtension* NewL( ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 ~CCchWlanExtension(); |
|
50 |
|
51 public: |
|
52 |
|
53 /** |
|
54 * Activates wlan scan if not activated |
|
55 */ |
|
56 void EnableWlanScanL(); |
|
57 |
|
58 /** |
|
59 * Activates wlan scan, disables it first |
|
60 */ |
|
61 void ForceEnableWlanScanL(); |
|
62 |
|
63 /** |
|
64 * Deactivates wlan scan |
|
65 */ |
|
66 void DisableWlanScanL(); |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * Checks WLAN availability setting status. |
|
72 * @since S60 3.2 |
|
73 * @return Show WLAN availability scan rate |
|
74 */ |
|
75 TUint32 CheckAvailabilityStatusL(); |
|
76 |
|
77 /** |
|
78 * Sets WLAN availability switch based on scan rate given. |
|
79 * @since S60 3.2 |
|
80 * @param aScanRate for WLAN setting data value to be set |
|
81 */ |
|
82 void SetAvailabilitySwitchL( TUint32 aScanRate ); |
|
83 |
|
84 private: |
|
85 |
|
86 /** |
|
87 * C++ default constructor |
|
88 */ |
|
89 CCchWlanExtension( ); |
|
90 |
|
91 /** |
|
92 * Symbian OS default constructor |
|
93 * @return void |
|
94 */ |
|
95 void ConstructL(); |
|
96 |
|
97 private: // data |
|
98 |
|
99 // Pointer to Access Point Comms Database |
|
100 CCommsDatabase* iAPCommsDatabase; |
|
101 |
|
102 // Pointer to Access Point Comms Database |
|
103 CCommsDatabase* iWLANCommsDatabase; |
|
104 |
|
105 //Central repository |
|
106 CRepository* iCchRepository; |
|
107 |
|
108 //Last saved scan interval |
|
109 TUint32 iLastSavedScanInterval; |
|
110 }; |
|
111 |
|
112 #endif // CCHWLANEXTENSION_H |
|
113 |
|
114 // End of File |
|