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

Modal dialog presenting available application and plugin updates. More...

#include <UpdateDialog.hpp>

Inheritance diagram for ui::qt::UpdateDialog:
Inheritance graph
Collaboration diagram for ui::qt::UpdateDialog:
Collaboration graph

Signals

void ApplyPluginUpdate (QString pluginId, QString tempZipPath)
 Emitted when a plugin ZIP has been downloaded and is ready to install.
 

Public Member Functions

 UpdateDialog (const updates::UpdateCheckResult &result, UpdateChecker *checker, QWidget *parent=nullptr)
 

Private Slots

void OnUpdateSelectedClicked ()
 
void OnPluginProgress (QString pluginId, qint64 received, qint64 total)
 
void OnPluginComplete (QString pluginId, QString tempPath)
 
void OnPluginFailed (QString pluginId, QString error)
 

Private Member Functions

void BuildLayout (const updates::UpdateCheckResult &result)
 
void SetRowProgress (int row, int percent)
 

Private Attributes

UpdateChecker * checker
 
updates::UpdateCheckResult m_result
 
QTableWidget * m_pluginTable {nullptr}
 
QPushButton * m_updateBtn {nullptr}
 
int m_pendingDownloads {0}
 

Detailed Description

Modal dialog presenting available application and plugin updates.

Shows:

  • App section (hidden when no newer app version): version badge, release notes, "Open Release Page" button.
  • Plugin table: Name | Installed | Available | API compat | checkbox. Incompatible rows have their checkbox disabled.
  • "Update Selected" button downloads checked plugins via UpdateChecker, then signals MainWindow to apply them.

Constructor & Destructor Documentation

◆ UpdateDialog()

ui::qt::UpdateDialog::UpdateDialog ( const updates::UpdateCheckResult &  result,
UpdateChecker *  checker,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ ApplyPluginUpdate

void ui::qt::UpdateDialog::ApplyPluginUpdate ( QString  pluginId,
QString  tempZipPath 
)
signal

Emitted when a plugin ZIP has been downloaded and is ready to install.

Here is the caller graph for this function:

◆ BuildLayout()

void ui::qt::UpdateDialog::BuildLayout ( const updates::UpdateCheckResult &  result)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnPluginComplete

void ui::qt::UpdateDialog::OnPluginComplete ( QString  pluginId,
QString  tempPath 
)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnPluginFailed

void ui::qt::UpdateDialog::OnPluginFailed ( QString  pluginId,
QString  error 
)
privateslot
Here is the caller graph for this function:

◆ OnPluginProgress

void ui::qt::UpdateDialog::OnPluginProgress ( QString  pluginId,
qint64  received,
qint64  total 
)
privateslot
Here is the caller graph for this function:

◆ OnUpdateSelectedClicked

void ui::qt::UpdateDialog::OnUpdateSelectedClicked ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetRowProgress()

void ui::qt::UpdateDialog::SetRowProgress ( int  row,
int  percent 
)
private
Here is the caller graph for this function:

Member Data Documentation

◆ checker

UpdateChecker* ui::qt::UpdateDialog::checker
private

◆ m_pendingDownloads

int ui::qt::UpdateDialog::m_pendingDownloads {0}
private

◆ m_pluginTable

QTableWidget* ui::qt::UpdateDialog::m_pluginTable {nullptr}
private

◆ m_result

updates::UpdateCheckResult ui::qt::UpdateDialog::m_result
private

◆ m_updateBtn

QPushButton* ui::qt::UpdateDialog::m_updateBtn {nullptr}
private

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