Skip to content

Class QfCloudStatus

ClassList > QfCloudStatus

More...

  • #include <qfcloudstatus.h>

Inherits the following classes: QObject

Public Types

Type Name
enum StatusType

Public Properties

Type Name
property QString detailsMessage
property bool hasProblem
property QString statusMessage
property QString statusPageUrl
property StatusType statusType
property QString url

Public Signals

Type Name
signal void statusUpdated
signal void urlChanged

Public Functions

Type Name
QfCloudStatus (QObject * parent=nullptr)
QString detailsMessage () const
bool hasProblem () const
Q_INVOKABLE void refresh ()
void setUrl (const QString & url)
QString statusMessage () const
QString statusPageUrl () const
StatusType statusType () const
QString url () const

Detailed Description

QfCloudStatus fetches the QFieldCloud service status endpoint and exposes the health state of the service to QML.

It fetches the /api/v1/status/ endpoint once per session and provides properties to determine whether the service is degraded, has ongoing incidents, or is under maintenance.

Public Types Documentation

enum StatusType

enum QfCloudStatus::StatusType {
    Ok,
    Maintenance,
    Degraded,
    Incident
};

Public Properties Documentation

property detailsMessage [1/2]

QString QfCloudStatus::detailsMessage;

property hasProblem [1/2]

bool QfCloudStatus::hasProblem;

property statusMessage [1/2]

QString QfCloudStatus::statusMessage;

property statusPageUrl [1/2]

QString QfCloudStatus::statusPageUrl;

property statusType [1/2]

StatusType QfCloudStatus::statusType;

property url [1/2]

QString QfCloudStatus::url;

Public Signals Documentation

signal statusUpdated

void QfCloudStatus::statusUpdated;

signal urlChanged

void QfCloudStatus::urlChanged;

Public Functions Documentation

function QfCloudStatus

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

function detailsMessage [2/2]

QString QfCloudStatus::detailsMessage () const

Returns additional details (incident/maintenance message) if available.


function hasProblem [2/2]

bool QfCloudStatus::hasProblem () const

Returns true if the service has any problem (degraded, incident, or maintenance).


function refresh

Q_INVOKABLE void QfCloudStatus::refresh () 

Manually triggers a status fetch.


function setUrl

void QfCloudStatus::setUrl (
    const QString & url
) 

Sets the base URL of the QFieldCloud server and triggers a status fetch.


function statusMessage [2/2]

QString QfCloudStatus::statusMessage () const

Returns a short user-facing message summarizing the service status.


function statusPageUrl [2/2]

QString QfCloudStatus::statusPageUrl () const

Returns the URL to the status page (e.g. https://status.qfield.cloud/).


function statusType [2/2]

StatusType QfCloudStatus::statusType () const

Returns the current status type of the QFieldCloud service.


function url [2/2]

QString QfCloudStatus::url () const

Returns the base URL of the QFieldCloud server.



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