Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QNetworkConnectionMonitorPrivate Class Reference
Inheritance diagram for QNetworkConnectionMonitorPrivate:
Collaboration diagram for QNetworkConnectionMonitorPrivate:

Public Types

using InterfaceType = QNetworkConnectionMonitor::InterfaceType
using InterfaceType = QNetworkConnectionMonitor::InterfaceType
Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>

Public Member Functions

void updateState (nw_path_t newState)
void reset ()
bool isReachable () const
QNetworkConnectionMonitor::InterfaceType getInterfaceType () const
bool startMonitoring ()
void stopMonitoring ()
bool isMonitoring () const
 QNetworkConnectionMonitorPrivate ()
 ~QNetworkConnectionMonitorPrivate ()
bool setTargets (const QHostAddress &local, const QHostAddress &remote)
bool startMonitoring ()
void stopMonitoring ()
void setConnectivity (NLM_CONNECTIVITY newConnectivity)
void updateState (nw_path_t newState)
void reset ()
bool isReachable () const
QNetworkConnectionMonitor::InterfaceType getInterfaceType () const
bool startMonitoring ()
void stopMonitoring ()
bool isMonitoring () const
 QNetworkConnectionMonitorPrivate ()
 ~QNetworkConnectionMonitorPrivate ()
bool setTargets (const QHostAddress &local, const QHostAddress &remote)
bool startMonitoring ()
void stopMonitoring ()
void setConnectivity (NLM_CONNECTIVITY newConnectivity)
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) const
void ensureConnectionData ()
void addConnection (int signal, Connection *c)
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
bool maybeSignalConnected (uint signalIndex) const
bool isDeclarativeSignalConnected (uint signalIdx) const
void connectNotify (const QMetaMethod &signal)
void disconnectNotify (const QMetaMethod &signal)
void reinitBindingStorageAfterThreadMove ()
virtual std::string flagsForDumping () const
virtual void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObjectdynamicMetaObject () const

Public Attributes

nw_path_status_t status = nw_path_status_invalid
QReadWriteLock monitorLock
nw_path_monitor_t monitor = nullptr
InterfaceType interface = InterfaceType::Unknown
Public Attributes inherited from QObjectPrivate
ExtraDataextraData
QAtomicPointer< QThreadDatathreadData
QAtomicPointer< ConnectionDataconnections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
Public Attributes inherited from QObjectData
QObjectq_ptr
QObjectparent
QObjectList children
uint isWidget: 1
uint blockSig: 1
uint wasDeleted: 1
uint isDeletingChildren: 1
uint sendChildEvents: 1
uint receiveChildEvents: 1
uint isWindow: 1
uint deleteLaterCalled: 1
uint isQuickItem: 1
uint willBeWidget: 1
uint wasWidget: 1
uint receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectDatametaObject
QBindingStorage bindingStorage

Additional Inherited Members

Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
static QObjectPrivateget (QObject *o)
static const QObjectPrivateget (const QObject *o)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static bool disconnect (const QObject *sender, int signal_index, void **slot)
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)

Detailed Description

Definition at line 54 of file qnetconmonitor_darwin.mm.

Member Typedef Documentation

◆ InterfaceType [1/2]

using QNetworkConnectionMonitorPrivate::InterfaceType = QNetworkConnectionMonitor::InterfaceType

Definition at line 60 of file qnetconmonitor_darwin.mm.

◆ InterfaceType [2/2]

using QNetworkConnectionMonitorPrivate::InterfaceType = QNetworkConnectionMonitor::InterfaceType

Definition at line 60 of file qnetconmonitor_darwin.mm.

Constructor & Destructor Documentation

◆ QNetworkConnectionMonitorPrivate() [1/2]

QNetworkConnectionMonitorPrivate::QNetworkConnectionMonitorPrivate ( )

Definition at line 305 of file qnetconmonitor_win.cpp.

◆ ~QNetworkConnectionMonitorPrivate() [1/2]

QNetworkConnectionMonitorPrivate::~QNetworkConnectionMonitorPrivate ( )

Definition at line 313 of file qnetconmonitor_win.cpp.

References stopMonitoring().

Here is the call graph for this function:

◆ QNetworkConnectionMonitorPrivate() [2/2]

QNetworkConnectionMonitorPrivate::QNetworkConnectionMonitorPrivate ( )

◆ ~QNetworkConnectionMonitorPrivate() [2/2]

QNetworkConnectionMonitorPrivate::~QNetworkConnectionMonitorPrivate ( )

Member Function Documentation

◆ getInterfaceType() [1/2]

QNetworkConnectionMonitor::InterfaceType QNetworkConnectionMonitorPrivate::getInterfaceType ( ) const

Definition at line 135 of file qnetconmonitor_darwin.mm.

◆ getInterfaceType() [2/2]

QNetworkConnectionMonitor::InterfaceType QNetworkConnectionMonitorPrivate::getInterfaceType ( ) const

◆ isMonitoring() [1/2]

bool QNetworkConnectionMonitorPrivate::isMonitoring ( ) const

Definition at line 182 of file qnetconmonitor_darwin.mm.

◆ isMonitoring() [2/2]

bool QNetworkConnectionMonitorPrivate::isMonitoring ( ) const

◆ isReachable() [1/2]

bool QNetworkConnectionMonitorPrivate::isReachable ( ) const

Definition at line 130 of file qnetconmonitor_darwin.mm.

Referenced by updateState().

Here is the caller graph for this function:

◆ isReachable() [2/2]

bool QNetworkConnectionMonitorPrivate::isReachable ( ) const

◆ reset() [1/2]

void QNetworkConnectionMonitorPrivate::reset ( )

Definition at line 124 of file qnetconmonitor_darwin.mm.

References stopMonitoring().

Here is the call graph for this function:

◆ reset() [2/2]

void QNetworkConnectionMonitorPrivate::reset ( )

◆ setConnectivity() [1/2]

void QNetworkConnectionMonitorPrivate::setConnectivity ( NLM_CONNECTIVITY newConnectivity)

Definition at line 346 of file qnetconmonitor_win.cpp.

◆ setConnectivity() [2/2]

void QNetworkConnectionMonitorPrivate::setConnectivity ( NLM_CONNECTIVITY newConnectivity)

◆ setTargets() [1/2]

bool QNetworkConnectionMonitorPrivate::setTargets ( const QHostAddress & local,
const QHostAddress & remote )
nodiscard

Definition at line 322 of file qnetconmonitor_win.cpp.

◆ setTargets() [2/2]

bool QNetworkConnectionMonitorPrivate::setTargets ( const QHostAddress & local,
const QHostAddress & remote )
nodiscard

◆ startMonitoring() [1/4]

bool QNetworkConnectionMonitorPrivate::startMonitoring ( )

Definition at line 140 of file qnetconmonitor_darwin.mm.

◆ startMonitoring() [2/4]

bool QNetworkConnectionMonitorPrivate::startMonitoring ( )

◆ startMonitoring() [3/4]

bool QNetworkConnectionMonitorPrivate::startMonitoring ( )
nodiscard

◆ startMonitoring() [4/4]

bool QNetworkConnectionMonitorPrivate::startMonitoring ( )
nodiscard

◆ stopMonitoring() [1/4]

void QNetworkConnectionMonitorPrivate::stopMonitoring ( )

Definition at line 166 of file qnetconmonitor_darwin.mm.

Referenced by ~QNetworkConnectionMonitorPrivate(), and reset().

Here is the caller graph for this function:

◆ stopMonitoring() [2/4]

void QNetworkConnectionMonitorPrivate::stopMonitoring ( )

◆ stopMonitoring() [3/4]

void QNetworkConnectionMonitorPrivate::stopMonitoring ( )

◆ stopMonitoring() [4/4]

void QNetworkConnectionMonitorPrivate::stopMonitoring ( )

◆ updateState() [1/2]

void QNetworkConnectionMonitorPrivate::updateState ( nw_path_t newState)

Definition at line 75 of file qnetconmonitor_darwin.mm.

References isReachable().

Here is the call graph for this function:

◆ updateState() [2/2]

void QNetworkConnectionMonitorPrivate::updateState ( nw_path_t newState)

Member Data Documentation

◆ interface

InterfaceType QNetworkConnectionMonitorPrivate::interface = InterfaceType::Unknown

Definition at line 61 of file qnetconmonitor_darwin.mm.

◆ monitor

nw_path_monitor_t QNetworkConnectionMonitorPrivate::monitor = nullptr

Definition at line 59 of file qnetconmonitor_darwin.mm.

◆ monitorLock

QReadWriteLock QNetworkConnectionMonitorPrivate::monitorLock
mutable

Definition at line 58 of file qnetconmonitor_darwin.mm.

◆ status

nw_path_status_t QNetworkConnectionMonitorPrivate::status = nw_path_status_invalid

Definition at line 57 of file qnetconmonitor_darwin.mm.


The documentation for this class was generated from the following files: