38 HRESULT STDMETHODCALLTYPE QueryInterface(REFIID
riid,
void **ppvObject)
override;
40 ULONG STDMETHODCALLTYPE
AddRef()
override {
return ++
ref; }
41 ULONG STDMETHODCALLTYPE
Release()
override
50 HRESULT STDMETHODCALLTYPE ConnectivityChanged(NLM_CONNECTIVITY newConnectivity)
override;
52 [[nodiscard]]
bool start();
55 [[nodiscard]]
bool checkBehindCaptivePortal();
63 ComPtr<INetworkListManager> networkListManager =
nullptr;
64 ComPtr<IConnectionPoint> connectionPoint =
nullptr;
66#if QT_CONFIG(cpp_winrt)
67 void emitWinRTUpdates();
69 winrt::event_token
token;
73 QAtomicInteger<ULONG>
ref = 0;