DBLSQD Qt SDK
Public Member Functions | Friends | List of all members
dblsqd::Release Class Reference

This class is used to represent information about a single Release from a Feed. More...

Public Member Functions

 Release (QJsonObject releaseInfo)
 Constructs a new Release from q QJsonObject.
 
 Release (QString version=QString(), QDateTime date=QDateTime())
 Constructs a new Release from a version string and a date. More...
 
QString getVersion () const
 Returns the Release version.
 
QString getChangelog () const
 Returns the Release changelog.
 
QDateTime getDate () const
 Returns the Release date.
 
QUrl getDownloadUrl () const
 Returns the Release download URL.
 
QString getDownloadSHA1 () const
 Returns the SHA1 hash of the Release download.
 
QString getDownloadSHA256 () const
 Returns the SHA256 hash of the Release download.
 
QString getDownloadDSA () const
 Returns the DSA signature of the Release download.
 
qint64 getDownloadSize () const
 Returns the size of the Release download in bytes.
 

Friends

bool operator< (const Release &one, const Release &other)
 Compares two Releases. More...
 
bool operator== (const Release &one, const Release &other)
 
bool operator<= (const Release &one, const Release &other)
 

Detailed Description

This class is used to represent information about a single Release from a Feed.

Constructor & Destructor Documentation

◆ Release()

dblsqd::Release::Release ( QString  version = QString(),
QDateTime  date = QDateTime() 
)

Constructs a new Release from a version string and a date.

This method is useful when constructing a "virtual" Release for comparing it with Releases retrieved from a Feed.

Friends And Related Function Documentation

◆ operator<

bool operator< ( const Release one,
const Release other 
)
friend

Compares two Releases.

If the Release version is compatible with SemVer, the version determines Release order. If versions are identical or not compatible with SemVer, Release date is used for determining order instead.


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