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
qgeouriprovider.h
Go to the documentation of this file.
1// Copyright (C) 2015 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#ifndef QGEO_MOBILE_COUNTRY_TRACKER_H
4#define QGEO_MOBILE_COUNTRY_TRACKER_H
5
6#include <QObject>
7#include <QPointer>
8
10
11class QNetworkInfo;
12
14{
16 Q_DISABLE_COPY(QGeoUriProvider)
17
18public:
20 const QVariantMap &parameters,
21 const QString &hostParameterName,
22 const QString &internationalHost,
23 const QString &localizedHost = QString());
24
25 QString getCurrentHost() const;
26
27private Q_SLOTS:
28 void mobileCountryCodeChanged(int interfaceId, const QString& mcc);
29
30private:
31 bool isInternationalNetwork() const;
32 void setCurrentHost(const QString &host);
33
34 const QString m_internationalHost;
35 const QString m_localizedHost;
36 QString m_currentHost;
37 QChar m_firstSubdomain;
38 unsigned char m_maxSubdomains;
39};
40
42
43#endif // QGEO_MOBILE_COUNTRY_TRACKER_H
\inmodule QtCore
QString getCurrentHost() const
QGeoUriProvider(QObject *parent, const QVariantMap &parameters, const QString &hostParameterName, const QString &internationalHost, const QString &localizedHost=QString())
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_OBJECT
#define Q_SLOTS