29 lines
756 B
C++
29 lines
756 B
C++
//
|
|
// Created by zpf on 2023/3/8.
|
|
//
|
|
|
|
#ifndef UKUI_NOTIFICATION_NOTIFICATIONCLOSEREASON_H
|
|
#define UKUI_NOTIFICATION_NOTIFICATIONCLOSEREASON_H
|
|
|
|
|
|
#include <QObject>
|
|
#include "ukui-notification_global.h"
|
|
|
|
namespace UkuiNotification {
|
|
class UKUINOTIFICATION_EXPORT NotificationCloseReason
|
|
{
|
|
Q_GADGET
|
|
public:
|
|
/**
|
|
* The reason a notification was closed
|
|
*/
|
|
enum CloseReason {
|
|
Expired = 1, // The notification expired(timed out).
|
|
DismissedByUser = 2, // The notification was dismissed by the user.
|
|
Revoked = 3, //< The notification was closed by sender by a call to CloseNotification.
|
|
Undefined = 4, //Undefined/reserved reasons.
|
|
};
|
|
Q_ENUM(CloseReason)
|
|
};
|
|
}
|
|
#endif //UKUI_NOTIFICATION_NOTIFICATIONCLOSEREASON_H
|