DuxReiNummariae 1.0.0-alpha.23
Simple and powerful budgeting application
 
Loading...
Searching...
No Matches
drn::updating Namespace Reference

Classes

struct  ReleaseInformation
 Represents details about a specific version of a software component. More...
 
class  ReleaseInformationFetcher
 A utility class for retrieving the application version release information. More...
 
class  SemanticVersion
 Represents a semantic version with major, minor, patch. Additionally, supports the inclusion of optional pre-release, and build metadata components. It adheres to the Semantic Versioning 2.0.0 standard. More...
 
class  UpdateChecker
 This class is responsible for checking and notifying about software updates. More...
 

Functions

DRN_UPDATING_EXPORT::QDebug operator<< (::QDebug out, const SemanticVersion &data)
 Full object Qt stream insertion operator.
 
DRN_UPDATING_EXPORT std::ostream & operator<< (std::ostream &out, const SemanticVersion &sv)
 Populates an output stream with a semantic version.
 
DRN_UPDATING_EXPORT std::strong_ordering operator<=> (const ReleaseInformation &lhs, const ReleaseInformation &rhs)
 Compares two objects using a three-way comparison, in the order of the semantic version, release date and time, and then version description.
 
DRN_UPDATING_EXPORT::QString toString (const SemanticVersion &sv)
 Converts a SemanticVersion object to its string representation. It provides an human-readable string representation. Use this function when you need a textual representation of a SemanticVersion object, particularly for logging or displaying version information in the UI or output.
 

Function Documentation

◆ operator<<() [1/2]

DRN_UPDATING_EXPORT::QDebug drn::updating::operator<< ( ::QDebug out,
const SemanticVersion & data )

Full object Qt stream insertion operator.

Parameters
outThe stream to place the data into.
dataThe data to place into the stream.
Returns
The modified stream after insertion.

◆ operator<<() [2/2]

DRN_UPDATING_EXPORT std::ostream & drn::updating::operator<< ( std::ostream & out,
const SemanticVersion & sv )

Populates an output stream with a semantic version.

Parameters
outThe output stream to populate.
svThe version object to fill the stream with.
Postcondition
The output stream contains the version in the form:
  • major.minor.patch-preRelease+buildMetadata
Returns
The output stream with the version.

◆ operator<=>()

DRN_UPDATING_EXPORT std::strong_ordering drn::updating::operator<=> ( const ReleaseInformation & lhs,
const ReleaseInformation & rhs )

Compares two objects using a three-way comparison, in the order of the semantic version, release date and time, and then version description.

Parameters
lhsThe left-hand operand used in the operation.
rhsThe right-hand operand used in the operation.
Returns
The result of the comparison of this object to the supplied object.

◆ toString()

DRN_UPDATING_EXPORT::QString drn::updating::toString ( const SemanticVersion & sv)

Converts a SemanticVersion object to its string representation. It provides an human-readable string representation. Use this function when you need a textual representation of a SemanticVersion object, particularly for logging or displaying version information in the UI or output.

Parameters
svThe SemanticVersion object to be converted to a string.
Returns
A string representation of the provided SemanticVersion object. The result will follow the semantic versioning format, i.e., "major.minor.patch-preRelease+buildMetadata".
Here is the call graph for this function:
Here is the caller graph for this function: