File indexing completed on 2022-09-27 15:54:08

0001 // SPDX-FileCopyrightText: 2017 Atul Sharma <atulsharma406@gmail.com>
0002 // SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
0003 // SPDX-License-Identifier: LGPL-2.0-or-later
0004 
0005 #pragma once
0006 
0007 #include <QVariant>
0008 #include <knotification.h>
0009 
0010 class NotificationManager : public QObject
0011 {
0012     Q_OBJECT
0013 public:
0014     explicit NotificationManager(QObject *parent = nullptr);
0015     ~NotificationManager();
0016 
0017     //! @argument url: the valid url returned after sharing the image
0018     Q_INVOKABLE void showNotification(const QString &url);
0019 
0020 private:
0021     KNotification *m_sharingSuccess;
0022 };