SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
INetworkPolicy.hpp
Go to the documentation of this file.
1
11#pragma once
12#include <QUrl>
13class QNetworkAccessManager;
14namespace OpenSWMM::Sdk
15{
18{
19public:
21 virtual ~INetworkPolicy() = default;
25 virtual bool allowed(const QUrl &url) const = 0;
29 virtual QNetworkAccessManager *shared() = 0;
30};
31}
Borrowed GUI-thread network service used for catalogue previews and data downloads.
Definition INetworkPolicy.hpp:18
virtual QNetworkAccessManager * shared()=0
Obtain the policy-enforcing network manager.
virtual bool allowed(const QUrl &url) const =0
Test a destination without making a request.
virtual ~INetworkPolicy()=default
Destroy an implementation; extensions never delete the host-owned service.
Public header-only ABI for independently compiled native GUI extensions.
Definition ExtensionHost.hpp:24