Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | QBearerEngine::QBearerEngine(QObject *parent) | - |
7 | : QObject(parent), mutex(QMutex::Recursive) | - |
8 | { | - |
9 | } executed: } Execution Count:42 | 42 |
10 | | - |
11 | QBearerEngine::~QBearerEngine() | - |
12 | { | - |
13 | QHash<QString, QNetworkConfigurationPrivatePointer>::Iterator it; | - |
14 | QHash<QString, QNetworkConfigurationPrivatePointer>::Iterator end; | - |
15 | | - |
16 | for (it = snapConfigurations.begin(), end = snapConfigurations.end(); it != end; ++it) { partially evaluated: it != end no Evaluation Count:0 | yes Evaluation Count:42 |
| 0-42 |
17 | it.value()->isValid = false; | - |
18 | it.value()->id.clear(); | - |
19 | } | 0 |
20 | snapConfigurations.clear(); | - |
21 | | - |
22 | for (it = accessPointConfigurations.begin(), end = accessPointConfigurations.end(); | - |
23 | it != end; ++it) { evaluated: it != end yes Evaluation Count:56 | yes Evaluation Count:42 |
| 42-56 |
24 | it.value()->isValid = false; | - |
25 | it.value()->id.clear(); | - |
26 | } executed: } Execution Count:56 | 56 |
27 | accessPointConfigurations.clear(); | - |
28 | | - |
29 | for (it = userChoiceConfigurations.begin(), end = userChoiceConfigurations.end(); | - |
30 | it != end; ++it) { partially evaluated: it != end no Evaluation Count:0 | yes Evaluation Count:42 |
| 0-42 |
31 | it.value()->isValid = false; | - |
32 | it.value()->id.clear(); | - |
33 | } | 0 |
34 | userChoiceConfigurations.clear(); | - |
35 | } executed: } Execution Count:42 | 42 |
36 | | - |
37 | bool QBearerEngine::requiresPolling() const | - |
38 | { | - |
39 | return false; never executed: return false; | 0 |
40 | } | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | bool QBearerEngine::configurationsInUse() const | - |
49 | { | - |
50 | QHash<QString, QNetworkConfigurationPrivatePointer>::ConstIterator it; | - |
51 | QHash<QString, QNetworkConfigurationPrivatePointer>::ConstIterator end; | - |
52 | | - |
53 | QMutexLocker locker(&mutex); | - |
54 | | - |
55 | for (it = accessPointConfigurations.constBegin(), | - |
56 | end = accessPointConfigurations.constEnd(); it != end; ++it) { evaluated: it != end yes Evaluation Count:20 | yes Evaluation Count:4 |
| 4-20 |
57 | if (it.value()->ref.load() > 1) evaluated: it.value()->ref.load() > 1 yes Evaluation Count:4 | yes Evaluation Count:16 |
| 4-16 |
58 | return true; executed: return true; Execution Count:4 | 4 |
59 | } executed: } Execution Count:16 | 16 |
60 | | - |
61 | for (it = snapConfigurations.constBegin(), | - |
62 | end = snapConfigurations.constEnd(); it != end; ++it) { partially evaluated: it != end no Evaluation Count:0 | yes Evaluation Count:4 |
| 0-4 |
63 | if (it.value()->ref.load() > 1) never evaluated: it.value()->ref.load() > 1 | 0 |
64 | return true; never executed: return true; | 0 |
65 | } | 0 |
66 | | - |
67 | for (it = userChoiceConfigurations.constBegin(), | - |
68 | end = userChoiceConfigurations.constEnd(); it != end; ++it) { partially evaluated: it != end no Evaluation Count:0 | yes Evaluation Count:4 |
| 0-4 |
69 | if (it.value()->ref.load() > 1) never evaluated: it.value()->ref.load() > 1 | 0 |
70 | return true; never executed: return true; | 0 |
71 | } | 0 |
72 | | - |
73 | return false; executed: return false; Execution Count:4 | 4 |
74 | } | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
| | |