Interface for plugins that define a focus strategy. More...
#include <focusinterface.h>
Public Member Functions | |
virtual QString | description () const =0 |
virtual bool | applyFocus (QList< domain::Task * > *tasks)=0 |
void | init (domain::TaskManagerData *data, ui::UiInterface *ui) |
Protected Attributes | |
domain::TaskManagerData * | data |
ui::UiInterface * | ui |
Interface for plugins that define a focus strategy.
Plugins implementing this interface define a way to focus on tasks. Focussing on some tasks is just another way of saying that the tasks should be filtered on some criterium.
Definition at line 26 of file focusinterface.h.
virtual bool control::FocusInterface::applyFocus | ( | QList< domain::Task * > * | tasks | ) | [pure virtual] |
Filters the given tasks.
Implemented in control::DeadlineFocus, control::DurationFocus, and control::TaskTypeFocus.
virtual QString control::FocusInterface::description | ( | ) | const [pure virtual] |
Returns the description of this focus strategy, as to be shown to the user.
Implemented in control::DeadlineFocus, control::DurationFocus, and control::TaskTypeFocus.