This class is responsible for checking and notifying about software updates. More...
#include <UpdateChecker.hpp>
Signals | |
void | finishedCheck () |
Triggered when the completion of the application update check process. | |
void | updateReleased (const drn::updating::SemanticVersion &latest) |
Triggered when a new version has been released relative to the built version. | |
Public Member Functions | |
UpdateChecker (networking::NotifyingSender &sender, const foundation::QtPtr<::QObject > &parent) | |
Full initialisation constructor that manages the update fetching operations. It initialises itself with a given NotifyingSender for sending network requests, and a parent QObject to maintain the lifespan of this object within an existing object hierarchy. | |
void | check () |
Begins the process of checking if there is an application update. | |
This class is responsible for checking and notifying about software updates.
drn::updating::UpdateChecker::UpdateChecker | ( | networking::NotifyingSender & | sender, |
const foundation::QtPtr<::QObject > & | parent ) |
Full initialisation constructor that manages the update fetching operations. It initialises itself with a given NotifyingSender for sending network requests, and a parent QObject to maintain the lifespan of this object within an existing object hierarchy.
sender | Reference to the object responsible for sending network requests. |
parent | A Qt smart pointer to a QObject that acts as the parent of this instance. It ensures the object is properly managed within Qt's ownership model. |
void drn::updating::UpdateChecker::check | ( | ) |
Begins the process of checking if there is an application update.
|
signal |
Triggered when the completion of the application update check process.
This signal is emitted after the update checking operation concludes, regardless of whether a new update was found, no updates were available, or an error occurred during the process. It serves as a notification that the check operation has finished and ensures any dependent resources or operations can proceed accordingly.
Usage: This signal is commonly connected to a slot or lambda to handle any clean-up, logging, or subsequent actions once the update check is complete. For example, it is often used to signal that the UpdateChecker
instance can be safely deleted to release resources.
|
signal |
Triggered when a new version has been released relative to the built version.
Usage:
latest | The newest version of the software available. |