• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Applets

SystemTray::ExtenderTask

SystemTray::ExtenderTask Class Reference

#include <extendertask.h>

Inheritance diagram for SystemTray::ExtenderTask:

Inheritance graph
[legend]

List of all members.


Signals

void taskDeleted (QString typeId)

Public Member Functions

 ExtenderTask (Plasma::PopupApplet *systemTray)
virtual QIcon icon () const
virtual bool isEmbeddable () const
bool isHideable () const
bool isValid () const
virtual QString name () const
void setIcon (const QString &icon)
virtual QString typeId () const
virtual ~ExtenderTask ()

Protected Member Functions

virtual QGraphicsWidget * createWidget (Plasma::Applet *applet)

Detailed Description

Definition at line 34 of file extendertask.h.


Constructor & Destructor Documentation

SystemTray::ExtenderTask::ExtenderTask ( Plasma::PopupApplet *  systemTray  ) 

Definition at line 51 of file extendertask.cpp.

SystemTray::ExtenderTask::~ExtenderTask (  )  [virtual]

Definition at line 58 of file extendertask.cpp.


Member Function Documentation

QGraphicsWidget * SystemTray::ExtenderTask::createWidget ( Plasma::Applet *  host  )  [protected, virtual]

Called when a new widget is required.

Subclasses should implement this to return a graphics widget that handles all user interaction with the task. Ownership of the created widget is handled automatically so subclasses should not delete the created widget.

Implements SystemTray::Task.

Definition at line 106 of file extendertask.cpp.

QIcon SystemTray::ExtenderTask::icon (  )  const [virtual]

Returns an icon that can be associated with this task.

The icon returned is not necessarily the same icon that appears in the tray icon itself.

Implements SystemTray::Task.

Definition at line 93 of file extendertask.cpp.

bool SystemTray::ExtenderTask::isEmbeddable (  )  const [virtual]

Returns whether this task can be embeddable.

Depending on the protocol, there may be circumstances under which a new widget can not be created. isEmbeddable() will return false under these circumstances.

Implements SystemTray::Task.

Definition at line 65 of file extendertask.cpp.

bool SystemTray::ExtenderTask::isHideable (  )  const [virtual]

Returns whether the task is currently hideable by the user or not.

Reimplemented from SystemTray::Task.

Definition at line 75 of file extendertask.cpp.

bool SystemTray::ExtenderTask::isValid (  )  const

Definition at line 70 of file extendertask.cpp.

QString SystemTray::ExtenderTask::name (  )  const [virtual]

Returns the name of this task that should be presented to the user.

Implements SystemTray::Task.

Definition at line 80 of file extendertask.cpp.

void SystemTray::ExtenderTask::setIcon ( const QString &  icon  ) 

Definition at line 98 of file extendertask.cpp.

void SystemTray::ExtenderTask::taskDeleted ( QString  typeId  )  [signal]

QString SystemTray::ExtenderTask::typeId (  )  const [virtual]

Returns a unique identifier for this task.

The identifier is valid between restarts and so is safe to save

Implements SystemTray::Task.

Definition at line 86 of file extendertask.cpp.


The documentation for this class was generated from the following files:
  • extendertask.h
  • extendertask.cpp

Applets

Skip menu "Applets"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal