/* SPDX-FileCopyrightText: 2023 Volker Krause SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KNOTIFICATIONPERMISSION_H #define KNOTIFICATIONPERMISSION_H #include #include #include /** Check or request permissions to show notifications on platforms where * that is necessary. * * @since 6.0 */ namespace KNotificationPermission { /** Check if the current application has permissions to show notifications. */ KNOTIFICATIONS_EXPORT Qt::PermissionStatus checkPermission(); /** Request notification permissions. */ KNOTIFICATIONS_EXPORT void requestPermission(QObject *context, const std::function &callback); } #endif