summaryrefslogtreecommitdiffstats
path: root/src/systemui-lib/debugwrapper.h
blob: 7acab4eafdb83b05df76c7a202294afd5a4b868c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (C) 2021 The Qt Company Ltd.
// Copyright (C) 2019 Luxoft Sweden AB
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef DEBUGWRAPPER_H
#define DEBUGWRAPPER_H

#include <QtAppManSystemUI/qtappmansystemuiglobal.h>

#include <QtCore/QStringList>
#include <QtCore/QMap>

QT_BEGIN_NAMESPACE_AM

namespace DebugWrapper {

Q_APPMANSYSTEMUI_EXPORT bool parseSpecification(const QString &debugWrapperSpecification,
                                               QStringList &resultingCommand,
                                               QMap<QString, QString> &resultingEnvironment);

Q_APPMANSYSTEMUI_EXPORT QStringList substituteCommand(const QStringList &debugWrapperCommand,
                                                     const QString &program,
                                                     const QStringList &arguments);

}

QT_END_NAMESPACE_AM

#endif // DEBUGWRAPPER_H