blob: cfebbde01f65c77d5f8dbf8a8321a83964ffcb9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "global.h"
#include "notification.h"
#include "notificationimpl.h"
QT_BEGIN_NAMESPACE_AM
std::function<NotificationImpl *(Notification *, const QString &)> NotificationImpl::s_factory;
NotificationImpl::NotificationImpl(Notification *notification)
: m_notification(notification)
{ }
void NotificationImpl::setFactory(const std::function<NotificationImpl *(Notification *, const QString &)> &factory)
{
s_factory = factory;
}
NotificationImpl *NotificationImpl::create(Notification *notification, const QString &applicationId)
{
return s_factory ? s_factory(notification, applicationId) : nullptr;
}
Notification *NotificationImpl::notification()
{
return m_notification;
}
void NotificationImpl::classBegin()
{ }
void NotificationImpl::componentComplete()
{ }
QT_END_NAMESPACE_AM
|