|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Snapshot of all active filter state that can be named and persisted. More...
#include <FilterProfilesPanel.hpp>

Public Member Functions | |
| nlohmann::json | ToJson () const |
| Serialises the profile to a JSON object. | |
Static Public Member Functions | |
| static FilterProfile | FromJson (const nlohmann::json &j) |
Public Attributes | |
| std::string | name |
| Human-readable profile name (used as the unique identifier) | |
| TimeRangeFilterPanel::State | timeRange |
Time range filter state; active=false means "no time filter". | |
| std::vector< std::string > | uncheckedActors |
| bool | hasTypeFilter {false} |
| std::vector< std::string > | checkedTypes |
Snapshot of all active filter state that can be named and persisted.
A profile captures the complete, user-visible filter state at a single point in time so that it can be restored later with a single click.
| Field | Restored by |
|---|---|
timeRange | TimeRangeFilterPanel::SetState() + Apply()/Clear() |
uncheckedActors | ActorsPanel::RestoreUncheckedActors() |
checkedTypes | TypeFilterView::SetCheckedTypes() |
ActorKey::Encode() / ActorKey::Decode() helpers defined in ActorDefinition.hpp.
|
static |
Deserialises a profile from a JSON object. Missing fields receive safe default values.

| nlohmann::json ui::qt::FilterProfile::ToJson | ( | ) | const |
Serialises the profile to a JSON object.

| std::vector<std::string> ui::qt::FilterProfile::checkedTypes |
Log-event type strings that were checked when the profile was saved. Only meaningful when hasTypeFilter is true.
| bool ui::qt::FilterProfile::hasTypeFilter {false} |
true when checkedTypes should be applied on load. false leaves the type filter panel untouched.
| std::string ui::qt::FilterProfile::name |
Human-readable profile name (used as the unique identifier)
| TimeRangeFilterPanel::State ui::qt::FilterProfile::timeRange |
Time range filter state; active=false means "no time filter".
| std::vector<std::string> ui::qt::FilterProfile::uncheckedActors |
Encoded actor keys (ActorKey::Encode(defName, actorName)) that were unchecked when the profile was saved. An empty vector means all actors were checked.