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

libtaskmanager

TaskManager::TaskManager

TaskManager::TaskManager Class Reference

A generic API for task managers. More...

#include <taskmanager.h>

Inheritance diagram for TaskManager::TaskManager:

Inheritance graph
[legend]

List of all members.


Signals

void desktopChanged (int desktop)
void startupAdded (StartupPtr)
void startupRemoved (StartupPtr)
void taskAdded (TaskPtr)
void taskRemoved (TaskPtr)
void windowChanged (TaskPtr task,::TaskManager::TaskChanges change)

Public Member Functions

int currentDesktop () const
QString desktopName (int n) const
TaskPtr findTask (int desktop, const QPoint &p)
TaskPtr findTask (WId w)
bool isOnTop (const Task *) const
int numberOfDesktops () const
void setTrackGeometry (bool track, const QUuid &token)
StartupList startups () const
 TaskManager ()
TaskDict tasks () const
bool trackGeometry () const
 ~TaskManager ()

Static Public Member Functions

static bool isOnScreen (int screen, const WId wid)
static TaskManager * self ()

Protected Slots

void activeWindowChanged (WId)
void currentDesktopChanged (int)
void gotNewStartup (const KStartupInfoId &, const KStartupInfoData &)
void gotStartupChange (const KStartupInfoId &, const KStartupInfoData &)
void killStartup (StartupPtr)
void killStartup (const KStartupInfoId &)
void taskChanged (::TaskManager::TaskChanges changes)
void windowAdded (WId)
void windowChanged (WId, unsigned int)
void windowRemoved (WId)

Protected Member Functions

void configureStartup ()

Properties

int currentDesktop
int numberOfDesktops

Detailed Description

A generic API for task managers.

This class provides an easy way to build NET compliant task managers. It provides support for startup notification, virtual desktops and the full range of WM properties.

See also:
Task

Startup

Definition at line 81 of file taskmanager.h.


Constructor & Destructor Documentation

TaskManager::TaskManager::TaskManager (  ) 

Definition at line 76 of file taskmanager.cpp.

TaskManager::TaskManager::~TaskManager (  ) 

Definition at line 106 of file taskmanager.cpp.


Member Function Documentation

void TaskManager::TaskManager::activeWindowChanged ( WId  w  )  [protected, slot]

Definition at line 337 of file taskmanager.cpp.

void TaskManager::TaskManager::configureStartup (  )  [protected]

Definition at line 112 of file taskmanager.cpp.

int TaskManager::TaskManager::currentDesktop (  )  const

Returns the number of the current desktop.

void TaskManager::TaskManager::currentDesktopChanged ( int  desktop  )  [protected, slot]

Definition at line 366 of file taskmanager.cpp.

void TaskManager::TaskManager::desktopChanged ( int  desktop  )  [signal]

Emitted when the current desktop changes.

QString TaskManager::TaskManager::desktopName ( int  n  )  const

Returns the name of the nth desktop.

Definition at line 435 of file taskmanager.cpp.

TaskPtr TaskManager::TaskManager::findTask ( int  desktop,
const QPoint &  p 
)

Returns the task for a given location, or 0 if there is no such task.

Definition at line 149 of file taskmanager.cpp.

TaskPtr TaskManager::TaskManager::findTask ( WId  w  ) 

Returns the task for a given WId, or 0 if there is no such task.

Definition at line 135 of file taskmanager.cpp.

void TaskManager::TaskManager::gotNewStartup ( const KStartupInfoId &  id,
const KStartupInfoData &  data 
) [protected, slot]

Definition at line 371 of file taskmanager.cpp.

void TaskManager::TaskManager::gotStartupChange ( const KStartupInfoId &  id,
const KStartupInfoData &  data 
) [protected, slot]

Definition at line 379 of file taskmanager.cpp.

bool TaskManager::TaskManager::isOnScreen ( int  screen,
const WId  wid 
) [static]

Returns whether the Window with WId wid is on the screen screen.

Definition at line 501 of file taskmanager.cpp.

bool TaskManager::TaskManager::isOnTop ( const Task *  task  )  const

Returns true if the specified task is on top.

Definition at line 455 of file taskmanager.cpp.

void TaskManager::TaskManager::killStartup ( StartupPtr  s  )  [protected, slot]

Definition at line 414 of file taskmanager.cpp.

void TaskManager::TaskManager::killStartup ( const KStartupInfoId &  id  )  [protected, slot]

Definition at line 392 of file taskmanager.cpp.

int TaskManager::TaskManager::numberOfDesktops (  )  const

Returns the number of virtual desktops.

TaskManager * TaskManager::TaskManager::self (  )  [static]

Definition at line 54 of file taskmanager.cpp.

void TaskManager::TaskManager::setTrackGeometry ( bool  track,
const QUuid &  token 
)

Tells the task manager whether or not we care about geometry updates.

This generates a lot of activity so should only be used when necessary.

Definition at line 485 of file taskmanager.cpp.

void TaskManager::TaskManager::startupAdded ( StartupPtr   )  [signal]

Emitted when a new task is expected.

void TaskManager::TaskManager::startupRemoved ( StartupPtr   )  [signal]

Emitted when a startup item should be removed.

This could be because the task has started, because it is known to have died, or simply as a result of a timeout.

StartupList TaskManager::TaskManager::startups (  )  const

Returns a list of all current startups.

Definition at line 445 of file taskmanager.cpp.

void TaskManager::TaskManager::taskAdded ( TaskPtr   )  [signal]

Emitted when a new task has started.

void TaskManager::TaskManager::taskChanged ( ::TaskManager::TaskChanges  changes  )  [protected, slot]

Definition at line 326 of file taskmanager.cpp.

void TaskManager::TaskManager::taskRemoved ( TaskPtr   )  [signal]

Emitted when a task has terminated.

TaskDict TaskManager::TaskManager::tasks (  )  const

Returns a list of all current tasks.

Definition at line 440 of file taskmanager.cpp.

bool TaskManager::TaskManager::trackGeometry (  )  const

Returns:
true if geometry tracking is on

Definition at line 496 of file taskmanager.cpp.

void TaskManager::TaskManager::windowAdded ( WId  w  )  [protected, slot]

Definition at line 183 of file taskmanager.cpp.

void TaskManager::TaskManager::windowChanged ( WId  w,
unsigned int  dirty 
) [protected, slot]

Definition at line 279 of file taskmanager.cpp.

void TaskManager::TaskManager::windowChanged ( TaskPtr  task,
::TaskManager::TaskChanges  change 
) [signal]

Emitted when a window changes desktop.

void TaskManager::TaskManager::windowRemoved ( WId  w  )  [protected, slot]

Definition at line 249 of file taskmanager.cpp.


Property Documentation

int TaskManager::TaskManager::currentDesktop [read]

Definition at line 84 of file taskmanager.h.

int TaskManager::TaskManager::numberOfDesktops [read]

Definition at line 85 of file taskmanager.h.


The documentation for this class was generated from the following files:
  • taskmanager.h
  • taskmanager.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