22 #ifndef NET_ADDRESSRESOLVER_H
23 #define NET_ADDRESSRESOLVER_H
26 #include <ktorrent_export.h>
27 #include <net/address.h>
36 class KTORRENT_EXPORT AddressResolver :
public QObject
47 AddressResolver(
const QString & host, bt::Uint16 port, QObject* parent,
const char* slot);
48 ~AddressResolver()
override;
51 bool succeeded()
const {
return succesfull;}
64 static void resolve(
const QString & host, bt::Uint16 port, QObject* parent,
const char* slot);
72 static net::Address resolve(
const QString & host, bt::Uint16 port);
82 void hostResolved(
const QHostInfo & res);
93 #endif // NET_ADDRESSRESOLVER_H