Applets
DeviceNotifier Class Reference
Applet used to display hot plug devices. More...
#include <devicenotifier.h>

Public Slots | |
void | toolTipAboutToShow () |
void | toolTipHidden () |
Public Member Functions | |
void | changeNotifierIcon (const QString &name=QString()) |
DeviceNotifier (QObject *parent, const QVariantList &args) | |
void | init () |
QWidget * | widget () |
~DeviceNotifier () | |
Protected Slots | |
void | dataUpdated (const QString &source, Plasma::DataEngine::Data data) |
void | onSourceAdded (const QString &name) |
void | onSourceRemoved (const QString &name) |
Protected Member Functions | |
void | popupEvent (bool show) |
Detailed Description
Applet used to display hot plug devices.
Definition at line 53 of file devicenotifier.h.
Constructor & Destructor Documentation
DeviceNotifier::DeviceNotifier | ( | QObject * | parent, | |
const QVariantList & | args | |||
) |
Constructor of the applet.
- Parameters:
-
parent the parent of this object
Definition at line 54 of file devicenotifier.cpp.
DeviceNotifier::~DeviceNotifier | ( | ) |
Member Function Documentation
allow to change the icon of the notifier if this applet is in icon mode
Definition at line 129 of file devicenotifier.cpp.
void DeviceNotifier::dataUpdated | ( | const QString & | source, | |
Plasma::DataEngine::Data | data | |||
) | [protected, slot] |
slot called when a source of the hotplug engine is updated
- Parameters:
-
source the name of the source data the data of the source
Definition at line 147 of file devicenotifier.cpp.
void DeviceNotifier::init | ( | ) |
initialize the applet (called by plasma automatically)
Definition at line 79 of file devicenotifier.cpp.
void DeviceNotifier::onSourceAdded | ( | const QString & | name | ) | [protected, slot] |
slot called when a source/device is added in the hotplug engine
- Parameters:
-
name the name of the new source
Definition at line 243 of file devicenotifier.cpp.
void DeviceNotifier::onSourceRemoved | ( | const QString & | name | ) | [protected, slot] |
For internal use only.
slot called when a source/device is removed in the hotplug engine
- Parameters:
-
name the name of the removed source
Definition at line 262 of file devicenotifier.cpp.
void DeviceNotifier::popupEvent | ( | bool | show | ) | [protected] |
Definition at line 140 of file devicenotifier.cpp.
void DeviceNotifier::toolTipAboutToShow | ( | ) | [slot] |
For internal use only.
Sets the tooltip content properly before showing.
Definition at line 217 of file devicenotifier.cpp.
void DeviceNotifier::toolTipHidden | ( | ) | [slot] |
For internal use only.
Clears memory when needed.
Definition at line 233 of file devicenotifier.cpp.
QWidget * DeviceNotifier::widget | ( | ) |
The documentation for this class was generated from the following files: