mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Move network related code to core/net.
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include "webui.h"
|
||||
#include "http/server.h"
|
||||
#include "webapplication.h"
|
||||
#include "dnsupdater.h"
|
||||
#include "core/net/dnsupdater.h"
|
||||
#include "preferences.h"
|
||||
#include "logger.h"
|
||||
|
||||
@@ -82,7 +82,7 @@ void WebUI::init()
|
||||
// DynDNS
|
||||
if (pref->isDynDNSEnabled()) {
|
||||
if (!dynDNSUpdater_)
|
||||
dynDNSUpdater_ = new DNSUpdater(this);
|
||||
dynDNSUpdater_ = new Net::DNSUpdater(this);
|
||||
else
|
||||
dynDNSUpdater_->updateCredentials();
|
||||
}
|
||||
|
||||
@@ -32,8 +32,16 @@
|
||||
#include <QObject>
|
||||
#include <QPointer>
|
||||
|
||||
namespace Http { class Server; }
|
||||
class DNSUpdater;
|
||||
namespace Http
|
||||
{
|
||||
class Server;
|
||||
}
|
||||
|
||||
namespace Net
|
||||
{
|
||||
class DNSUpdater;
|
||||
}
|
||||
|
||||
class AbstractWebApplication;
|
||||
|
||||
class WebUI : public QObject
|
||||
@@ -48,7 +56,7 @@ private slots:
|
||||
|
||||
private:
|
||||
QPointer<Http::Server> httpServer_;
|
||||
QPointer<DNSUpdater> dynDNSUpdater_;
|
||||
QPointer<Net::DNSUpdater> dynDNSUpdater_;
|
||||
QPointer<AbstractWebApplication> webapp_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user