Qt Utilities 6.18.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
Loading...
Searching...
No Matches
QtUtilities::UpdateNotifier Class Reference

The UpdateNotifier class allows checking for new updates. More...

#include <updater.h>

Inheritance diagram for QtUtilities::UpdateNotifier:
[legend]
Collaboration diagram for QtUtilities::UpdateNotifier:
[legend]

Public Slots

void checkForUpdate ()
void resetUpdateInfo ()
void supplyNewReleaseData (const QByteArray &data)

Signals

void inProgressChanged (bool inProgress)
void checkedForUpdate ()
void updateAvailable (const QString &version, const QString &additionalInfo)

Public Member Functions

 UpdateNotifier (QObject *parent=nullptr)
 ~UpdateNotifier () override
bool isSupported () const
bool isInProgress () const
bool isUpdateAvailable () const
UpdateCheckFlags flags () const
void setFlags (UpdateCheckFlags flags)
const QString & executableName () const
const QString & newVersion () const
const QString & latestVersion () const
const QString & additionalInfo () const
const QString & releaseNotes () const
const QString & error () const
const QUrl & downloadUrl () const
const QUrl & signatureUrl () const
QString status () const
CppUtilities::DateTime lastCheck () const
void restore (QSettings *settings)
void save (QSettings *settings)
void setNetworkAccessManager (QNetworkAccessManager *nm)

Properties

bool supported
bool inProgress
bool updateAvailable
QString executableName
QString newVersion
QString additionalInfo
QString releaseNotes
QString error
QUrl downloadUrl
QUrl signatureUrl

Detailed Description

The UpdateNotifier class allows checking for new updates.

Remarks
This class is experimental and might be changed in incompatible ways (API and ABI wise) or completely removed in further minor/patch releases.

Definition at line 59 of file updater.h.

Constructor & Destructor Documentation

◆ UpdateNotifier()

QtUtilities::UpdateNotifier::UpdateNotifier ( QObject * parent = nullptr)
explicit

Definition at line 142 of file updater.cpp.

◆ ~UpdateNotifier()

QtUtilities::UpdateNotifier::~UpdateNotifier ( )
override

Definition at line 186 of file updater.cpp.

Member Function Documentation

◆ additionalInfo()

const QString & QtUtilities::UpdateNotifier::additionalInfo ( ) const

Definition at line 265 of file updater.cpp.

◆ checkedForUpdate

void QtUtilities::UpdateNotifier::checkedForUpdate ( )
signal

◆ checkForUpdate

void QtUtilities::UpdateNotifier::checkForUpdate ( )
slot

Definition at line 418 of file updater.cpp.

◆ downloadUrl()

const QUrl & QtUtilities::UpdateNotifier::downloadUrl ( ) const

Definition at line 290 of file updater.cpp.

◆ error()

const QString & QtUtilities::UpdateNotifier::error ( ) const

Definition at line 285 of file updater.cpp.

◆ executableName()

const QString & QtUtilities::UpdateNotifier::executableName ( ) const

Definition at line 235 of file updater.cpp.

◆ flags()

UpdateCheckFlags QtUtilities::UpdateNotifier::flags ( ) const

Definition at line 217 of file updater.cpp.

◆ inProgressChanged

void QtUtilities::UpdateNotifier::inProgressChanged ( bool inProgress)
signal

◆ isInProgress()

bool QtUtilities::UpdateNotifier::isInProgress ( ) const

Definition at line 199 of file updater.cpp.

◆ isSupported()

bool QtUtilities::UpdateNotifier::isSupported ( ) const

Definition at line 190 of file updater.cpp.

◆ isUpdateAvailable()

bool QtUtilities::UpdateNotifier::isUpdateAvailable ( ) const

Definition at line 208 of file updater.cpp.

◆ lastCheck()

CppUtilities::DateTime QtUtilities::UpdateNotifier::lastCheck ( ) const

Definition at line 310 of file updater.cpp.

◆ latestVersion()

const QString & QtUtilities::UpdateNotifier::latestVersion ( ) const

Definition at line 255 of file updater.cpp.

◆ newVersion()

const QString & QtUtilities::UpdateNotifier::newVersion ( ) const

Definition at line 245 of file updater.cpp.

◆ releaseNotes()

const QString & QtUtilities::UpdateNotifier::releaseNotes ( ) const

Definition at line 275 of file updater.cpp.

◆ resetUpdateInfo

void QtUtilities::UpdateNotifier::resetUpdateInfo ( )
slot

Definition at line 436 of file updater.cpp.

◆ restore()

void QtUtilities::UpdateNotifier::restore ( QSettings * settings)

Definition at line 319 of file updater.cpp.

◆ save()

void QtUtilities::UpdateNotifier::save ( QSettings * settings)

Definition at line 336 of file updater.cpp.

◆ setFlags()

void QtUtilities::UpdateNotifier::setFlags ( UpdateCheckFlags flags)

Definition at line 226 of file updater.cpp.

◆ setNetworkAccessManager()

void QtUtilities::UpdateNotifier::setNetworkAccessManager ( QNetworkAccessManager * nm)

Definition at line 374 of file updater.cpp.

◆ signatureUrl()

const QUrl & QtUtilities::UpdateNotifier::signatureUrl ( ) const

Definition at line 300 of file updater.cpp.

◆ status()

QString QtUtilities::UpdateNotifier::status ( ) const

Definition at line 353 of file updater.cpp.

◆ supplyNewReleaseData

void QtUtilities::UpdateNotifier::supplyNewReleaseData ( const QByteArray & data)
slot

Definition at line 477 of file updater.cpp.

◆ updateAvailable

void QtUtilities::UpdateNotifier::updateAvailable ( const QString & version,
const QString & additionalInfo )
signal

Property Documentation

◆ additionalInfo

QString QtUtilities::UpdateNotifier::additionalInfo
read

Definition at line 66 of file updater.h.

◆ downloadUrl

QUrl QtUtilities::UpdateNotifier::downloadUrl
read

Definition at line 69 of file updater.h.

◆ error

QString QtUtilities::UpdateNotifier::error
read

Definition at line 68 of file updater.h.

◆ executableName

QString QtUtilities::UpdateNotifier::executableName
read

Definition at line 64 of file updater.h.

◆ inProgress

bool QtUtilities::UpdateNotifier::inProgress
read

Definition at line 62 of file updater.h.

◆ newVersion

QString QtUtilities::UpdateNotifier::newVersion
read

Definition at line 65 of file updater.h.

◆ releaseNotes

QString QtUtilities::UpdateNotifier::releaseNotes
read

Definition at line 67 of file updater.h.

◆ signatureUrl

QUrl QtUtilities::UpdateNotifier::signatureUrl
read

Definition at line 70 of file updater.h.

◆ supported

bool QtUtilities::UpdateNotifier::supported
read

Definition at line 61 of file updater.h.

◆ updateAvailable

bool QtUtilities::UpdateNotifier::updateAvailable
read

Definition at line 63 of file updater.h.


The documentation for this class was generated from the following files: