KDEUI
knotificationrestrictions.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KDELIBS_KNOTIFICATIONRESTRICTIONS_H
00021 #define KDELIBS_KNOTIFICATIONRESTRICTIONS_H
00022
00023 #include <kdeui_export.h>
00024
00025 #include <QtCore/QObject>
00026
00046 class KDEUI_EXPORT KNotificationRestrictions : public QObject
00047 {
00048 Q_OBJECT
00049
00050 public:
00064 enum Service
00065 {
00066 NoServices = 0,
00067 ScreenSaver = 1,
00068 MessagingPopups = 2,
00069 Notifications = 4,
00070 CriticalNotifications = 8,
00071 NonCriticalServices = ScreenSaver |
00072 MessagingPopups |
00073 Notifications,
00074 AllServices = NonCriticalServices | CriticalNotifications
00075 };
00076 Q_DECLARE_FLAGS(Services, Service)
00077
00078 explicit KNotificationRestrictions(Services control = NonCriticalServices,
00079 QObject* parent = 0);
00080 virtual ~KNotificationRestrictions();
00081
00082 private:
00083 class Private;
00084 Private * const d;
00085
00086 Q_PRIVATE_SLOT( d, void screensaverFakeKeyEvent() )
00087 };
00088
00089 Q_DECLARE_OPERATORS_FOR_FLAGS(KNotificationRestrictions::Services)
00090 #endif