digiKam
dnotificationwrapper.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2008-07-03
7  * Description : A wrapper send desktop notifications
8  *
9  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2009-2011 by Michael G. Hansen <mike at mghansen dot de>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_DNOTIFICATION_WRAPPER_H
26 #define DIGIKAM_DNOTIFICATION_WRAPPER_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QPixmap>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 class QWidget;
38 
39 namespace Digikam
40 {
41 
52 void DIGIKAM_EXPORT DNotificationWrapper(const QString& eventId, const QString& message,
53  QWidget* const parent, const QString& windowTitle,
54  const QPixmap& pixmap = QPixmap());
55 } // namespace Digikam
56 
57 #ifdef Q_OS_DARWIN
58 
59 bool MacNativeDispatchNotify(const QString& summary, const QString& message);
60 
61 #endif
62 
63 #endif // DIGIKAM_DNOTIFICATION_WRAPPER_H
Definition: datefolderview.cpp:43
void DNotificationWrapper(const QString &eventId, const QString &message, QWidget *const parent, const QString &windowTitle, const QPixmap &pixmap)
Show a notification using KNotify, or KPassivePopup if KNotify is unavailable.
Definition: dnotificationwrapper.cpp:116