2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2014-12-04 14:05:19 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2014-12-04 14:05:19 +01:00
|
|
|
|
2023-05-12 11:00:00 +02:00
|
|
|
#include <utils/aspects.h>
|
2016-06-06 15:35:00 +02:00
|
|
|
|
2023-05-12 11:00:00 +02:00
|
|
|
namespace Autotest::Internal {
|
2014-12-04 14:05:19 +01:00
|
|
|
|
2019-09-13 10:50:32 +02:00
|
|
|
enum class RunAfterBuildMode
|
|
|
|
|
{
|
|
|
|
|
None,
|
|
|
|
|
All,
|
|
|
|
|
Selected
|
|
|
|
|
};
|
|
|
|
|
|
2023-05-12 11:00:00 +02:00
|
|
|
class NonAspectSettings
|
2014-12-04 14:05:19 +01:00
|
|
|
{
|
2023-05-12 11:00:00 +02:00
|
|
|
public:
|
|
|
|
|
QHash<Utils::Id, bool> frameworks;
|
|
|
|
|
QHash<Utils::Id, bool> frameworksGrouping;
|
|
|
|
|
QHash<Utils::Id, bool> tools;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class TestSettings : public Utils::AspectContainer, public NonAspectSettings
|
|
|
|
|
{
|
|
|
|
|
public:
|
2014-12-04 14:05:19 +01:00
|
|
|
TestSettings();
|
2023-05-12 11:00:00 +02:00
|
|
|
|
|
|
|
|
static TestSettings *instance();
|
|
|
|
|
|
2014-12-04 14:05:19 +01:00
|
|
|
void toSettings(QSettings *s) const;
|
2016-09-13 09:30:59 +02:00
|
|
|
void fromSettings(QSettings *s);
|
2014-12-04 14:05:19 +01:00
|
|
|
|
2023-06-30 10:53:08 +02:00
|
|
|
Utils::IntegerAspect scanThreadLimit{this};
|
2023-05-26 09:25:44 +02:00
|
|
|
Utils::IntegerAspect timeout{this};
|
|
|
|
|
Utils::BoolAspect omitInternalMsg{this};
|
|
|
|
|
Utils::BoolAspect omitRunConfigWarn{this};
|
|
|
|
|
Utils::BoolAspect limitResultOutput{this};
|
|
|
|
|
Utils::BoolAspect limitResultDescription{this};
|
|
|
|
|
Utils::IntegerAspect resultDescriptionMaxSize{this};
|
|
|
|
|
Utils::BoolAspect autoScroll{this};
|
|
|
|
|
Utils::BoolAspect processArgs{this};
|
|
|
|
|
Utils::BoolAspect displayApplication{this};
|
|
|
|
|
Utils::BoolAspect popupOnStart{this};
|
|
|
|
|
Utils::BoolAspect popupOnFinish{this};
|
|
|
|
|
Utils::BoolAspect popupOnFail{this};
|
|
|
|
|
Utils::SelectionAspect runAfterBuild{this};
|
2023-05-12 11:00:00 +02:00
|
|
|
|
|
|
|
|
RunAfterBuildMode runAfterBuildMode() const;
|
2014-12-04 14:05:19 +01:00
|
|
|
};
|
|
|
|
|
|
2023-05-12 11:00:00 +02:00
|
|
|
} // Autotest::Internal
|