mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
parent
b586913598
commit
2531de02eb
85 changed files with 68 additions and 1357 deletions
|
|
@ -48,7 +48,6 @@ class nsWifiListener
|
|||
bool mHasSentData;
|
||||
};
|
||||
|
||||
#ifndef MOZ_WIDGET_GONK
|
||||
class nsWifiMonitor final : nsIRunnable, nsIWifiMonitor, nsIObserver
|
||||
{
|
||||
public:
|
||||
|
|
@ -79,32 +78,5 @@ class nsWifiMonitor final : nsIRunnable, nsIWifiMonitor, nsIObserver
|
|||
nsAutoPtr<WindowsWifiScannerInterface> mWinWifiScanner;
|
||||
#endif
|
||||
};
|
||||
#else
|
||||
#include "nsIWifi.h"
|
||||
class nsWifiMonitor final : nsIWifiMonitor, nsIWifiScanResultsReady, nsIObserver
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIWIFIMONITOR
|
||||
NS_DECL_NSIOBSERVER
|
||||
NS_DECL_NSIWIFISCANRESULTSREADY
|
||||
|
||||
nsWifiMonitor();
|
||||
|
||||
private:
|
||||
~nsWifiMonitor();
|
||||
|
||||
void ClearTimer() {
|
||||
if (mTimer) {
|
||||
mTimer->Cancel();
|
||||
mTimer = nullptr;
|
||||
}
|
||||
}
|
||||
void StartScan();
|
||||
nsCOMArray<nsWifiAccessPoint> mLastAccessPoints;
|
||||
nsTArray<nsWifiListener> mListeners;
|
||||
nsCOMPtr<nsITimer> mTimer;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif // __nsWifiMonitor__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue