TaskManager Class Reference
#include <taskmanager.h>
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.
- 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) | |
virtual | ~TaskManager () |
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 | |
Task * | findTask (WId w) |
void | configure_startup () |
Properties | |
int | currentDesktop [] |
int | numberOfDesktops [] |
Member Function Documentation
void TaskManager::activeTaskChanged | ( | Task * | ) | [signal] |
Emitted when the active window changed.
int TaskManager::currentDesktop | ( | ) | const |
Returns the number of the current desktop.
void TaskManager::desktopChanged | ( | int | desktop | ) | [signal] |
Emitted when the current desktop changes.
QString TaskManager::desktopName | ( | int | n | ) | const |
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.
bool TaskManager::isOnTop | ( | const Task * | ) |
int TaskManager::numberOfDesktops | ( | ) | const |
Returns the number of virtual desktops.
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.
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.
void TaskManager::taskAdded | ( | Task * | ) | [signal] |
Emitted when a new task has started.
void TaskManager::taskRemoved | ( | Task * | ) | [signal] |
Emitted when a task has terminated.
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.
void TaskManager::windowChanged | ( | WId | ) | [signal] |
Emitted when a window changes desktop.
The documentation for this class was generated from the following files: