netwerk/wifi/nsWifiScannerDBus.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifndef NSWIFIAPSCANNERDBUS_H_
     6 #define NSWIFIAPSCANNERDBUS_H_
     8 #include "nsCOMArray.h"
    10 #define DBUS_API_SUBJECT_TO_CHANGE
    11 #include <dbus/dbus.h>
    13 class nsWifiAccessPoint;
    15 namespace mozilla {
    17 class nsWifiScannerDBus MOZ_FINAL
    18 {
    19 public:
    20   nsWifiScannerDBus(nsCOMArray<nsWifiAccessPoint>* aAccessPoints);
    21   ~nsWifiScannerDBus();
    23   nsresult Scan();
    25 private:
    26   nsresult SendMessage(const char* aInterface,
    27                        const char* aPath,
    28                        const char* aFuncCall);
    29   nsresult IdentifyDevices(DBusMessage* aMsg);
    30   nsresult IdentifyDeviceType(DBusMessage* aMsg, const char* aDevicePath);
    31   nsresult IdentifyAccessPoints(DBusMessage* aMsg);
    32   nsresult IdentifyAPProperties(DBusMessage* aMsg);
    33   nsresult StoreSsid(DBusMessageIter* aVariant, nsWifiAccessPoint* aAp);
    34   nsresult SetMac(DBusMessageIter* aVariant, nsWifiAccessPoint* aAp);
    35   nsresult GetDBusIterator(DBusMessage* aMsg, DBusMessageIter* aIterArray);
    37   DBusConnection* mConnection;
    38   nsCOMArray<nsWifiAccessPoint>* mAccessPoints;
    39 };
    41 } // mozilla
    43 #endif // NSWIFIAPSCANNERDBUS_H_

mercurial