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
androidconnectivitymanager.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
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 ANDROIDCONNECTIVITYMANAGER_H
5#define ANDROIDCONNECTIVITYMANAGER_H
6
7#include <QObject>
8#include <QtCore/qjniobject.h>
9
11
13{
15public:
16 // Keep synchronized with AndroidConnectivity in QtAndroidNetworkInformation.java
19
20 // Keep synchronized with Transport in QtAndroidNetworkInformation.java
21 enum class AndroidTransport {
22 Unknown,
26 LoWPAN,
27 Usb,
28 WiFi,
30 };
32
35
36 inline bool isValid() const;
37
43
44private:
47 bool registerNatives() const;
48
49 Q_DISABLE_COPY_MOVE(AndroidConnectivityManager);
50};
51
53
54#endif // ANDROIDCONNECTIVITYMANAGER_H
static AndroidConnectivityManager * getInstance()
void transportMediumChanged(AndroidTransport transport)
void connectivityChanged(AndroidConnectivity connectivity)
void captivePortalChanged(bool state)
Q_ENUM(AndroidConnectivity)
void meteredChanged(bool state)
Q_ENUM(AndroidTransport)
\inmodule QtCore
Definition qobject.h:103
else opt state
[0]
static bool registerNatives()
Combined button and popup list for selecting options.
#define Q_OBJECT
#define Q_SIGNALS