File indexing completed on 2024-04-28 05:36:51
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Kai Uwe Broulik <kde@broulik.de> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef XDG_DESKTOP_PORTAL_KDE_NOTIFICATIONINHIBITION_H 0008 #define XDG_DESKTOP_PORTAL_KDE_NOTIFICATIONINHIBITION_H 0009 0010 #include <QObject> 0011 0012 class NotificationInhibition : public QObject 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit NotificationInhibition(const QString &appId, const QString &reason, QObject *parent = nullptr); 0017 ~NotificationInhibition() override; 0018 0019 private: 0020 static void uninhibit(uint cookie); 0021 uint m_cookie = 0; 0022 }; 0023 0024 #endif // XDG_DESKTOP_PORTAL_KDE_NOTIFICATIONINHIBITION_H