Qt 6.x
The Qt SDK
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
Definition qchar.h:48
QString getCurrentHost() const
\inmodule QtCore
Definition qobject.h:90
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:311
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
#define Q_OBJECT
#define Q_SLOTS