/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef WINDOWSCOMMONS_H
#define WINDOWSCOMMONS_H

#include <QString>

class QHostAddress;

class WindowsCommons final {
 public:
  static QString tunnelConfigFile();
  static QString tunnelLogFile();

  // Returns whether we need to fallback to software rendering.
  static bool requireSoftwareRendering();

  // Returns the Interface Index of the VPN Adapter
  static int VPNAdapterIndex();
  // Returns the Interface Index that could Route to dst
  static int AdapterIndexTo(const QHostAddress& dst);
  // Returns the Path of the Current process
  static QString getCurrentPath();
};

#endif  // WINDOWSCOMMONS_H
