#include <taskmanager.h>
Inherits TQObject.
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 (TQObject *parent=0, const char *name=0) | |
TaskList | tasks () const |
StartupList | startups () const |
TQString | 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 TDEStartupInfoId &) |
void | killStartup (Startup *) |
void | gotNewStartup (const TDEStartupInfoId &, const TDEStartupInfoData &) |
void | gotStartupChange (const TDEStartupInfoId &, const TDEStartupInfoData &) |
void | gotRemoveStartup (const TDEStartupInfoId &) |
Protected Member Functions | |
Task * | findTask (WId w) |
void | configure_startup () |
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 432 of file taskmanager.h.
Member Function Documentation
◆ activeTaskChanged
|
signal |
Emitted when the active window changed.
◆ currentDesktop()
int TaskManager::currentDesktop | ( | ) | const |
Returns the number of the current desktop.
Definition at line 822 of file taskmanager.cpp.
◆ desktopChanged
|
signal |
Emitted when the current desktop changes.
◆ desktopName()
TQString TaskManager::desktopName | ( | int | n | ) | const |
Returns the name of the nth desktop.
Definition at line 301 of file taskmanager.cpp.
◆ findTask()
|
protected |
Returns the task for a given WId, or 0 if there is no such task.
Definition at line 101 of file taskmanager.cpp.
◆ isOnTop()
bool TaskManager::isOnTop | ( | const Task * | task | ) |
Returns true if the specified task is on top.
Definition at line 311 of file taskmanager.cpp.
◆ numberOfDesktops()
int TaskManager::numberOfDesktops | ( | ) | const |
Returns the number of virtual desktops.
Definition at line 306 of file taskmanager.cpp.
◆ startupAdded
|
signal |
Emitted when a new task is expected.
◆ startupRemoved
|
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.
◆ startups()
|
inline |
Returns a list of all current startups.
Return type changed to TQPtrList in KDE 3.
Definition at line 453 of file taskmanager.h.
◆ taskAdded
|
signal |
Emitted when a new task has started.
◆ taskRemoved
|
signal |
Emitted when a task has terminated.
◆ tasks()
|
inline |
Returns a list of all current tasks.
Return type changed to TQPtrList in KDE 3.
Definition at line 447 of file taskmanager.h.
◆ windowChanged
|
signal |
Emitted when a window changes desktop.
The documentation for this class was generated from the following files: