mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Store version numbers in the appropriate type
This commit is contained in:
parent
dd5c934103
commit
bb34444ddc
3 changed files with 22 additions and 27 deletions
|
@ -30,9 +30,10 @@
|
|||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QUrl>
|
||||
|
||||
#include "base/utils/version.h"
|
||||
|
||||
namespace Net
|
||||
{
|
||||
struct DownloadResult;
|
||||
|
@ -45,9 +46,10 @@ class ProgramUpdater final : public QObject
|
|||
|
||||
public:
|
||||
using QObject::QObject;
|
||||
using Version = Utils::Version<4, 3>;
|
||||
|
||||
void checkForUpdates() const;
|
||||
QString getNewVersion() const;
|
||||
Version getNewVersion() const;
|
||||
bool updateProgram() const;
|
||||
|
||||
signals:
|
||||
|
@ -62,7 +64,7 @@ private:
|
|||
bool shouldUseFallback() const;
|
||||
|
||||
mutable bool m_hasCompletedOneReq = false;
|
||||
QString m_remoteVersion;
|
||||
QString m_fallbackRemoteVersion;
|
||||
Version m_remoteVersion;
|
||||
Version m_fallbackRemoteVersion;
|
||||
QUrl m_updateURL;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue