2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2022 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
|
2022-02-24 17:48:48 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "utils_global.h"
|
|
|
|
|
|
2023-03-10 16:29:41 +01:00
|
|
|
#include "filepath.h"
|
|
|
|
|
|
2022-02-24 17:48:48 +01:00
|
|
|
#include <QList>
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
|
|
namespace Utils {
|
|
|
|
|
|
|
|
|
|
class QTCREATOR_UTILS_EXPORT ProcessInfo
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
qint64 processId = 0;
|
|
|
|
|
QString executable;
|
|
|
|
|
QString commandLine;
|
|
|
|
|
|
|
|
|
|
bool operator<(const ProcessInfo &other) const;
|
|
|
|
|
|
2023-03-10 16:29:41 +01:00
|
|
|
static QList<ProcessInfo> processInfoList(const Utils::FilePath &deviceRoot = Utils::FilePath());
|
2022-02-24 17:48:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Utils
|