| 1 | /* |
| 2 | This file is part of the KDE libraries |
| 3 | SPDX-FileCopyrightText: 2005-2006 Olivier Goffart <ogoffart at kde.org> |
| 4 | SPDX-FileCopyrightText: 2013-2014 Martin Klapetek <mklapetek@kde.org> |
| 5 | |
| 6 | code from KNotify/KNotifyClient |
| 7 | SPDX-FileCopyrightText: 1997 Christian Esken <esken@kde.org> |
| 8 | SPDX-FileCopyrightText: 2000 Charles Samuels <charles@kde.org> |
| 9 | SPDX-FileCopyrightText: 2000 Stefan Schimanski <1Stein@gmx.de> |
| 10 | SPDX-FileCopyrightText: 2000 Matthias Ettrich <ettrich@kde.org> |
| 11 | SPDX-FileCopyrightText: 2000 Waldo Bastian <bastian@kde.org> |
| 12 | SPDX-FileCopyrightText: 2000-2003 Carsten Pfeiffer <pfeiffer@kde.org> |
| 13 | SPDX-FileCopyrightText: 2005 Allan Sandfeld Jensen <kde@carewolf.com> |
| 14 | |
| 15 | SPDX-License-Identifier: LGPL-2.0-only |
| 16 | */ |
| 17 | |
| 18 | #ifndef KNOITIFICATION_P_H |
| 19 | #define KNOITIFICATION_P_H |
| 20 | |
| 21 | #include <QTimer> |
| 22 | |
| 23 | struct Q_DECL_HIDDEN KNotification::Private { |
| 24 | QString eventId; |
| 25 | int id = -1; |
| 26 | int ref = 0; |
| 27 | |
| 28 | QString title; |
| 29 | QString text; |
| 30 | QString iconName; |
| 31 | KNotificationAction *defaultAction = nullptr; |
| 32 | QList<KNotificationAction *> actions; |
| 33 | bool ownsActions = true; |
| 34 | QString xdgActivationToken; |
| 35 | std::unique_ptr<KNotificationReplyAction> replyAction; |
| 36 | QPixmap pixmap; |
| 37 | NotificationFlags flags = KNotification::CloseOnTimeout; |
| 38 | QString componentName; |
| 39 | KNotification::Urgency urgency = KNotification::DefaultUrgency; |
| 40 | QVariantMap hints; |
| 41 | |
| 42 | QTimer updateTimer; |
| 43 | bool needUpdate = false; |
| 44 | bool isNew = true; |
| 45 | bool autoDelete = true; |
| 46 | QWindow *window = nullptr; |
| 47 | int actionIdCounter = 1; |
| 48 | }; |
| 49 | |
| 50 | #endif |
| 51 | |