1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef FILEUTILS_H
6#define FILEUTILS_H
7
8#include <QString>
9#include <QFileInfo>
10
11namespace Utils {
12class FileName : private QString
13{
14public:
15 FileName();
16
17 explicit FileName(const QFileInfo &info);
18
19 static FileName fromUserInput(const QString &filename);
20
21 const QString &toString() const;
22
23 bool exists() const;
24
25private:
26 explicit FileName(const QString &string);
27};
28}
29
30#endif // FILEUTILS_H
31