blob: 8a291684fcd1556145993c48d91a3c786a7ce1c7 (
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
36
37
38
39
40
41
42
43
|
// Copyright (C) 2015 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QGEO_MOBILE_COUNTRY_TRACKER_H
#define QGEO_MOBILE_COUNTRY_TRACKER_H
#include <QObject>
#include <QPointer>
QT_BEGIN_NAMESPACE
class QNetworkInfo;
class QGeoUriProvider : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(QGeoUriProvider)
public:
QGeoUriProvider(QObject *parent,
const QVariantMap ¶meters,
const QString &hostParameterName,
const QString &internationalHost,
const QString &localizedHost = QString());
QString getCurrentHost() const;
private Q_SLOTS:
void mobileCountryCodeChanged(int interfaceId, const QString& mcc);
private:
bool isInternationalNetwork() const;
void setCurrentHost(const QString &host);
const QString m_internationalHost;
const QString m_localizedHost;
QString m_currentHost;
QChar m_firstSubdomain;
unsigned char m_maxSubdomains;
};
QT_END_NAMESPACE
#endif // QGEO_MOBILE_COUNTRY_TRACKER_H
|