#include <client_update_checker.h>
Signals | |
| void | finishedCheck (bool needToUpdate, bool isCompatible, Release *release) |
| void | error (const QString &errorString) |
Public Member Functions | |
| ClientUpdateChecker (QObject *parent=nullptr) | |
| void | check () |
Private Member Functions | |
| void | actFinishedCheck (bool needToUpdate, bool isCompatible, Release *release) |
| void | actError (const QString &errorString) |
Private Attributes | |
| QMetaObject::Connection | finishedCheckConnection |
| QMetaObject::Connection | errorConnection |
We use a singleton instance of UpdateChannel, which can cause interference and feedback loops when multiple objects connect to it.
This class encapsulates the usage of that UpdateChannel to ensure that the check only happens once per connection and the connection is destroyed after it's been used.
|
explicit |
|
private |
|
private |
| void ClientUpdateChecker::check | ( | ) |
Actually performs the check, using the currently selected update channel in the settings. Any resulting signals will only be sent once. This method should only be called ONCE per instance.
|
signal |
Forwarded from UpdateChannel::error
|
signal |
Forwarded from UpdateChannel::finishedCheck
|
private |
|
private |