|
|
@ -29,6 +29,7 @@ |
|
|
|
#pragma once |
|
|
|
#pragma once |
|
|
|
|
|
|
|
|
|
|
|
#include <optional> |
|
|
|
#include <optional> |
|
|
|
|
|
|
|
#include <utility> |
|
|
|
|
|
|
|
|
|
|
|
#include <QtContainerFwd> |
|
|
|
#include <QtContainerFwd> |
|
|
|
#include <QHostAddress> |
|
|
|
#include <QHostAddress> |
|
|
@ -40,7 +41,7 @@ class QString; |
|
|
|
namespace Utils::Net |
|
|
|
namespace Utils::Net |
|
|
|
{ |
|
|
|
{ |
|
|
|
// alias for `QHostAddress::parseSubnet()` return type
|
|
|
|
// alias for `QHostAddress::parseSubnet()` return type
|
|
|
|
using Subnet = QPair<QHostAddress, int>; |
|
|
|
using Subnet = std::pair<QHostAddress, int>; |
|
|
|
|
|
|
|
|
|
|
|
bool isValidIP(const QString &ip); |
|
|
|
bool isValidIP(const QString &ip); |
|
|
|
std::optional<Subnet> parseSubnet(const QString &subnetStr); |
|
|
|
std::optional<Subnet> parseSubnet(const QString &subnetStr); |
|
|
|