Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
software_update_backend.h
Go to the documentation of this file.
1
9
10#ifndef SOFTWARE_UPDATE_BACKEND_H
11#define SOFTWARE_UPDATE_BACKEND_H
12
13#include <QString>
14#include <QUrl>
15
31{
32public:
38
39 virtual ~SoftwareUpdateBackend() = default;
40
44 virtual QString info() const = 0;
45
52 virtual bool supportsAppcast() const = 0;
53
59 virtual QString osName() const { return QString(); }
60
67 virtual void init(const QUrl &appcastUrl, bool runWithoutSilentCheck) = 0;
68
72 virtual void performUIUpdate() = 0;
73
77 virtual void cleanup() {}
78
91 virtual bool checkForUpdates() { return false; }
92};
93
94#endif /* SOFTWARE_UPDATE_BACKEND_H */
Definition software_update_backend.h:31
virtual void init(const QUrl &appcastUrl, bool runWithoutSilentCheck)=0
Initialize the update framework.
virtual void cleanup()
Release resources held by the update framework.
Definition software_update_backend.h:77
virtual QString info() const =0
Name of the update framework, shown in the feature list.
virtual bool supportsAppcast() const =0
Whether updates come from our appcast servers.
virtual bool checkForUpdates()
Run a background update check through the platform mechanism.
Definition software_update_backend.h:91
static SoftwareUpdateBackend * create()
Create the backend for this platform.
Definition software_update_backend_linux.cpp:233
virtual QString osName() const
OS name used for the appcast URL and the appcast "os" filter.
Definition software_update_backend.h:59
virtual void performUIUpdate()=0
Start the user-visible update process.