equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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 * |
|
16 */ |
|
17 |
|
18 #ifndef WLANSETTINGS_H_ |
|
19 #define WLANSETTINGS_H_ |
|
20 |
|
21 // System includes |
|
22 |
|
23 #include <QObject> |
|
24 |
|
25 // User includes |
|
26 |
|
27 #include "wlansettings_s60_p.h" |
|
28 |
|
29 // Forward declarations |
|
30 |
|
31 // External data types |
|
32 |
|
33 // Constants |
|
34 |
|
35 // Class declaration |
|
36 |
|
37 class WlanSettings : public QObject |
|
38 { |
|
39 Q_OBJECT |
|
40 |
|
41 public: |
|
42 |
|
43 enum ScanNetworkType { |
|
44 EScanNetworkAuto = 0, |
|
45 EScanNetworkUserDefined |
|
46 }; |
|
47 |
|
48 WlanSettings(); |
|
49 |
|
50 ~WlanSettings(); |
|
51 |
|
52 int init(); |
|
53 |
|
54 int loadSettings(); |
|
55 |
|
56 ScanNetworkType scanNetworkType(); |
|
57 |
|
58 uint scanInterval(); |
|
59 |
|
60 int joinWlanMode() const; |
|
61 |
|
62 int setJoinWlanMode(int mode); |
|
63 |
|
64 int isPowerSavingEnabled() const; |
|
65 |
|
66 int isPsmEnabled() const; |
|
67 |
|
68 int setWlanPowerSaving(int powerSavingOption); |
|
69 |
|
70 int setWlanScanInterval(uint scanInterval); |
|
71 |
|
72 private: |
|
73 |
|
74 void readPsmKey(); |
|
75 |
|
76 Q_DISABLE_COPY(WlanSettings) |
|
77 |
|
78 private: //data |
|
79 |
|
80 CWlanSettingsPrivate *mImpl; |
|
81 |
|
82 int mPsmKeyValue; |
|
83 |
|
84 }; |
|
85 |
|
86 |
|
87 #endif /* WLANSETTINGS_H_ */ |