• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

Signals | Public Member Functions | Protected Slots | Protected Member Functions
TaskManager Class Reference

#include <taskmanager.h>

Inherits TQObject.

List of all members.

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.

See also:
Task
Startup
KWinModule
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

void TaskManager::activeTaskChanged ( Task *  ) [signal]

Emitted when the active window changed.

int TaskManager::currentDesktop ( ) const

Returns the number of the current desktop.

Definition at line 822 of file taskmanager.cpp.

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

Emitted when the current desktop changes.

TQString TaskManager::desktopName ( int  n) const

Returns the name of the nth desktop.

Definition at line 301 of file taskmanager.cpp.

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 *  task)

Returns true if the specified task is on top.

Definition at line 311 of file taskmanager.cpp.

int TaskManager::numberOfDesktops ( ) const

Returns the number of virtual desktops.

Definition at line 306 of file taskmanager.cpp.

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 TQPtrList in KDE 3.

Definition at line 453 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 TQPtrList in KDE 3.

Definition at line 447 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:
  • taskmanager.h
  • taskmanager.cpp

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.