Skip to content

Class ChangelogContents

ClassList > ChangelogContents

More...

  • #include <changelogcontents.h>

Inherits the following classes: QObject

Public Types

Type Name
enum Status
Changelog contents status.

Public Properties

Type Name
property QString markdown
Holds the current changelog contents formatted as markdown.
property Status status
Holds the current changelog contents status.

Public Signals

Type Name
signal void markdownChanged
Emitted when the markdown contents has been changed.
signal void statusChanged
Emitted when the status has been changed.

Public Functions

Type Name
ChangelogContents (QObject * parent=nullptr)
Constructor.
QString markdown ()
Returns the current changelog contents formatted as markdown. Null string if no changelog.
Q_INVOKABLE void request ()
Status status ()
Returns the current changelog contents status.

Detailed Description

Obtain the QField changelog contents from the GitHub releases API.

Public Types Documentation

enum Status

Changelog contents status.

enum ChangelogContents::Status {
    IdleStatus,
    LoadingStatus,
    SuccessStatus,
    ErrorStatus
};

Public Properties Documentation

property markdown [1/2]

Holds the current changelog contents formatted as markdown.

QString ChangelogContents::markdown;

property status [1/2]

Holds the current changelog contents status.

ChangelogContents::Status ChangelogContents::status;

Public Signals Documentation

signal markdownChanged

Emitted when the markdown contents has been changed.

void ChangelogContents::markdownChanged;

signal statusChanged

Emitted when the status has been changed.

void ChangelogContents::statusChanged;

Public Functions Documentation

function ChangelogContents

Constructor.

explicit ChangelogContents::ChangelogContents (
    QObject * parent=nullptr
) 

function markdown [2/2]

Returns the current changelog contents formatted as markdown. Null string if no changelog.

QString ChangelogContents::markdown () 

function request

Q_INVOKABLE void ChangelogContents::request () 

Initiates a HTTP request to obtain the changelog contents.

See also: markdownChanged()

See also: statusChanged()


function status [2/2]

Returns the current changelog contents status.

Status ChangelogContents::status () 


The documentation for this class was generated from the following file src/core/changelogcontents.h