Applets
SystemTray::PlasmoidTask Class Reference
#include <plasmoidtask.h>

Signals | |
| void | taskDeleted (QString typeId) |
Public Member Functions | |
| virtual QIcon | icon () const |
| virtual bool | isEmbeddable () const |
| bool | isValid () const |
| virtual QString | name () const |
| PlasmoidTask (QString appletName) | |
| virtual QString | typeId () const |
| virtual | ~PlasmoidTask () |
Protected Member Functions | |
| virtual QGraphicsWidget * | createWidget (Plasma::Applet *applet) |
Detailed Description
Definition at line 33 of file plasmoidtask.h.
Constructor & Destructor Documentation
| SystemTray::PlasmoidTask::PlasmoidTask | ( | QString | appletName | ) |
Definition at line 56 of file plasmoidtask.cpp.
| SystemTray::PlasmoidTask::~PlasmoidTask | ( | ) | [virtual] |
Definition at line 62 of file plasmoidtask.cpp.
Member Function Documentation
| QGraphicsWidget * SystemTray::PlasmoidTask::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 97 of file plasmoidtask.cpp.
| QIcon SystemTray::PlasmoidTask::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 91 of file plasmoidtask.cpp.
| bool SystemTray::PlasmoidTask::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 69 of file plasmoidtask.cpp.
| bool SystemTray::PlasmoidTask::isValid | ( | ) | const |
Definition at line 74 of file plasmoidtask.cpp.
| QString SystemTray::PlasmoidTask::name | ( | ) | const [virtual] |
Returns the name of this task that should be presented to the user.
Implements SystemTray::Task.
Definition at line 79 of file plasmoidtask.cpp.
| void SystemTray::PlasmoidTask::taskDeleted | ( | QString | typeId | ) | [signal] |
| QString SystemTray::PlasmoidTask::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 85 of file plasmoidtask.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference