michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef NSWIFIAPSCANNERDBUS_H_ michael@0: #define NSWIFIAPSCANNERDBUS_H_ michael@0: michael@0: #include "nsCOMArray.h" michael@0: michael@0: #define DBUS_API_SUBJECT_TO_CHANGE michael@0: #include michael@0: michael@0: class nsWifiAccessPoint; michael@0: michael@0: namespace mozilla { michael@0: michael@0: class nsWifiScannerDBus MOZ_FINAL michael@0: { michael@0: public: michael@0: nsWifiScannerDBus(nsCOMArray* aAccessPoints); michael@0: ~nsWifiScannerDBus(); michael@0: michael@0: nsresult Scan(); michael@0: michael@0: private: michael@0: nsresult SendMessage(const char* aInterface, michael@0: const char* aPath, michael@0: const char* aFuncCall); michael@0: nsresult IdentifyDevices(DBusMessage* aMsg); michael@0: nsresult IdentifyDeviceType(DBusMessage* aMsg, const char* aDevicePath); michael@0: nsresult IdentifyAccessPoints(DBusMessage* aMsg); michael@0: nsresult IdentifyAPProperties(DBusMessage* aMsg); michael@0: nsresult StoreSsid(DBusMessageIter* aVariant, nsWifiAccessPoint* aAp); michael@0: nsresult SetMac(DBusMessageIter* aVariant, nsWifiAccessPoint* aAp); michael@0: nsresult GetDBusIterator(DBusMessage* aMsg, DBusMessageIter* aIterArray); michael@0: michael@0: DBusConnection* mConnection; michael@0: nsCOMArray* mAccessPoints; michael@0: }; michael@0: michael@0: } // mozilla michael@0: michael@0: #endif // NSWIFIAPSCANNERDBUS_H_