netwerk/wifi/nsWifiScannerDBus.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/wifi/nsWifiScannerDBus.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef NSWIFIAPSCANNERDBUS_H_
     1.9 +#define NSWIFIAPSCANNERDBUS_H_
    1.10 +
    1.11 +#include "nsCOMArray.h"
    1.12 +
    1.13 +#define DBUS_API_SUBJECT_TO_CHANGE
    1.14 +#include <dbus/dbus.h>
    1.15 +
    1.16 +class nsWifiAccessPoint;
    1.17 +
    1.18 +namespace mozilla {
    1.19 +
    1.20 +class nsWifiScannerDBus MOZ_FINAL
    1.21 +{
    1.22 +public:
    1.23 +  nsWifiScannerDBus(nsCOMArray<nsWifiAccessPoint>* aAccessPoints);
    1.24 +  ~nsWifiScannerDBus();
    1.25 +
    1.26 +  nsresult Scan();
    1.27 +
    1.28 +private:
    1.29 +  nsresult SendMessage(const char* aInterface,
    1.30 +                       const char* aPath,
    1.31 +                       const char* aFuncCall);
    1.32 +  nsresult IdentifyDevices(DBusMessage* aMsg);
    1.33 +  nsresult IdentifyDeviceType(DBusMessage* aMsg, const char* aDevicePath);
    1.34 +  nsresult IdentifyAccessPoints(DBusMessage* aMsg);
    1.35 +  nsresult IdentifyAPProperties(DBusMessage* aMsg);
    1.36 +  nsresult StoreSsid(DBusMessageIter* aVariant, nsWifiAccessPoint* aAp);
    1.37 +  nsresult SetMac(DBusMessageIter* aVariant, nsWifiAccessPoint* aAp);
    1.38 +  nsresult GetDBusIterator(DBusMessage* aMsg, DBusMessageIter* aIterArray);
    1.39 +
    1.40 +  DBusConnection* mConnection;
    1.41 +  nsCOMArray<nsWifiAccessPoint>* mAccessPoints;
    1.42 +};
    1.43 +
    1.44 +} // mozilla
    1.45 +
    1.46 +#endif // NSWIFIAPSCANNERDBUS_H_

mercurial