BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Slots | |
bool | hasDefinedUpdatesFlag () const |
Returns true if settings contain record about user choice for updates. More... | |
void | replyFinished (QNetworkReply *reply) |
void | setCheckUpdatesFlag (bool flag) |
bool | updatesFlag () const |
Returns true if there is defined flag requiring check for updates. More... | |
Signals | |
void | onUpdateNotification (const QString &text) |
Public Member Functions | |
UpdateNotifier (QObject *parent=0) | |
void | checkForUpdates () |
Private Attributes | |
QNetworkAccessManager * | m_networkAccessManager |
Definition at line 23 of file UpdateNotifier.h.
UpdateNotifier::UpdateNotifier | ( | QObject * | parent = 0 | ) |
Definition at line 20 of file UpdateNotifier.cpp.
References m_networkAccessManager, and replyFinished().
void UpdateNotifier::checkForUpdates | ( | ) |
Definition at line 27 of file UpdateNotifier.cpp.
References GUIHelpers::getBornAgainVersionString(), hasDefinedUpdatesFlag(), m_networkAccessManager, onUpdateNotification(), Constants::S_VERSION_URL, and updatesFlag().
Referenced by UpdateNotifierWidget::onLinkActivated(), UpdateNotifierWidget::showEvent(), and ActionManager::toggleCheckForUpdates().
|
slot |
Returns true if settings contain record about user choice for updates.
Definition at line 98 of file UpdateNotifier.cpp.
References Constants::S_UPDATES.
Referenced by UpdateNotifierWidget::UpdateNotifierWidget(), and checkForUpdates().
|
signal |
Referenced by UpdateNotifierWidget::UpdateNotifierWidget(), checkForUpdates(), and replyFinished().
|
slot |
Definition at line 46 of file UpdateNotifier.cpp.
References GUIHelpers::getBornAgainVersionString(), onUpdateNotification(), Constants::S_DOWNLOAD_LINK, and GUIHelpers::versionCode().
Referenced by UpdateNotifier().
|
slot |
Definition at line 76 of file UpdateNotifier.cpp.
References Constants::S_CHECKFORUPDATES, and Constants::S_UPDATES.
Referenced by UpdateNotifierWidget::onLinkActivated(), and ActionManager::toggleCheckForUpdates().
|
slot |
Returns true if there is defined flag requiring check for updates.
Definition at line 86 of file UpdateNotifier.cpp.
References Constants::S_CHECKFORUPDATES, and Constants::S_UPDATES.
Referenced by checkForUpdates().
|
private |
Definition at line 42 of file UpdateNotifier.h.
Referenced by UpdateNotifier(), and checkForUpdates().