| Line |
Branch |
Decision |
Call |
Exec |
Source |
| 1 |
|
|
|
|
#include "ExtensionsSettings.h" |
| 2 |
|
|
|
|
|
| 3 |
|
|
|
|
#include "Logging.h" |
| 4 |
|
|
|
|
#define LOGGER_NAME "Extensions Settings" |
| 5 |
|
|
|
|
|
| 6 |
|
|
|
|
using namespace CLO3D; |
| 7 |
|
|
|
|
|
| 8 |
|
|
0/5
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
|
✗ |
ExtensionsSettings::ExtensionsSettings(QSettings* settings): settings_(settings) {} |
| 9 |
|
|
|
|
|
| 10 |
|
|
0/2
✗ Call 0 not invoked.
✗ Call 1 not invoked.
|
✗ |
ExtensionsSettings::~ExtensionsSettings() { |
| 11 |
|
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
|
0/13
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
✗ Call 8 not invoked.
✗ Call 9 not invoked.
✗ Call 10 not invoked.
✗ Call 11 not invoked.
✗ Call 12 not invoked.
|
✗ |
for (const auto settings: extensionsSettings_) { |
| 12 |
|
|
0/7
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
✗ Call 8 not invoked.
|
✗ |
delete settings; |
| 13 |
|
|
|
|
} |
| 14 |
|
|
0/8
✗ Call 0 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
✗ Call 8 not invoked.
✗ Call 9 not invoked.
|
✗ |
delete settings_; |
| 15 |
|
|
0/2
✗ Call 0 not invoked.
✗ Call 1 not invoked.
|
✗ |
} |
| 16 |
|
|
|
|
|
| 17 |
|
|
|
✗ |
void ExtensionsSettings::addSettings(BaseExtensionSettings* settings) { |
| 18 |
|
|
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
|
✗ |
extensionsSettings_.push_front(settings); |
| 19 |
|
|
0/5
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
|
✗ |
settings->setSettings(settings_); |
| 20 |
|
|
|
✗ |
} |
| 21 |
|
|
|
|
|
| 22 |
|
|
|
✗ |
void ExtensionsSettings::read() const { |
| 23 |
|
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
|
0/15
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
✗ Call 8 not invoked.
✗ Call 9 not invoked.
✗ Call 10 not invoked.
✗ Call 11 not invoked.
✗ Call 12 not invoked.
✗ Call 13 not invoked.
✗ Call 14 not invoked.
|
✗ |
for (const auto settings: extensionsSettings_) { |
| 24 |
|
|
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
|
✗ |
settings->readSettings(); |
| 25 |
|
|
|
|
} |
| 26 |
|
|
|
✗ |
} |
| 27 |
|
|
|
|
|
| 28 |
|
|
|
✗ |
void ExtensionsSettings::clear() const { |
| 29 |
|
|
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
|
✗ |
LOG_INFO("Resetting settings"); |
| 30 |
|
|
0/8
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
|
✗ |
settings_->clear(); |
| 31 |
|
|
0/2
✗ Call 0 not invoked.
✗ Call 1 not invoked.
|
✗ |
read(); |
| 32 |
|
|
|
✗ |
} |
| 33 |
|
|
|
|
|