28 lines
908 B
C++
28 lines
908 B
C++
//
|
|
// Created by zpf on 2023/2/7.
|
|
//
|
|
|
|
#include "notification-client-test.h"
|
|
#include <QDebug>
|
|
|
|
NotificationClientTest::NotificationClientTest(QObject *parent) : QObject(parent)
|
|
{
|
|
m_client = new UkuiNotification::NotificationClient(this);
|
|
connect(m_client, &UkuiNotification::NotificationClient::newNotification,
|
|
[&](const UkuiNotification::PopupNotification ¬ification){
|
|
qDebug() << notification.applicationName()
|
|
<< notification.applicationIconName()
|
|
<< notification.summary()
|
|
<< notification.body()
|
|
<< notification.actions()
|
|
<< notification.hints()
|
|
<< notification.timeout();
|
|
});
|
|
qDebug() << "Register client" << m_client->registerClient();
|
|
}
|
|
|
|
NotificationClientTest::~NotificationClientTest()
|
|
{
|
|
|
|
}
|