TaskManager Class Reference

#include <taskmanager.h>

Inheritance diagram for TaskManager:
QObject

List of all members.

Signals

void taskAdded (Task::Ptr)
void taskRemoved (Task::Ptr)
void startupAdded (Startup::Ptr)
void startupRemoved (Startup::Ptr)
void desktopChanged (int desktop)
void windowChanged (Task::Ptr)
void windowChangedGeometry (Task::Ptr)

Public Member Functions

Task::Ptr findTask (WId w)
Task::Ptr findTask (int desktop, const TQPoint &p)
Task::Dict tasks () const
Startup::List startups () const
TQString desktopName (int n) const
int numberOfDesktops () const
int currentDesktop () const
bool isOnTop (const Task *)
void trackGeometry ()
void trackGeometry (bool track)
KWinModule * winModule () const
void setXCompositeEnabled (bool state)

Static Public Member Functions

static TaskManagerthe ()
static bool isOnScreen (int screen, const WId wid)
static bool xCompositeEnabled ()

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::Ptr)
void gotNewStartup (const KStartupInfoId &, const KStartupInfoData &)
void gotStartupChange (const KStartupInfoId &, const KStartupInfoData &)

Protected Member Functions

void configure_startup ()
void updateWindowPixmap (WId)

Properties

int currentDesktop
int numberOfDesktops

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

Member Function Documentation

int TaskManager::currentDesktop (  )  const

Returns the number of the current desktop.

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.

Task::Ptr TaskManager::findTask ( int  desktop,
const TQPoint &  p 
)

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

Task::Ptr TaskManager::findTask ( WId  w  ) 

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

bool TaskManager::isOnScreen ( int  screen,
const WId  wid 
) [static]

Returns whether the Window with WId wid is on the screen screen

bool TaskManager::isOnTop ( const Task task  ) 

Returns true if the specified task is on top.

int TaskManager::numberOfDesktops (  )  const

Returns the number of virtual desktops.

void TaskManager::startupAdded ( Startup::Ptr   )  [signal]

Emitted when a new task is expected.

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

Startup::List TaskManager::startups (  )  const [inline]

Returns a list of all current startups.

void TaskManager::taskAdded ( Task::Ptr   )  [signal]

Emitted when a new task has started.

void TaskManager::taskRemoved ( Task::Ptr   )  [signal]

Emitted when a task has terminated.

Task::Dict TaskManager::tasks (  )  const [inline]

Returns a list of all current tasks.

void TaskManager::trackGeometry (  )  [inline]

Tells the task manager whether or not we care about geometry updates. This generates a lot of activity so should only be used when necessary.

void TaskManager::windowChanged ( Task::Ptr   )  [signal]

Emitted when a window changes desktop.


The documentation for this class was generated from the following files:

Generated on Sat Oct 2 23:01:08 2010 by  doxygen 1.6.1