ukui-notification/test/notification-client-test.cpp

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 &notification){
qDebug() << notification.applicationName()
<< notification.applicationIconName()
<< notification.summary()
<< notification.body()
<< notification.actions()
<< notification.hints()
<< notification.timeout();
});
qDebug() << "Register client" << m_client->registerClient();
}
NotificationClientTest::~NotificationClientTest()
{
}