LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
plugin::AIProviderPlugin Class Reference

#include <AIProviderPlugin.hpp>

Collaboration diagram for plugin::AIProviderPlugin:
Collaboration graph

Public Member Functions

 AIProviderPlugin ()
 
 ~AIProviderPlugin ()=default
 
PluginMetadata GetMetadata () const
 
bool Initialize ()
 
void Shutdown ()
 
PluginStatus GetStatus () const
 
std::string GetLastError () const
 
bool IsLicensed () const
 
bool SetLicense (const std::string &licenseKey)
 
bool ValidateConfiguration () const
 
QWidget * CreateTab (QWidget *parent)
 
QWidget * CreateBottomPanel (QWidget *parent, ai::IAIService *service, void *events)
 
QWidget * GetConfigurationUI ()
 
QWidget * GetConfigurationUI (QWidget *parent)
 
std::shared_ptr< ai::IAIService > CreateService (const nlohmann::json &settings)
 
void SetEventsContainer (std::shared_ptr< void > eventsContainer)
 
void SetEventsContainerRaw (void *eventsContainerRaw)
 
void OnEventsUpdated ()
 

Private Member Functions

void ensureAnalyzer ()
 
nlohmann::json LoadPluginConfig ()
 
void SavePluginConfig (const nlohmann::json &config)
 
std::filesystem::path GetConfigFilePath () const
 

Private Attributes

PluginStatus m_status {PluginStatus::Unloaded}
 
std::string m_lastError
 
std::shared_ptr< ai::AIServiceWrapper > m_aiService
 
std::shared_ptr< ai::LogAnalyzer > m_analyzer
 
std::shared_ptr< void > m_events
 
ui::qt::AIAnalysisPanel * m_analysisPanel {nullptr}
 
ui::qt::AIConfigPanel * m_configPanel {nullptr}
 

Constructor & Destructor Documentation

◆ AIProviderPlugin()

plugin::AIProviderPlugin::AIProviderPlugin ( )

◆ ~AIProviderPlugin()

plugin::AIProviderPlugin::~AIProviderPlugin ( )
default

Member Function Documentation

◆ CreateBottomPanel()

QWidget * plugin::AIProviderPlugin::CreateBottomPanel ( QWidget *  parent,
ai::IAIService *  service,
void *  events 
)
Here is the call graph for this function:

◆ CreateService()

std::shared_ptr< ai::IAIService > plugin::AIProviderPlugin::CreateService ( const nlohmann::json &  settings)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateTab()

QWidget * plugin::AIProviderPlugin::CreateTab ( QWidget *  parent)
Here is the call graph for this function:

◆ ensureAnalyzer()

void plugin::AIProviderPlugin::ensureAnalyzer ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetConfigFilePath()

std::filesystem::path plugin::AIProviderPlugin::GetConfigFilePath ( ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetConfigurationUI() [1/2]

QWidget * plugin::AIProviderPlugin::GetConfigurationUI ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetConfigurationUI() [2/2]

QWidget * plugin::AIProviderPlugin::GetConfigurationUI ( QWidget *  parent)
Here is the call graph for this function:

◆ GetLastError()

std::string plugin::AIProviderPlugin::GetLastError ( ) const

◆ GetMetadata()

PluginMetadata plugin::AIProviderPlugin::GetMetadata ( ) const
Here is the caller graph for this function:

◆ GetStatus()

PluginStatus plugin::AIProviderPlugin::GetStatus ( ) const

◆ Initialize()

bool plugin::AIProviderPlugin::Initialize ( )

◆ IsLicensed()

bool plugin::AIProviderPlugin::IsLicensed ( ) const

◆ LoadPluginConfig()

nlohmann::json plugin::AIProviderPlugin::LoadPluginConfig ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnEventsUpdated()

void plugin::AIProviderPlugin::OnEventsUpdated ( )

◆ SavePluginConfig()

void plugin::AIProviderPlugin::SavePluginConfig ( const nlohmann::json &  config)
private
Here is the call graph for this function:

◆ SetEventsContainer()

void plugin::AIProviderPlugin::SetEventsContainer ( std::shared_ptr< void >  eventsContainer)
Here is the call graph for this function:

◆ SetEventsContainerRaw()

void plugin::AIProviderPlugin::SetEventsContainerRaw ( void *  eventsContainerRaw)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetLicense()

bool plugin::AIProviderPlugin::SetLicense ( const std::string &  licenseKey)

◆ Shutdown()

void plugin::AIProviderPlugin::Shutdown ( )

◆ ValidateConfiguration()

bool plugin::AIProviderPlugin::ValidateConfiguration ( ) const

Member Data Documentation

◆ m_aiService

std::shared_ptr<ai::AIServiceWrapper> plugin::AIProviderPlugin::m_aiService
private

◆ m_analysisPanel

ui::qt::AIAnalysisPanel* plugin::AIProviderPlugin::m_analysisPanel {nullptr}
private

◆ m_analyzer

std::shared_ptr<ai::LogAnalyzer> plugin::AIProviderPlugin::m_analyzer
private

◆ m_configPanel

ui::qt::AIConfigPanel* plugin::AIProviderPlugin::m_configPanel {nullptr}
private

◆ m_events

std::shared_ptr<void> plugin::AIProviderPlugin::m_events
private

◆ m_lastError

std::string plugin::AIProviderPlugin::m_lastError
private

◆ m_status

PluginStatus plugin::AIProviderPlugin::m_status {PluginStatus::Unloaded}
private

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