#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.
Constructor & Destructor Documentation
◆ TaskManager()
TaskManager::TaskManager | ( | TQObject * | parent = 0 , |
const char * | name = 0 |
||
) |
Definition at line 51 of file taskmanager.cpp.
◆ ~TaskManager()
|
virtual |
Definition at line 77 of file taskmanager.cpp.
Member Function Documentation
◆ activeTaskChanged
|
signal |
Emitted when the active window changed.
◆ activeWindowChanged
|
protectedslot |
Definition at line 225 of file taskmanager.cpp.
◆ configure_startup()
|
protected |
Definition at line 81 of file taskmanager.cpp.
◆ currentDesktop()
int TaskManager::currentDesktop | ( | ) | const |
Returns the number of the current desktop.
Definition at line 822 of file taskmanager.cpp.
◆ currentDesktopChanged
|
protectedslot |
Definition at line 250 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.
◆ gotNewStartup
|
protectedslot |
Definition at line 255 of file taskmanager.cpp.
◆ gotRemoveStartup
|
protectedslot |
Definition at line 273 of file taskmanager.cpp.
◆ gotStartupChange
|
protectedslot |
Definition at line 263 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.
◆ killStartup [1/2]
|
protectedslot |
Definition at line 278 of file taskmanager.cpp.
◆ killStartup [2/2]
|
protectedslot |
Definition at line 292 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.
◆ windowAdded
|
protectedslot |
Definition at line 115 of file taskmanager.cpp.
◆ windowChanged [1/2]
|
signal |
Emitted when a window changes desktop.
◆ windowChanged [2/2]
|
protectedslot |
Definition at line 188 of file taskmanager.cpp.
◆ windowRemoved
|
protectedslot |
Definition at line 166 of file taskmanager.cpp.
The documentation for this class was generated from the following files: