Vital
|
A singleton class that keeps track of whether an update check should be performed. More...
#include <update_check_section.h>
Public Member Functions | |
UpdateMemory () | |
Constructs the UpdateMemory object. Initializes the checker count based on user settings for update checks. | |
virtual | ~UpdateMemory () |
Destructor. | |
bool | incrementChecker () |
Increments the number of components interested in checking for updates. | |
void | decrementChecker () |
Decrements the count of interested update checkers. | |
A singleton class that keeps track of whether an update check should be performed.
This class uses a reference counting mechanism (checkers_) to determine if any section is interested in checking for updates. If no checkers are active, the update check might be skipped. Once a section increments the checker count, update checks may proceed.
UpdateMemory::UpdateMemory | ( | ) |
Constructs the UpdateMemory object. Initializes the checker count based on user settings for update checks.
|
virtual |
Destructor.
|
inline |
Decrements the count of interested update checkers.
|
inline |
Increments the number of components interested in checking for updates.