libtaskmanager
TaskManager::AbstractSortingStrategy Class Reference
Base class for strategies which can be used to automatically sort tasks. More...
#include <abstractsortingstrategy.h>

Public Member Functions | |
AbstractSortingStrategy (QObject *parent) | |
virtual void | desktopChanged (int newDesktop) |
void | handleGroup (TaskGroup *) |
bool | moveItem (AbstractItemPtr, int) |
GroupManager::TaskSortingStrategy | type () const |
virtual | ~AbstractSortingStrategy () |
Protected Slots | |
void | check (AbstractItemPtr item=0) |
virtual void | handleItem (AbstractItemPtr) |
void | removeGroup () |
Protected Member Functions | |
void | setType (GroupManager::TaskSortingStrategy strategy) |
Detailed Description
Base class for strategies which can be used to automatically sort tasks.Definition at line 40 of file abstractsortingstrategy.h.
Constructor & Destructor Documentation
TaskManager::AbstractSortingStrategy::AbstractSortingStrategy | ( | QObject * | parent | ) |
Definition at line 52 of file abstractsortingstrategy.cpp.
TaskManager::AbstractSortingStrategy::~AbstractSortingStrategy | ( | ) | [virtual] |
Definition at line 59 of file abstractsortingstrategy.cpp.
Member Function Documentation
void TaskManager::AbstractSortingStrategy::check | ( | AbstractItemPtr | item = 0 |
) | [protected, slot] |
Checks if the order has to be updated.
Must be connected to a AbstractGroupableItem*
Definition at line 117 of file abstractsortingstrategy.cpp.
void TaskManager::AbstractSortingStrategy::desktopChanged | ( | int | newDesktop | ) | [virtual] |
DesktopChanges time to backup any needed data.
Reimplemented in TaskManager::ManualSortingStrategy.
Definition at line 153 of file abstractsortingstrategy.cpp.
void TaskManager::AbstractSortingStrategy::handleGroup | ( | TaskGroup * | group | ) |
Adds group under control of sorting strategy.
all added subgroups are automatically added to this sortingStrategy
Definition at line 74 of file abstractsortingstrategy.cpp.
void TaskManager::AbstractSortingStrategy::handleItem | ( | AbstractItemPtr | item | ) | [protected, virtual, slot] |
Handles a new item, is typically called after an item was added to a handled group.
Reimplemented in TaskManager::DesktopSortingStrategy, and TaskManager::ManualSortingStrategy.
Definition at line 104 of file abstractsortingstrategy.cpp.
bool TaskManager::AbstractSortingStrategy::moveItem | ( | AbstractItemPtr | item, | |
int | newIndex | |||
) |
void TaskManager::AbstractSortingStrategy::removeGroup | ( | ) | [protected, slot] |
Definition at line 93 of file abstractsortingstrategy.cpp.
void TaskManager::AbstractSortingStrategy::setType | ( | GroupManager::TaskSortingStrategy | strategy | ) | [protected] |
Definition at line 69 of file abstractsortingstrategy.cpp.
GroupManager::TaskSortingStrategy TaskManager::AbstractSortingStrategy::type | ( | ) | const |
The documentation for this class was generated from the following files: