Applets
Notifier::NotifierDialog Class Reference
The panel used to display devices in a popup. More...
#include <notifierdialog.h>
Inheritance diagram for Notifier::NotifierDialog:

Public Types | |
| enum | SpecificRoles { SolidUdiRole = Qt::UserRole + 1, PredicateFilesRole = Qt::UserRole + 2, ActionRole = Qt::UserRole + 3, IconNameRole = Qt::UserRole + 4, ScopeRole = Qt::UserRole + 5, SubTitleMandatoryRole = Qt::UserRole + 6 } |
Signals | |
| void | itemSelected () |
Public Member Functions | |
| int | countDevices () |
| QWidget * | dialog () |
| QVariant | getDeviceData (const QString &name, int role) |
| QString | getDeviceUdi (int index) |
| void | hide () |
| void | insertDevice (const QString &name) |
| NotifierDialog (DeviceNotifier *notifier, QObject *parent=0) | |
| void | removeDevice (int index) |
| void | removeDevice (const QString &name) |
| void | setDeviceData (const QString &name, QVariant data, int role) |
| void | setUnMount (bool unmount, const QString &name) |
| void | show () |
| virtual | ~NotifierDialog () |
Detailed Description
The panel used to display devices in a popup.
Definition at line 60 of file notifierdialog.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
| Notifier::NotifierDialog::NotifierDialog | ( | DeviceNotifier * | notifier, | |
| QObject * | parent = 0 | |||
| ) |
Constructor of the dialog.
- Parameters:
-
notifier the notifier attached to this dialog area where the dialog is displayed parent the parent of this object
| virtual Notifier::NotifierDialog::~NotifierDialog | ( | ) | [virtual] |
Default destructor.
Member Function Documentation
| int Notifier::NotifierDialog::countDevices | ( | ) |
Return the number of items displayed.
Allow to get a data display by the view.
- Parameters:
-
name the name of the device role the role where is the data
| QString Notifier::NotifierDialog::getDeviceUdi | ( | int | index | ) |
get the udi of a device displayed in the dialog
- Parameters:
-
index the index of the device
| void Notifier::NotifierDialog::hide | ( | ) |
Hide the dialog.
| void Notifier::NotifierDialog::insertDevice | ( | const QString & | name | ) |
insert a device in the data-model of the dialog
- Parameters:
-
name the name of the device
| void Notifier::NotifierDialog::itemSelected | ( | ) | [signal] |
| void Notifier::NotifierDialog::removeDevice | ( | int | index | ) |
Remove a device in the view (provided by convenience).
- Parameters:
-
index the index where the data will be delete
| void Notifier::NotifierDialog::removeDevice | ( | const QString & | name | ) |
Remove a device in the dialog.
- Parameters:
-
name the name of the device
Allow to set data which will be displayed by the view.
- Parameters:
-
name the name of the device data the data role the role in the data-model
| void Notifier::NotifierDialog::setUnMount | ( | bool | unmount, | |
| const QString & | name | |||
| ) |
| void Notifier::NotifierDialog::show | ( | ) |
Show the dialog.
The documentation for this class was generated from the following file:
KDE 4.2 API Reference