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

Applets

Notifier::NotifierDialog

Notifier::NotifierDialog Class Reference

The panel used to display devices in a popup. More...

#include <notifierdialog.h>

Inheritance diagram for Notifier::NotifierDialog:

Inheritance graph
[legend]

List of all members.


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

enum Notifier::NotifierDialog::SpecificRoles

Specific role for the data-model.

Enumerator:
SolidUdiRole 
PredicateFilesRole 
ActionRole 
IconNameRole 
ScopeRole 
SubTitleMandatoryRole 

Definition at line 68 of file notifierdialog.h.


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.

QWidget* Notifier::NotifierDialog::dialog (  ) 

Returns the related QWidget.

QVariant Notifier::NotifierDialog::getDeviceData ( const QString &  name,
int  role 
)

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

void Notifier::NotifierDialog::setDeviceData ( const QString &  name,
QVariant  data,
int  role 
)

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:
  • notifierdialog.h

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