Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qandroidplatformservices.h
Go to the documentation of this file.
1// Copyright (C) 2012 BogDan Vatra <bogdan@kde.org>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef ANDROIDPLATFORMDESKTOPSERVICE_H
5#define ANDROIDPLATFORMDESKTOPSERVICE_H
6
7#include <qpa/qplatformservices.h>
8#include "androidjnimain.h"
9#include <QtCore/private/qjnihelpers_p.h>
10#include <QtCore/qobject.h>
11#include <QUrl>
12
14
16 public QPlatformServices,
18{
19public:
21
22 bool openUrl(const QUrl &url) override;
23 bool openDocument(const QUrl &url) override;
24 QByteArray desktopEnvironment() const override;
25
26 bool handleNewIntent(JNIEnv *env, jobject intent) override;
27
28private:
29 QUrl m_handlingUrl;
30 QString m_actionView;
31};
32
34
35#endif // ANDROIDPLATFORMDESKTOPSERVICE_H
QByteArray desktopEnvironment() const override
QPlatformServices::desktopEnvironment returns the active desktop environment.
bool handleNewIntent(JNIEnv *env, jobject intent) override
bool openDocument(const QUrl &url) override
bool openUrl(const QUrl &url) override
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
Definition qobject.h:103
The QPlatformServices provides the backend for desktop-related functionality.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
QUrl url("example.com")
[constructor-url-reference]