/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */

#ifndef mozilla_dom_WifiOptionsBinding_h__
#define mozilla_dom_WifiOptionsBinding_h__

#include "js/RootingAPI.h"
#include "jspubtd.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h"

namespace mozilla {
namespace dom {

class NativePropertyHooks;
struct WifiCommandOptionsAtoms;
struct WifiResultOptionsAtoms;

} // namespace dom
} // namespace mozilla

namespace mozilla {
namespace dom {

struct WifiCommandOptions : public MainThreadDictionaryBase
{
  nsString mCmd;
  Optional<nsString > mDefaultValue;
  Optional<int32_t > mDns1;
  Optional<int32_t > mDns2;
  Optional<int32_t > mGateway;
  int32_t mId;
  Optional<nsString > mIfname;
  Optional<int32_t > mIpaddr;
  Optional<nsString > mKey;
  Optional<int32_t > mMask;
  Optional<nsString > mRequest;
  Optional<int32_t > mRoute;
  Optional<nsString > mValue;

  inline WifiCommandOptions()
  {
  }

  explicit inline WifiCommandOptions(const WifiCommandOptions& aOther)
  {
    *this = aOther;
  }

  bool
  Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value");

  bool
  Init(const nsAString& aJSON);

  bool
  ToObject(JSContext* cx, JS::Handle<JSObject*> parentObject, JS::MutableHandle<JS::Value> rval) const;

  void
  TraceDictionary(JSTracer* trc);

  void
  operator=(const WifiCommandOptions& aOther);

private:
  static bool
  InitIds(JSContext* cx, WifiCommandOptionsAtoms* atomsCache);
};
struct WifiCommandOptionsInitializer : public WifiCommandOptions
{
  WifiCommandOptionsInitializer();
};


struct WifiResultOptions : public MainThreadDictionaryBase
{
  nsString mBroadcast_str;
  int32_t mDns1;
  nsString mDns1_str;
  int32_t mDns2;
  nsString mDns2_str;
  nsString mError;
  int32_t mGateway;
  nsString mGateway_str;
  int32_t mId;
  int32_t mIpaddr;
  nsString mIpaddr_str;
  int32_t mLease;
  int32_t mMask;
  nsString mMask_str;
  nsString mReply;
  nsString mRoute;
  int32_t mServer;
  nsString mServer_str;
  int32_t mStatus;
  nsString mValue;
  nsString mVendor_str;

  inline WifiResultOptions()
  {
  }

  explicit inline WifiResultOptions(const WifiResultOptions& aOther)
  {
    *this = aOther;
  }

  bool
  Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value");

  bool
  Init(const nsAString& aJSON);

  bool
  ToObject(JSContext* cx, JS::Handle<JSObject*> parentObject, JS::MutableHandle<JS::Value> rval) const;

  void
  TraceDictionary(JSTracer* trc);

  void
  operator=(const WifiResultOptions& aOther);

private:
  static bool
  InitIds(JSContext* cx, WifiResultOptionsAtoms* atomsCache);
};
struct WifiResultOptionsInitializer : public WifiResultOptions
{
  WifiResultOptionsInitializer();
};


} // namespace dom
} // namespace mozilla

#endif // mozilla_dom_WifiOptionsBinding_h__
