Files
RedBear-OS/local/recipes/kde/kf6-knotifications/source/src/knotification_p.h
T
2026-04-14 10:51:06 +01:00

51 lines
1.5 KiB
C++

/*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 2005-2006 Olivier Goffart <ogoffart at kde.org>
SPDX-FileCopyrightText: 2013-2014 Martin Klapetek <mklapetek@kde.org>
code from KNotify/KNotifyClient
SPDX-FileCopyrightText: 1997 Christian Esken <esken@kde.org>
SPDX-FileCopyrightText: 2000 Charles Samuels <charles@kde.org>
SPDX-FileCopyrightText: 2000 Stefan Schimanski <1Stein@gmx.de>
SPDX-FileCopyrightText: 2000 Matthias Ettrich <ettrich@kde.org>
SPDX-FileCopyrightText: 2000 Waldo Bastian <bastian@kde.org>
SPDX-FileCopyrightText: 2000-2003 Carsten Pfeiffer <pfeiffer@kde.org>
SPDX-FileCopyrightText: 2005 Allan Sandfeld Jensen <kde@carewolf.com>
SPDX-License-Identifier: LGPL-2.0-only
*/
#ifndef KNOITIFICATION_P_H
#define KNOITIFICATION_P_H
#include <QTimer>
struct Q_DECL_HIDDEN KNotification::Private {
QString eventId;
int id = -1;
int ref = 0;
QString title;
QString text;
QString iconName;
KNotificationAction *defaultAction = nullptr;
QList<KNotificationAction *> actions;
bool ownsActions = true;
QString xdgActivationToken;
std::unique_ptr<KNotificationReplyAction> replyAction;
QPixmap pixmap;
NotificationFlags flags = KNotification::CloseOnTimeout;
QString componentName;
KNotification::Urgency urgency = KNotification::DefaultUrgency;
QVariantMap hints;
QTimer updateTimer;
bool needUpdate = false;
bool isNew = true;
bool autoDelete = true;
QWindow *window = nullptr;
int actionIdCounter = 1;
};
#endif