TaskAgenda.h header
#include <ew/app/TaskAgenda.h>
Namespace ew::app
AgendaTask struct
struct ew::app::AgendaTask
A single incomplete, dated task placed on the agenda.
Members
ew::core::ContentId ew::app::AgendaTask::taskId
The task's id.
ew::core::ContentId ew::app::AgendaTask::targetId
The object the task is about (null if none).
QString ew::app::AgendaTask::title
The task's title.
QDate ew::app::AgendaTask::dueDate
When the task is due.
ew::core::TaskPriority ew::app::AgendaTask::priority =
The task's priority.
AgendaBucket ew::app::AgendaTask::bucket =
The relative-due bucket the task falls in.
Enumerations
enum class AgendaBucket { Overdue, Today, ThisWeek, Later }
When a task is due relative to today, for grouping a reminders agenda. Ordered soonest-first.
Functions
std::vector< AgendaTask > ew::app::taskAgenda(const ew::core::Project &project, QDate today)
Builds the reminders agenda for project relative to today: every incomplete task that has a due date, bucketed as Overdue (before today), Today, This week (within the next seven days), or Later, and ordered by bucket then due date, then descending priority, then title. Completed tasks and tasks with no due date are omitted. Pure and deterministic.