equal
deleted
inserted
replaced
31 |
31 |
32 // Forward declarations |
32 // Forward declarations |
33 |
33 |
34 class WlanQtUtilsAp; |
34 class WlanQtUtilsAp; |
35 class WlanQtUtilsConnection; |
35 class WlanQtUtilsConnection; |
36 class WlanQtUtilsConMonWrapperScan; |
|
37 class WlanQtUtilsConMonWrapperInfo; |
36 class WlanQtUtilsConMonWrapperInfo; |
38 class WlanQtUtilsConMonWrapperDisconnect; |
37 class WlanQtUtilsConMonWrapperDisconnect; |
39 |
38 |
40 // External data types |
39 // External data types |
41 |
40 |
49 |
48 |
50 public: |
49 public: |
51 |
50 |
52 // Data types |
51 // Data types |
53 |
52 |
54 WlanQtUtilsConMonWrapper(QObject *parent = 0); |
53 explicit WlanQtUtilsConMonWrapper(QObject *parent = 0); |
55 |
54 |
56 ~WlanQtUtilsConMonWrapper(); |
55 ~WlanQtUtilsConMonWrapper(); |
57 |
56 |
58 void scanAvailableWlanAPs(); |
|
59 |
|
60 void stopScan(); |
|
61 |
|
62 WlanQtUtilsConnection *activeConnection() const; |
57 WlanQtUtilsConnection *activeConnection() const; |
63 |
58 |
64 WlanQtUtilsConnection *connectionInfo(uint connectionId) const; |
59 WlanQtUtilsConnection *connectionInfo(uint connectionId) const; |
65 |
60 |
66 void disconnectIap(int iapId); |
61 void disconnectIap(int iapId); |
67 |
62 |
68 signals: |
63 signals: |
69 |
64 |
70 /*! |
|
71 Signal indicating available WLAN access points. |
|
72 |
|
73 @param [in] availableWlans Available WLAN access points found in scan. |
|
74 */ |
|
75 void availableWlanApsFromWrapper( |
|
76 QList< QSharedPointer<WlanQtUtilsAp> > &availableWlans); |
|
77 |
|
78 /*! |
65 /*! |
79 Signal indicating that a new connection has been created. |
66 Signal indicating that a new connection has been created. |
80 |
67 |
81 @param [in] connectionId Connection ID. |
68 @param [in] connectionId Connection ID. |
82 */ |
69 */ |
111 |
98 |
112 private: // data |
99 private: // data |
113 |
100 |
114 // Owned data |
101 // Owned data |
115 |
102 |
116 //! Private implementation of scan interface |
|
117 QScopedPointer<WlanQtUtilsConMonWrapperScan> d_ptrScan; |
|
118 |
|
119 //! Private implementation of connection info interface |
103 //! Private implementation of connection info interface |
120 QScopedPointer<WlanQtUtilsConMonWrapperInfo> d_ptrInfo; |
104 QScopedPointer<WlanQtUtilsConMonWrapperInfo> d_ptrInfo; |
121 |
105 |
122 //! Private implementation of connection disconnect interface |
106 //! Private implementation of connection disconnect interface |
123 QScopedPointer<WlanQtUtilsConMonWrapperDisconnect> d_ptrDisconnect; |
107 QScopedPointer<WlanQtUtilsConMonWrapperDisconnect> d_ptrDisconnect; |
124 |
108 |
125 // Friend classes |
109 // Friend classes |
126 |
110 |
127 // These are defined as friend classes in order to be able to emit |
111 // Friend classes in order to be able to emit public signals directly |
128 // public signals directly from private implementation classes. |
112 // from private implementation classes. |
129 friend class WlanQtUtilsConMonWrapperScan; |
|
130 friend class WlanQtUtilsConMonWrapperInfo; |
113 friend class WlanQtUtilsConMonWrapperInfo; |
131 |
114 |
132 // This is defined as a friend class in order to be able to call |
115 // This is defined as a friend class in order to be able to call |
133 // event handlers of wrappers from unit tests. |
116 // event handlers of wrappers from unit tests. |
134 friend class TestWlanQtUtils; |
117 friend class TestWlanQtUtils; |