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-05-12 11:00:00 +02:00
|
|
|
Utils::IntegerAspect timeout;
|
|
|
|
|
Utils::BoolAspect omitInternalMsg;
|
|
|
|
|
Utils::BoolAspect omitRunConfigWarn;
|
|
|
|
|
Utils::BoolAspect limitResultOutput;
|
|
|
|
|
Utils::BoolAspect limitResultDescription;
|
|
|
|
|
Utils::IntegerAspect resultDescriptionMaxSize;
|
|
|
|
|
Utils::BoolAspect autoScroll;
|
|
|
|
|
Utils::BoolAspect processArgs;
|
|
|
|
|
Utils::BoolAspect displayApplication;
|
|
|
|
|
Utils::BoolAspect popupOnStart;
|
|
|
|
|
Utils::BoolAspect popupOnFinish;
|
|
|
|
|
Utils::BoolAspect popupOnFail;
|
|
|
|
|
Utils::SelectionAspect runAfterBuild;
|
|
|
|
|
|
|
|
|
|
RunAfterBuildMode runAfterBuildMode() const;
|
2014-12-04 14:05:19 +01:00
|
|
|
};
|
|
|
|
|
|
2023-05-12 11:00:00 +02:00
|
|
|
} // Autotest::Internal
|