KDEUI
#include <knotificationrestrictions.h>
Public Types | |
enum | Service { NoServices = 0, ScreenSaver = 1, MessagingPopups = 2, Notifications = 4, CriticalNotifications = 8, NonCriticalServices, AllServices = NonCriticalServices | CriticalNotifications } |
Public Member Functions | |
KNotificationRestrictions (Services control=NonCriticalServices, QObject *parent=0) | |
virtual | ~KNotificationRestrictions () |
Detailed Description
KNotificationRestrictions provides a simple mechanism to avoid disruptions during full screen presentations or other use cases where the screensaver or desktop notifcations are inappropriate.
Using KNotificationRestrictions is quite straightforward: create an instance of KNotificationRestrictions, passing in the set of or'd flags representing the services that should be prevented from interrupting the user. When done (for instance when the presentation is complete) simply delete the KNotificationRestrictions object.
Example: to ensure the screensaver does not turn on during a presentation:
Definition at line 47 of file knotificationrestrictions.h.
Member Enumeration Documentation
Definition at line 55 of file knotificationrestrictions.h.
Constructor & Destructor Documentation
|
explicit |
Constructs a new service for restrict some services.
- Parameters
-
control the services to be restricted parent the parent of this object
Definition at line 75 of file knotificationrestrictions.cpp.
|
virtual |
Definition at line 85 of file knotificationrestrictions.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.