• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libtaskmanager

TaskManager::AbstractSortingStrategy

TaskManager::AbstractSortingStrategy Class Reference

Base class for strategies which can be used to automatically sort tasks. More...

#include <abstractsortingstrategy.h>

Inheritance diagram for TaskManager::AbstractSortingStrategy:

Inheritance graph
[legend]

List of all members.


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 
)

Moves Item to new index.

Definition at line 158 of file abstractsortingstrategy.cpp.

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

Returns the strategy type.

Definition at line 64 of file abstractsortingstrategy.cpp.


The documentation for this class was generated from the following files:
  • abstractsortingstrategy.h
  • abstractsortingstrategy.cpp

libtaskmanager

Skip menu "libtaskmanager"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal