13#ifndef INTERFACE_LIST_MANAGER_H
14#define INTERFACE_LIST_MANAGER_H
100 static GList *cachedInterfaceList(
int *err,
char **err_str);
110 static void cacheInterfaceList(GList *if_list);
180 void onPreferencesChanged();
184 void maybeSchedule();
187 QStringList currentNames_;
189 bool refreshPending_;
190 bool pendingUserInitiated_;
193 bool prevCaptureNoInterfaceLoad_;
194 bool prevCaptureNoExtcap_;
InterfaceListManager(QObject *parent=nullptr)
Constructs an idle manager.
Definition interface_list_manager.cpp:40
bool isScanning() const
Whether a scan is currently in progress.
Definition interface_list_manager.cpp:75
void notifyListChanged()
Announces that the interface list changed without re-enumerating.
Definition interface_list_manager.cpp:665
QStringList currentInterfaceNames() const
Interface names from the most recent completed scan.
Definition interface_list_manager.cpp:70
void refreshNow()
Performs an interface rescan synchronously, before returning.
Definition interface_list_manager.cpp:656
void reapplyInterfacePreferences()
Re-derives interface display attributes from preferences, in place.
Definition interface_list_manager.cpp:759
void requestRefresh(bool userInitiated=false)
Requests a (coalesced, deferred-if-capturing) interface rescan.
Definition interface_list_manager.cpp:649
InterfaceStatistics * statistics() const
Returns the live interface statistics owned by this manager.
Definition interface_list_manager.cpp:80
void setCaptureActive(bool active)
Tells the manager whether a capture is active.
Definition interface_list_manager.cpp:670
void interfaceListChanged()
Emitted once after a scan, when the interface list is stable.
GUI-thread facade that owns the interface-statistics sampler and is the single source of truth for pe...
Definition interface_statistics.h:50