Audacity 3.2.0
|
A class that managing of updates. More...
#include <UpdateManager.h>
Public Member Functions | |
UpdateManager ()=default | |
void | GetUpdates (bool ignoreNetworkErrors, bool configurableNotification) |
VersionPatch | GetVersionPatch () const |
Static Public Member Functions | |
static UpdateManager & | GetInstance () |
static void | Start (bool suppressModal) |
Private Member Functions | |
void | OnTimer (wxTimerEvent &event) |
bool | IsTimeForUpdatesChecking () |
Scheduling update time for avoiding multiplying update notifications. More... | |
Private Attributes | |
UpdateDataParser | mUpdateDataParser |
VersionPatch | mVersionPatch |
wxTimer | mTimer |
std::unique_ptr< BasicUI::ProgressDialog > | mProgressDialog |
std::string | mAudacityInstallerPath |
std::ofstream | mAudacityInstaller |
std::mutex | mUpdateMutex |
bool | mOnProgress { false } |
A class that managing of updates.
Opt-in request and show update dialog by the scheduled time. Have a built-in check that allows avoiding multiplying update notifications when multiple Audacity windows are shown.
Definition at line 33 of file UpdateManager.h.
|
default |
|
static |
Definition at line 53 of file UpdateManager.cpp.
Referenced by Start().
void UpdateManager::GetUpdates | ( | bool | ignoreNetworkErrors, |
bool | configurableNotification | ||
) |
Definition at line 92 of file UpdateManager.cpp.
References CurrentBuildVersion(), audacity::network_manager::NetworkManager::doGet(), VersionPatch::download, AudioIO::Get(), BasicUI::Get(), audacity::network_manager::NetworkManager::GetInstance(), BasicUI::MakeProgress(), mAudacityInstaller, mAudacityInstallerPath, mOnProgress, mProgressDialog, mUpdateDataParser, mUpdateMutex, mVersionPatch, audacity::network_manager::NoError, UpdateDataParser::Parse(), BasicUI::ShowErrorDialog(), VersionPatch::version, XC, and XO().
Referenced by OnTimer().
VersionPatch UpdateManager::GetVersionPatch | ( | ) | const |
Definition at line 87 of file UpdateManager.cpp.
References mVersionPatch.
|
private |
Scheduling update time for avoiding multiplying update notifications.
Definition at line 288 of file UpdateManager.cpp.
References audacity::BasicSettings::Flush(), gPrefs, prefsUpdateScheduledTime, audacity::BasicSettings::Read(), and audacity::BasicSettings::Write().
Referenced by OnTimer().
|
private |
Definition at line 272 of file UpdateManager.cpp.
References DefaultUpdatesCheckingFlag, GetUpdates(), IsTimeForUpdatesChecking(), mTimer, and updatesCheckInterval.
|
static |
Definition at line 60 of file UpdateManager.cpp.
References DefaultUpdatesCheckingFlag, flag, audacity::BasicSettings::Flush(), GetInstance(), gPrefs, ID_TIMER, prefUpdatesNoticeShown, Setting< T >::Read(), and Setting< T >::Write().
Referenced by AudacityApp::InitPart2().
|
private |
Definition at line 59 of file UpdateManager.h.
Referenced by GetUpdates().
|
private |
Definition at line 58 of file UpdateManager.h.
Referenced by GetUpdates().
|
private |
Definition at line 62 of file UpdateManager.h.
Referenced by GetUpdates().
|
private |
Definition at line 56 of file UpdateManager.h.
Referenced by GetUpdates().
|
private |
Definition at line 49 of file UpdateManager.h.
Referenced by OnTimer().
|
private |
Definition at line 46 of file UpdateManager.h.
Referenced by GetUpdates().
|
private |
Definition at line 61 of file UpdateManager.h.
Referenced by GetUpdates().
|
private |
Definition at line 47 of file UpdateManager.h.
Referenced by GetUpdates(), and GetVersionPatch().