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

Applets

DeviceNotifier Class Reference

Applet used to display hot plug devices. More...

#include <devicenotifier.h>

Inheritance diagram for DeviceNotifier:

Inheritance graph
[legend]

List of all members.


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 (  ) 

Default destructor.

Definition at line 73 of file devicenotifier.cpp.


Member Function Documentation

void DeviceNotifier::changeNotifierIcon ( const QString &  name = QString()  ) 

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 widget that displays the list of devices.

Definition at line 106 of file devicenotifier.cpp.


The documentation for this class was generated from the following files:
  • devicenotifier.h
  • devicenotifier.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