LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
mvc::IController Class Referenceabstract

Toolkit-agnostic controller interface for the MVC architecture. More...

#include <IControler.hpp>

Inheritance diagram for mvc::IController:
Inheritance graph
Collaboration diagram for mvc::IController:
Collaboration graph

Public Member Functions

 IController ()
 Default constructor.
 
virtual ~IController ()
 Default destructor.
 
virtual std::vector< std::string > GetSearchColumns () const =0
 
virtual void SearchEvents (const std::string &query, const std::vector< std::string > &columns, const std::function< void(const SearchResultRow &)> &onResult, std::function< void(size_t, size_t)> progressCallback={})=0
 
virtual void LoadLogFile (const std::filesystem::path &filepath, parser::IDataParserObserver *observer)=0
 Parses and loads the provided log file into the model.
 
virtual uint32_t GetParserCurrentProgress () const =0
 
virtual uint32_t GetParserTotalProgress () const =0
 

Detailed Description

Toolkit-agnostic controller interface for the MVC architecture.

Implementations coordinate between the data model (EventsContainer) and the view layer. The default implementation is mvc::MainController.

Note
The file that declares this interface is named IControler.hpp (one 'l') for historical reasons. Include that file, not this Doxygen-rendered name.

Constructor & Destructor Documentation

◆ IController()

mvc::IController::IController ( )
inline

Default constructor.

Initializes the controller and prepares it for use.

◆ ~IController()

virtual mvc::IController::~IController ( )
inlinevirtual

Default destructor.

Cleans up resources when the controller is destroyed.

Member Function Documentation

◆ GetParserCurrentProgress()

virtual uint32_t mvc::IController::GetParserCurrentProgress ( ) const
pure virtual
Returns
current parser progress (0 if idle).

Implemented in mvc::MainController.

Here is the caller graph for this function:

◆ GetParserTotalProgress()

virtual uint32_t mvc::IController::GetParserTotalProgress ( ) const
pure virtual
Returns
parser total progress target (0 if unknown/idle).

Implemented in mvc::MainController.

Here is the caller graph for this function:

◆ GetSearchColumns()

virtual std::vector< std::string > mvc::IController::GetSearchColumns ( ) const
pure virtual

Implemented in mvc::MainController.

Here is the caller graph for this function:

◆ LoadLogFile()

virtual void mvc::IController::LoadLogFile ( const std::filesystem::path &  filepath,
parser::IDataParserObserver *  observer 
)
pure virtual

Parses and loads the provided log file into the model.

Implemented in mvc::MainController.

◆ SearchEvents()

virtual void mvc::IController::SearchEvents ( const std::string &  query,
const std::vector< std::string > &  columns,
const std::function< void(const SearchResultRow &)> &  onResult,
std::function< void(size_t, size_t)>  progressCallback = {} 
)
pure virtual

Implemented in mvc::MainController.

Here is the caller graph for this function:

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