TaskPriority.h header

#include <ew/core/TaskPriority.h>

Namespace ew::core

Enumerations

enum class TaskPriority { Low, Normal, High, Urgent }

The urgency of a task, used to sort and highlight it. New levels are additive. Serialized as a stable lowercase token.

The enumerators are ordered least to most urgent, and that order is load-bearing: orderedTasksInStatus ranks a kanban column by comparing the enumerators numerically, so reordering them (or inserting a level in the middle) silently inverts or scrambles every board. Add new levels at the end, or move the comparison off the numeric value.

Functions

std::optional< TaskPriority > ew::core::task::taskPriorityFromToken(QStringView token)

Parses a task priority from its serialization token; std::nullopt if unrecognized.

QString ew::core::task::toToken(TaskPriority priority)

Returns the stable serialization token for priority (e.g. "normal").