Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/network/bearer/qnetworkconfiguration.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | QNetworkConfiguration::QNetworkConfiguration() | - | ||||||||||||
4 | : d(0) | - | ||||||||||||
5 | { | - | ||||||||||||
6 | } executed 8172 times by 34 tests: end of block Executed by:
| 8172 | ||||||||||||
7 | - | |||||||||||||
8 | - | |||||||||||||
9 | - | |||||||||||||
10 | - | |||||||||||||
11 | QNetworkConfiguration::QNetworkConfiguration(const QNetworkConfiguration &other) | - | ||||||||||||
12 | : d(other.d) | - | ||||||||||||
13 | { | - | ||||||||||||
14 | } executed 651 times by 19 tests: end of block Executed by:
| 651 | ||||||||||||
15 | - | |||||||||||||
16 | - | |||||||||||||
17 | - | |||||||||||||
18 | - | |||||||||||||
19 | QNetworkConfiguration::~QNetworkConfiguration() | - | ||||||||||||
20 | { | - | ||||||||||||
21 | } | - | ||||||||||||
22 | - | |||||||||||||
23 | - | |||||||||||||
24 | - | |||||||||||||
25 | - | |||||||||||||
26 | QNetworkConfiguration &QNetworkConfiguration::operator=(const QNetworkConfiguration &other) | - | ||||||||||||
27 | { | - | ||||||||||||
28 | d = other.d; | - | ||||||||||||
29 | return executed 309 times by 16 tests: *this;return *this; Executed by:
executed 309 times by 16 tests: return *this; Executed by:
| 309 | ||||||||||||
30 | } | - | ||||||||||||
31 | bool QNetworkConfiguration::operator==(const QNetworkConfiguration &other) const | - | ||||||||||||
32 | { | - | ||||||||||||
33 | return executed 491 times by 11 tests: (d == other.d);return (d == other.d); Executed by:
executed 491 times by 11 tests: return (d == other.d); Executed by:
| 491 | ||||||||||||
34 | } | - | ||||||||||||
35 | QString QNetworkConfiguration::name() const | - | ||||||||||||
36 | { | - | ||||||||||||
37 | if (!d
| 6-40 | ||||||||||||
38 | return executed 6 times by 1 test: QString();return QString(); Executed by:
executed 6 times by 1 test: return QString(); Executed by:
| 6 | ||||||||||||
39 | - | |||||||||||||
40 | QMutexLocker locker(&d->mutex); | - | ||||||||||||
41 | return executed 40 times by 4 tests: d->name;return d->name; Executed by:
executed 40 times by 4 tests: return d->name; Executed by:
| 40 | ||||||||||||
42 | } | - | ||||||||||||
43 | - | |||||||||||||
44 | - | |||||||||||||
45 | - | |||||||||||||
46 | - | |||||||||||||
47 | - | |||||||||||||
48 | QString QNetworkConfiguration::identifier() const | - | ||||||||||||
49 | { | - | ||||||||||||
50 | if (!d
| 2-851 | ||||||||||||
51 | return executed 2 times by 1 test: QString();return QString(); Executed by:
executed 2 times by 1 test: return QString(); Executed by:
| 2 | ||||||||||||
52 | - | |||||||||||||
53 | QMutexLocker locker(&d->mutex); | - | ||||||||||||
54 | return executed 851 times by 16 tests: d->id;return d->id; Executed by:
executed 851 times by 16 tests: return d->id; Executed by:
| 851 | ||||||||||||
55 | } | - | ||||||||||||
56 | QNetworkConfiguration::Type QNetworkConfiguration::type() const | - | ||||||||||||
57 | { | - | ||||||||||||
58 | if (!d
| 7-401 | ||||||||||||
59 | return executed 7 times by 1 test: QNetworkConfiguration::Invalid;return QNetworkConfiguration::Invalid; Executed by:
executed 7 times by 1 test: return QNetworkConfiguration::Invalid; Executed by:
| 7 | ||||||||||||
60 | - | |||||||||||||
61 | QMutexLocker locker(&d->mutex); | - | ||||||||||||
62 | return executed 401 times by 17 tests: d->type;return d->type; Executed by:
executed 401 times by 17 tests: return d->type; Executed by:
| 401 | ||||||||||||
63 | } | - | ||||||||||||
64 | bool QNetworkConfiguration::isValid() const | - | ||||||||||||
65 | { | - | ||||||||||||
66 | if (!d
| 171-1030 | ||||||||||||
67 | return executed 171 times by 17 tests: false;return false; Executed by:
executed 171 times by 17 tests: return false; Executed by:
| 171 | ||||||||||||
68 | - | |||||||||||||
69 | QMutexLocker locker(&d->mutex); | - | ||||||||||||
70 | return executed 1030 times by 12 tests: d->isValid;return d->isValid; Executed by:
executed 1030 times by 12 tests: return d->isValid; Executed by:
| 1030 | ||||||||||||
71 | } | - | ||||||||||||
72 | - | |||||||||||||
73 | - | |||||||||||||
74 | - | |||||||||||||
75 | - | |||||||||||||
76 | QNetworkConfiguration::StateFlags QNetworkConfiguration::state() const | - | ||||||||||||
77 | { | - | ||||||||||||
78 | if (!d
| 11-567 | ||||||||||||
79 | return executed 11 times by 2 tests: QNetworkConfiguration::Undefined;return QNetworkConfiguration::Undefined; Executed by:
executed 11 times by 2 tests: return QNetworkConfiguration::Undefined; Executed by:
| 11 | ||||||||||||
80 | - | |||||||||||||
81 | QMutexLocker locker(&d->mutex); | - | ||||||||||||
82 | return executed 567 times by 18 tests: d->state;return d->state; Executed by:
executed 567 times by 18 tests: return d->state; Executed by:
| 567 | ||||||||||||
83 | } | - | ||||||||||||
84 | QNetworkConfiguration::Purpose QNetworkConfiguration::purpose() const | - | ||||||||||||
85 | { | - | ||||||||||||
86 | if (!d
| 4-296 | ||||||||||||
87 | return executed 4 times by 1 test: QNetworkConfiguration::UnknownPurpose;return QNetworkConfiguration::UnknownPurpose; Executed by:
executed 4 times by 1 test: return QNetworkConfiguration::UnknownPurpose; Executed by:
| 4 | ||||||||||||
88 | - | |||||||||||||
89 | QMutexLocker locker(&d->mutex); | - | ||||||||||||
90 | return executed 296 times by 11 tests: d->purpose;return d->purpose; Executed by:
executed 296 times by 11 tests: return d->purpose; Executed by:
| 296 | ||||||||||||
91 | } | - | ||||||||||||
92 | - | |||||||||||||
93 | - | |||||||||||||
94 | - | |||||||||||||
95 | - | |||||||||||||
96 | bool QNetworkConfiguration::isRoamingAvailable() const | - | ||||||||||||
97 | { | - | ||||||||||||
98 | if (!d
| 2-15 | ||||||||||||
99 | return executed 2 times by 1 test: false;return false; Executed by:
executed 2 times by 1 test: return false; Executed by:
| 2 | ||||||||||||
100 | - | |||||||||||||
101 | QMutexLocker locker(&d->mutex); | - | ||||||||||||
102 | return executed 15 times by 2 tests: d->roamingSupported;return d->roamingSupported; Executed by:
executed 15 times by 2 tests: return d->roamingSupported; Executed by:
| 15 | ||||||||||||
103 | } | - | ||||||||||||
104 | QList<QNetworkConfiguration> QNetworkConfiguration::children() const | - | ||||||||||||
105 | { | - | ||||||||||||
106 | QList<QNetworkConfiguration> results; | - | ||||||||||||
107 | - | |||||||||||||
108 | if (!d
| 0 | ||||||||||||
109 | return never executed: results;return results; never executed: return results; | 0 | ||||||||||||
110 | - | |||||||||||||
111 | QMutexLocker locker(&d->mutex); | - | ||||||||||||
112 | - | |||||||||||||
113 | if (d->type != QNetworkConfiguration::ServiceNetwork
| 0 | ||||||||||||
114 | return never executed: results;return results; never executed: return results; | 0 | ||||||||||||
115 | - | |||||||||||||
116 | for (auto it = d->serviceNetworkMembers.begin(), end = d->serviceNetworkMembers.end(); it != end
| 0 | ||||||||||||
117 | QNetworkConfigurationPrivatePointer p = it.value(); | - | ||||||||||||
118 | - | |||||||||||||
119 | { | - | ||||||||||||
120 | QMutexLocker childLocker(&p->mutex); | - | ||||||||||||
121 | - | |||||||||||||
122 | if (!p->isValid
| 0 | ||||||||||||
123 | it = d->serviceNetworkMembers.erase(it); | - | ||||||||||||
124 | continue; never executed: continue; | 0 | ||||||||||||
125 | } | - | ||||||||||||
126 | } | - | ||||||||||||
127 | QNetworkConfiguration item; | - | ||||||||||||
128 | item.d = p; | - | ||||||||||||
129 | results << item; | - | ||||||||||||
130 | ++it; | - | ||||||||||||
131 | } never executed: end of block | 0 | ||||||||||||
132 | - | |||||||||||||
133 | return never executed: results;return results; never executed: return results; | 0 | ||||||||||||
134 | } | - | ||||||||||||
135 | QNetworkConfiguration::BearerType QNetworkConfiguration::bearerType() const | - | ||||||||||||
136 | { | - | ||||||||||||
137 | if (!isValid()
| 0-408 | ||||||||||||
138 | return never executed: BearerUnknown;return BearerUnknown; never executed: return BearerUnknown; | 0 | ||||||||||||
139 | - | |||||||||||||
140 | QMutexLocker locker(&d->mutex); | - | ||||||||||||
141 | return executed 408 times by 9 tests: d->bearerType;return d->bearerType; Executed by:
executed 408 times by 9 tests: return d->bearerType; Executed by:
| 408 | ||||||||||||
142 | } | - | ||||||||||||
143 | QNetworkConfiguration::BearerType QNetworkConfiguration::bearerTypeFamily() const | - | ||||||||||||
144 | { | - | ||||||||||||
145 | QNetworkConfiguration::BearerType type = bearerType(); | - | ||||||||||||
146 | switch (type) { | - | ||||||||||||
147 | case never executed: QNetworkConfiguration::BearerUnknown:case QNetworkConfiguration::BearerUnknown: never executed: case QNetworkConfiguration::BearerUnknown: | 0 | ||||||||||||
148 | case never executed: QNetworkConfiguration::Bearer2G:case QNetworkConfiguration::Bearer2G: never executed: case QNetworkConfiguration::Bearer2G: | 0 | ||||||||||||
149 | case never executed: QNetworkConfiguration::BearerEthernet:case QNetworkConfiguration::BearerEthernet: never executed: case QNetworkConfiguration::BearerEthernet: | 0 | ||||||||||||
150 | case never executed: QNetworkConfiguration::BearerWLAN:case QNetworkConfiguration::BearerWLAN: never executed: case QNetworkConfiguration::BearerWLAN: | 0 | ||||||||||||
151 | case never executed: QNetworkConfiguration::BearerBluetooth:case QNetworkConfiguration::BearerBluetooth: never executed: case QNetworkConfiguration::BearerBluetooth: | 0 | ||||||||||||
152 | return never executed: type;return type; never executed: return type; | 0 | ||||||||||||
153 | case never executed: QNetworkConfiguration::BearerCDMA2000:case QNetworkConfiguration::BearerCDMA2000: never executed: case QNetworkConfiguration::BearerCDMA2000: | 0 | ||||||||||||
154 | case never executed: QNetworkConfiguration::BearerEVDO:case QNetworkConfiguration::BearerEVDO: never executed: case QNetworkConfiguration::BearerEVDO: | 0 | ||||||||||||
155 | case never executed: QNetworkConfiguration::BearerWCDMA:case QNetworkConfiguration::BearerWCDMA: never executed: case QNetworkConfiguration::BearerWCDMA: | 0 | ||||||||||||
156 | case never executed: QNetworkConfiguration::BearerHSPA:case QNetworkConfiguration::BearerHSPA: never executed: case QNetworkConfiguration::BearerHSPA: | 0 | ||||||||||||
157 | case never executed: QNetworkConfiguration::Bearer3G:case QNetworkConfiguration::Bearer3G: never executed: case QNetworkConfiguration::Bearer3G: | 0 | ||||||||||||
158 | return never executed: QNetworkConfiguration::Bearer3G;return QNetworkConfiguration::Bearer3G; never executed: return QNetworkConfiguration::Bearer3G; | 0 | ||||||||||||
159 | case never executed: QNetworkConfiguration::BearerWiMAX:case QNetworkConfiguration::BearerWiMAX: never executed: case QNetworkConfiguration::BearerWiMAX: | 0 | ||||||||||||
160 | case never executed: QNetworkConfiguration::BearerLTE:case QNetworkConfiguration::BearerLTE: never executed: case QNetworkConfiguration::BearerLTE: | 0 | ||||||||||||
161 | case never executed: QNetworkConfiguration::Bearer4G:case QNetworkConfiguration::Bearer4G: never executed: case QNetworkConfiguration::Bearer4G: | 0 | ||||||||||||
162 | return never executed: QNetworkConfiguration::Bearer4G;return QNetworkConfiguration::Bearer4G; never executed: return QNetworkConfiguration::Bearer4G; | 0 | ||||||||||||
163 | default never executed: :default: never executed: default: | 0 | ||||||||||||
164 | QMessageLogger(__FILE__, 474, __PRETTY_FUNCTION__).warning() << "unknown bearer type" << type; | - | ||||||||||||
165 | return never executed: QNetworkConfiguration::BearerUnknown;return QNetworkConfiguration::BearerUnknown; never executed: return QNetworkConfiguration::BearerUnknown; | 0 | ||||||||||||
166 | } | - | ||||||||||||
167 | } | - | ||||||||||||
168 | QString QNetworkConfiguration::bearerTypeName() const | - | ||||||||||||
169 | { | - | ||||||||||||
170 | if (!isValid()
| 1-3 | ||||||||||||
171 | return executed 1 time by 1 test: QString();return QString(); Executed by:
executed 1 time by 1 test: return QString(); Executed by:
| 1 | ||||||||||||
172 | - | |||||||||||||
173 | QMutexLocker locker(&d->mutex); | - | ||||||||||||
174 | - | |||||||||||||
175 | if (d->type == QNetworkConfiguration::ServiceNetwork
| 0-3 | ||||||||||||
176 | d->type == QNetworkConfiguration::UserChoice
| 0-3 | ||||||||||||
177 | return never executed: QString();return QString(); never executed: return QString(); | 0 | ||||||||||||
178 | - | |||||||||||||
179 | switch (d->bearerType) { | - | ||||||||||||
180 | case executed 3 times by 1 test: BearerEthernet:case BearerEthernet: Executed by:
executed 3 times by 1 test: case BearerEthernet: Executed by:
| 3 | ||||||||||||
181 | return executed 3 times by 1 test: ([]() -> QString { enum { Size = sizeof(u"" "Ethernet")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Ethernet" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "Ethernet")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Ethernet" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); Executed by:
executed 3 times by 1 test: qstring_literal_temp;return qstring_literal_temp; Executed by:
executed 3 times by 1 test: }());return qstring_literal_temp; Executed by:
executed 3 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Ethernet")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Ethernet" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); Executed by:
| 3 | ||||||||||||
182 | case never executed: BearerWLAN:case BearerWLAN: never executed: case BearerWLAN: | 0 | ||||||||||||
183 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "WLAN")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "WLAN" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "WLAN")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "WLAN" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "WLAN")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "WLAN" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
184 | case never executed: Bearer2G:case Bearer2G: never executed: case Bearer2G: | 0 | ||||||||||||
185 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "2G")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "2G" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "2G")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "2G" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "2G")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "2G" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
186 | case never executed: Bearer3G:case Bearer3G: never executed: case Bearer3G: | 0 | ||||||||||||
187 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "3G")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "3G" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "3G")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "3G" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "3G")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "3G" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
188 | case never executed: Bearer4G:case Bearer4G: never executed: case Bearer4G: | 0 | ||||||||||||
189 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "4G")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "4G" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "4G")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "4G" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "4G")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "4G" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
190 | case never executed: BearerCDMA2000:case BearerCDMA2000: never executed: case BearerCDMA2000: | 0 | ||||||||||||
191 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "CDMA2000")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "CDMA2000" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "CDMA2000")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "CDMA2000" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "CDMA2000")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "CDMA2000" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
192 | case never executed: BearerWCDMA:case BearerWCDMA: never executed: case BearerWCDMA: | 0 | ||||||||||||
193 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "WCDMA")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "WCDMA" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "WCDMA")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "WCDMA" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "WCDMA")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "WCDMA" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
194 | case never executed: BearerHSPA:case BearerHSPA: never executed: case BearerHSPA: | 0 | ||||||||||||
195 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "HSPA")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "HSPA" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "HSPA")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "HSPA" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "HSPA")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "HSPA" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
196 | case never executed: BearerBluetooth:case BearerBluetooth: never executed: case BearerBluetooth: | 0 | ||||||||||||
197 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "Bluetooth")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Bluetooth" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "Bluetooth")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Bluetooth" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "Bluetooth")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Bluetooth" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
198 | case never executed: BearerWiMAX:case BearerWiMAX: never executed: case BearerWiMAX: | 0 | ||||||||||||
199 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "WiMAX")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "WiMAX" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "WiMAX")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "WiMAX" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "WiMAX")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "WiMAX" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
200 | case never executed: BearerEVDO:case BearerEVDO: never executed: case BearerEVDO: | 0 | ||||||||||||
201 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "EVDO")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "EVDO" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "EVDO")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "EVDO" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "EVDO")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "EVDO" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
202 | case never executed: BearerLTE:case BearerLTE: never executed: case BearerLTE: | 0 | ||||||||||||
203 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "LTE")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "LTE" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "LTE")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "LTE" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "LTE")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "LTE" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
204 | case never executed: BearerUnknown:case BearerUnknown: never executed: case BearerUnknown: | 0 | ||||||||||||
205 | break; never executed: break; | 0 | ||||||||||||
206 | } | - | ||||||||||||
207 | return never executed: ([]() -> QString { enum { Size = sizeof(u"" "Unknown")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Unknown" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnreturn ([]() -> QString { enum { Size = sizeof(u"" "Unknown")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Unknown" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); never executed: qstring_literal_temp;return qstring_literal_temp; never executed: }());return qstring_literal_temp; never executed: return ([]() -> QString { enum { Size = sizeof(u"" "Unknown")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Unknown" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()); | 0 | ||||||||||||
208 | } | - | ||||||||||||
209 | - | |||||||||||||
210 | - | |||||||||||||
Switch to Source code | Preprocessed file |