Task Worker

Task Worker

The application demonstrates the operation of background tasks.

RU | EN

Task Worker

Description

The application allows you to run additional processes in the background. This can be useful, for example, for performing data backups, software updates, sending REST requests, monitoring hardware status, and other tasks that require continuous execution. A background task is created using the Task class from RuntimeManager. For more information, please refer to documentation.

Build status:

  • example - pipeline status
  • dev - pipeline status

Table of Contents

Compatibility

The application works correctly starting with Aurora OS 5.x.x and higher.

Build features

The project is built via the CMakeLists.txt file. The packages required for RuntimeManager are installed together with the application as dependencies.

Branch info

Branches

Install and Build

The project is built in the usual way using the Aurora SDK. Documentation to build.

Screenshots

Screenshots

Usage options

  • Create a background task and after a time (15 minutes), get the current coordinates of the device.
  • Send a GET request to https://httpbin.org/get, and output the response to the application console after a time(15 minutes).
    In both cases, after the background task is started, the application can be closed.

Project Structure

The project has a standard C++ and QML based application structure for the Aurora OS.

  • CMakeLists.txt the file describes the project structure for the cmake build system.
  • icons the directory contains application icons for supported screen resolutions.
  • qml the directory contains QML source code and user interface resources.
    • cover the directory contains implementations of application covers.
    • images the directory contains additional user interface icons.
    • pages the directory contains the application pages.
    • TaskWorker.qml the file provides the application window implementation.
  • rpm the directory contains the rpm package build settings.
  • src the directory contains C++ source code.
    • geo the directory contains a manager for working with geolocation.
    • network the directory contains a request handler.
    • task the directory contains the background task controller.
    • main.cpp the file is the entry point to the application.
  • translations the directory contains the user interface translation files.
  • ru.auroraos.TaskWorker.desktop the file defines the display and startup options for the application.

Terms of Use and Participation in Development

The project source code is provided under license, which allows its use in third-party applications.

The Participant Agreement governs the rights granted by the participants to the Open Mobile Platform Company.

Participant information is listed in the AUTHORS file.

The Code of Conduct is the current set of rules of the Open Mobile Platform Company, which communicates the expectations for interaction between community members when communicating and working on projects.