Move network related code to core/net.

This commit is contained in:
Vladimir Golovnev (Glassez)
2015-04-13 19:02:48 +03:00
parent 3eeed813d6
commit 4b5e7e6168
14 changed files with 154 additions and 70 deletions

View File

@@ -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();
}

View File

@@ -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_;
};