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 * WLAN scan platform specific implementation wrapper. |
|
16 */ |
|
17 |
|
18 #ifndef WLANQTUTILSSCAN_H |
|
19 #define WLANQTUTILSSCAN_H |
|
20 |
|
21 // System includes |
|
22 |
|
23 #include <QObject> |
|
24 #include <QList> |
|
25 #include <QSharedPointer> |
|
26 |
|
27 // User includes |
|
28 |
|
29 #include "wlanqtutilsiap.h" |
|
30 |
|
31 // Forward declarations |
|
32 |
|
33 class WlanQtUtilsScanIapPrivate; |
|
34 class WlanQtUtilsScanApPrivate; |
|
35 |
|
36 // External data types |
|
37 |
|
38 // Constants |
|
39 |
|
40 // Class declaration |
|
41 |
|
42 class WlanQtUtilsScan : public QObject |
|
43 { |
|
44 Q_OBJECT |
|
45 |
|
46 public: |
|
47 |
|
48 // Data types |
|
49 |
|
50 explicit WlanQtUtilsScan(QObject *parent = 0); |
|
51 |
|
52 ~WlanQtUtilsScan(); |
|
53 |
|
54 void scanWlanIaps(); |
|
55 |
|
56 void scanWlanAps(); |
|
57 |
|
58 void scanWlanDirect(const QString &ssid); |
|
59 |
|
60 void stopScan(); |
|
61 |
|
62 signals: |
|
63 |
|
64 /*! |
|
65 Signal indicating available WLAN IAP's. |
|
66 |
|
67 @param [in] availableIaps Available WLAN IAP's found in scan. |
|
68 */ |
|
69 void availableWlanIaps( |
|
70 QList< QSharedPointer<WlanQtUtilsIap> > &availableIaps); |
|
71 |
|
72 /*! |
|
73 Signal indicating available WLAN access points. |
|
74 |
|
75 @param [in] availableWlans Available WLAN access points found in scan. |
|
76 */ |
|
77 void availableWlanAps( |
|
78 QList< QSharedPointer<WlanQtUtilsAp> > &availableWlans); |
|
79 |
|
80 /*! |
|
81 Signal indicating that scanning failed. |
|
82 |
|
83 @param [in] status Scan status code (ScanStatus). |
|
84 */ |
|
85 void scanFailed(int status); |
|
86 |
|
87 public slots: |
|
88 |
|
89 protected: |
|
90 |
|
91 protected slots: |
|
92 |
|
93 private: |
|
94 |
|
95 Q_DISABLE_COPY(WlanQtUtilsScan) |
|
96 |
|
97 private slots: |
|
98 |
|
99 private: // data |
|
100 |
|
101 // Owned data |
|
102 |
|
103 //! Private implementation of IAP scan interface |
|
104 WlanQtUtilsScanIapPrivate *d_ptrIap; |
|
105 |
|
106 //! Private implementation of AP scan interface |
|
107 WlanQtUtilsScanApPrivate *d_ptrAp; |
|
108 |
|
109 // Not owned data |
|
110 |
|
111 // Friend classes |
|
112 |
|
113 // Needed to be able to emit public signals directly from |
|
114 // private implementation. |
|
115 friend class WlanQtUtilsScanIapPrivate; |
|
116 friend class WlanQtUtilsScanApPrivate; |
|
117 }; |
|
118 |
|
119 #endif // WLANQTUTILSSCAN_H |
|