Vital
Loading...
Searching...
No Matches
UpdateMemory Class Reference

A singleton class that keeps track of whether an update check should be performed. More...

#include <update_check_section.h>

Inheritance diagram for UpdateMemory:

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ UpdateMemory()

UpdateMemory::UpdateMemory ( )

Constructs the UpdateMemory object. Initializes the checker count based on user settings for update checks.

◆ ~UpdateMemory()

UpdateMemory::~UpdateMemory ( )
virtual

Destructor.

Member Function Documentation

◆ decrementChecker()

void UpdateMemory::decrementChecker ( )
inline

Decrements the count of interested update checkers.

◆ incrementChecker()

bool UpdateMemory::incrementChecker ( )
inline

Increments the number of components interested in checking for updates.

Returns
True if this is the first component to show interest (i.e., should check).

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