mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Clean up coding style
This commit is contained in:
parent
e169c0ce5e
commit
40bd2039d4
2 changed files with 44 additions and 55 deletions
|
@ -35,7 +35,7 @@ namespace Net
|
|||
struct DownloadResult;
|
||||
}
|
||||
|
||||
class ProgramUpdater : public QObject
|
||||
class ProgramUpdater final : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(ProgramUpdater)
|
||||
|
@ -43,18 +43,16 @@ class ProgramUpdater : public QObject
|
|||
public:
|
||||
explicit ProgramUpdater(QObject *parent = nullptr, bool invokedByUser = false);
|
||||
|
||||
void checkForUpdates();
|
||||
void updateProgram();
|
||||
void checkForUpdates() const;
|
||||
void updateProgram() const;
|
||||
|
||||
signals:
|
||||
void updateCheckFinished(bool updateAvailable, QString version, bool invokedByUser);
|
||||
void updateCheckFinished(bool updateAvailable, const QString &version, bool invokedByUser);
|
||||
|
||||
private slots:
|
||||
void rssDownloadFinished(const Net::DownloadResult &result);
|
||||
|
||||
private:
|
||||
bool isVersionMoreRecent(const QString &remoteVersion) const;
|
||||
|
||||
QString m_updateUrl;
|
||||
bool m_invokedByUser;
|
||||
const bool m_invokedByUser;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue