Provide access to the network device discovery cache
This commit is contained in:
parent
45081ad64e
commit
08d4599f01
@ -250,6 +250,11 @@ bool NetworkDeviceDiscoveryImpl::sendArpRequest(const QHostAddress &address)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QHash<MacAddress, NetworkDeviceInfo> NetworkDeviceDiscoveryImpl::cache() const
|
||||||
|
{
|
||||||
|
return m_networkInfoCache;
|
||||||
|
}
|
||||||
|
|
||||||
void NetworkDeviceDiscoveryImpl::setEnabled(bool enabled)
|
void NetworkDeviceDiscoveryImpl::setEnabled(bool enabled)
|
||||||
{
|
{
|
||||||
m_enabled = enabled;
|
m_enabled = enabled;
|
||||||
|
|||||||
@ -78,6 +78,8 @@ public:
|
|||||||
|
|
||||||
bool sendArpRequest(const QHostAddress &address) override;
|
bool sendArpRequest(const QHostAddress &address) override;
|
||||||
|
|
||||||
|
QHash<MacAddress, NetworkDeviceInfo> cache() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void setEnabled(bool enabled) override;
|
void setEnabled(bool enabled) override;
|
||||||
|
|
||||||
|
|||||||
@ -67,6 +67,8 @@ public:
|
|||||||
|
|
||||||
virtual bool sendArpRequest(const QHostAddress &address) = 0;
|
virtual bool sendArpRequest(const QHostAddress &address) = 0;
|
||||||
|
|
||||||
|
virtual QHash<MacAddress, NetworkDeviceInfo> cache() const = 0;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void runningChanged(bool running);
|
void runningChanged(bool running);
|
||||||
void networkDeviceInfoCacheUpdated();
|
void networkDeviceInfoCacheUpdated();
|
||||||
|
|||||||
Reference in New Issue
Block a user