blob: c1e4d2753fed96fd6505789e87c1a50b1b41b78b (
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
|
// Copyright (C) 2021 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 INTENTCLIENTDBUSIMPLEMENTATION_H
#define INTENTCLIENTDBUSIMPLEMENTATION_H
#include <QtCore/QPointer>
#include <QtAppManShared/intentclientsysteminterface.h>
#include <QtAppManApplication/qtappmanapplicationglobal.h>
class IoQtApplicationManagerIntentInterfaceInterface;
QT_BEGIN_NAMESPACE_AM
class Q_APPMANAPPLICATION_EXPORT IntentClientDBusImplementation : public IntentClientSystemInterface
{
Q_OBJECT
public:
IntentClientDBusImplementation(const QString &dbusName, QObject *parent = nullptr);
void initialize(IntentClient *intentClient) noexcept(false) override;
bool isSystemUI() const override;
QString currentApplicationId(QObject *hint) override;
void requestToSystem(const QPointer<IntentClientRequest> &icr) override;
void replyFromApplication(const QPointer<IntentClientRequest> &icr) override;
private:
IoQtApplicationManagerIntentInterfaceInterface *m_dbusInterface = nullptr;
QString m_dbusName;
};
QT_END_NAMESPACE_AM
#endif // INTENTCLIENTDBUSIMPLEMENTATION_H
|