blob: 762d14deeb747972dfc0daf80cc7859d6e7839d0 (
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
|
// Copyright (C) 2012 BogDan Vatra <bogdan@kde.org>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef ANDROIDPLATFORMDESKTOPSERVICE_H
#define ANDROIDPLATFORMDESKTOPSERVICE_H
#include <qpa/qplatformservices.h>
#include "androidjnimain.h"
#include <QtCore/private/qjnihelpers_p.h>
#include <QtCore/qobject.h>
#include <QUrl>
QT_BEGIN_NAMESPACE
class QAndroidPlatformServices : public QObject,
public QPlatformServices,
public QtAndroidPrivate::NewIntentListener
{
public:
QAndroidPlatformServices();
bool openUrl(const QUrl &url) override;
bool openDocument(const QUrl &url) override;
QByteArray desktopEnvironment() const override;
bool handleNewIntent(JNIEnv *env, jobject intent) override;
private:
QUrl m_handlingUrl;
QString m_actionView;
};
QT_END_NAMESPACE
#endif // ANDROIDPLATFORMDESKTOPSERVICE_H
|