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
|
2017-01-19 16:44:22 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "utils_global.h"
|
|
|
|
|
|
|
|
|
|
#include <QTemporaryDir>
|
|
|
|
|
|
|
|
|
|
namespace Utils {
|
|
|
|
|
|
2021-07-01 09:58:48 +02:00
|
|
|
class FilePath;
|
|
|
|
|
|
2017-01-19 16:44:22 +01:00
|
|
|
class QTCREATOR_UTILS_EXPORT TemporaryDirectory : public QTemporaryDir
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit TemporaryDirectory(const QString &pattern);
|
|
|
|
|
|
|
|
|
|
static QTemporaryDir *masterTemporaryDirectory();
|
|
|
|
|
static void setMasterTemporaryDirectory(const QString &pattern);
|
|
|
|
|
static QString masterDirectoryPath();
|
2022-01-18 17:40:19 +01:00
|
|
|
static FilePath masterDirectoryFilePath();
|
2021-07-01 09:58:48 +02:00
|
|
|
|
|
|
|
|
FilePath path() const;
|
|
|
|
|
FilePath filePath(const QString &fileName) const;
|
2017-01-19 16:44:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Utils
|