Applets
SystemTray::ExtenderTask Class Reference
#include <extendertask.h>

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: