TaskManager Class Reference

#include <taskmanager.h>

Inherits QObject.

List of all members.


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

KWinModule

Version:
Id
taskmanager.h,v 1.2 2004/11/17 10:16:47 kodaaja Exp

Definition at line 430 of file taskmanager.h.


Signals

void activeTaskChanged (Task *)
void taskAdded (Task *)
void taskRemoved (Task *)
void startupAdded (Startup *)
void startupRemoved (Startup *)
void desktopChanged (int desktop)
void windowChanged (WId)

Public Member Functions

 TaskManager (QObject *parent=0, const char *name=0)
TaskList tasks () const
StartupList startups () const
QString desktopName (int n) const
int numberOfDesktops () const
int currentDesktop () const
bool isOnTop (const Task *)

Protected Slots

void windowAdded (WId)
void windowRemoved (WId)
void windowChanged (WId, unsigned int)
void activeWindowChanged (WId)
void currentDesktopChanged (int)
void killStartup (const KStartupInfoId &)
void killStartup (Startup *)
void gotNewStartup (const KStartupInfoId &, const KStartupInfoData &)
void gotStartupChange (const KStartupInfoId &, const KStartupInfoData &)
void gotRemoveStartup (const KStartupInfoId &)

Protected Member Functions

TaskfindTask (WId w)
void configure_startup ()

Properties

int currentDesktop
int numberOfDesktops

Member Function Documentation

TaskList TaskManager::tasks (  )  const [inline]

Returns a list of all current tasks.

Return type changed to QPtrList in KDE 3.

Definition at line 444 of file taskmanager.h.

StartupList TaskManager::startups (  )  const [inline]

Returns a list of all current startups.

Return type changed to QPtrList in KDE 3.

Definition at line 450 of file taskmanager.h.

QString TaskManager::desktopName ( int  n  )  const

Returns the name of the nth desktop.

Definition at line 301 of file taskmanager.cpp.

int TaskManager::numberOfDesktops (  )  const

Returns the number of virtual desktops.

int TaskManager::currentDesktop (  )  const

Returns the number of the current desktop.

bool TaskManager::isOnTop ( const Task task  ) 

Returns true if the specified task is on top.

Definition at line 311 of file taskmanager.cpp.

void TaskManager::activeTaskChanged ( Task  )  [signal]

Emitted when the active window changed.

void TaskManager::taskAdded ( Task  )  [signal]

Emitted when a new task has started.

void TaskManager::taskRemoved ( Task  )  [signal]

Emitted when a task has terminated.

void TaskManager::startupAdded ( Startup  )  [signal]

Emitted when a new task is expected.

void TaskManager::startupRemoved ( Startup  )  [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.

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

Emitted when the current desktop changes.

void TaskManager::windowChanged ( WId   )  [signal]

Emitted when a window changes desktop.

Task * TaskManager::findTask ( WId  w  )  [protected]

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

Definition at line 101 of file taskmanager.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys