4#ifndef QNETWORKLISTMANAGEREVENTS_H
5#define QNETWORKLISTMANAGEREVENTS_H
7#include <QtNetwork/private/qtnetworkglobal_p.h>
9#include <QtNetwork/qnetworkinformation.h>
11#include <QtCore/qstring.h>
12#include <QtCore/qobject.h>
13#include <QtCore/qloggingcategory.h>
14#include <QtCore/qmutex.h>
18#include <netlistmgr.h>
19#include <wrl/client.h>
20#include <wrl/wrappers/corewrappers.h>
22#if QT_CONFIG(cpp_winrt)
23#include <QtCore/private/qt_winrtbase_p.h>
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();
66#if QT_CONFIG(cpp_winrt)
67 void emitWinRTUpdates();
69 winrt::event_token
token;
ULONG STDMETHODCALLTYPE Release() override
void transportMediumChanged(QNetworkInformation::TransportMedium)
void isMeteredChanged(bool)
void connectivityChanged(NLM_CONNECTIVITY)
ULONG STDMETHODCALLTYPE AddRef() override
Combined button and popup list for selecting options.
#define Q_DECLARE_LOGGING_CATEGORY(name)
IUIViewSettingsInterop __RPC__in REFIID riid