blob: 206380c5007493e94bf36aeaba4c94e70575387f (
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
39
40
|
// Copyright (C) 2023 The Qt Company Ltd.
// Copyright (C) 2019 Luxoft Sweden AB
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef QMLINPROCNOTIFICATIONIMPL_H
#define QMLINPROCNOTIFICATIONIMPL_H
#include <QtCore/QVector>
#include <QtCore/QPointer>
#include <QtQml/QQmlParserStatus>
#include <QtAppManSharedMain/notificationimpl.h>
QT_BEGIN_NAMESPACE_AM
class QmlInProcNotificationImpl : public NotificationImpl
{
public:
QmlInProcNotificationImpl(Notification *notification, const QString &applicationId);
static void initialize();
void classBegin() override;
uint show() override;
void close() override;
private:
QString m_applicationId;
static QVector<QPointer<Notification>> s_allNotifications;
Q_DISABLE_COPY_MOVE(QmlInProcNotificationImpl)
friend class QmlInProcApplicationInterfaceImpl;
};
QT_END_NAMESPACE_AM
#endif // QMLINPROCNOTIFICATIONIMPL_H
|