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);
123 void requestRefresh(
bool userInitiated =
false,
bool clearExtcaps =
true);
180 void onPreferencesChanged();
184 void maybeSchedule();
188 void appInitialized();
191 QStringList currentNames_;
193 bool refreshPending_;
194 bool pendingUserInitiated_;
195 bool pendingClearExtcaps_;
198 bool prevCaptureNoExtcap_;
199 bool initialScanDone_;
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:84
void notifyListChanged()
Announces that the interface list changed without re-enumerating.
Definition interface_list_manager.cpp:707
QStringList currentInterfaceNames() const
Interface names from the most recent completed scan.
Definition interface_list_manager.cpp:79
void reapplyInterfacePreferences()
Re-derives interface display attributes from preferences, in place.
Definition interface_list_manager.cpp:805
void requestRefresh(bool userInitiated=false, bool clearExtcaps=true)
Requests a (coalesced, deferred-if-capturing) interface rescan.
Definition interface_list_manager.cpp:684
InterfaceStatistics * statistics() const
Returns the live interface statistics owned by this manager.
Definition interface_list_manager.cpp:89
void refreshNow(bool clearExtcaps=true)
Performs an interface rescan synchronously, before returning.
Definition interface_list_manager.cpp:697
void setCaptureActive(bool active)
Tells the manager whether a capture is active.
Definition interface_list_manager.cpp:712
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