control::FocusInterface Class Reference

Interface for plugins that define a focus strategy. More...

#include <focusinterface.h>

Inheritance diagram for control::FocusInterface:
Inheritance graph
[legend]
Collaboration diagram for control::FocusInterface:
Collaboration graph
[legend]

List of all members.

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::TaskManagerDatadata
ui::UiInterfaceui

Detailed Description

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.


Member Function Documentation

virtual bool control::FocusInterface::applyFocus ( QList< domain::Task * > *  tasks  )  [pure virtual]

Filters the given tasks.

Returns:
False iff the user canceled the operation.

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Enumerations Enumerator
Generated on Thu May 27 14:20:06 2010 for MopTaskManager by  doxygen 1.6.3