netwerk/wifi/nsWifiScannerDBus.h

Wed, 31 Dec 2014 06:55:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:46 +0100
changeset 1
ca08bd8f51b2
permissions
-rw-r--r--

Added tag TORBROWSER_REPLICA for changeset 6474c204b198

     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