blob: 20aa6d5ae8dca13390c17d99a71c594c4e68daed (
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
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "projectstorageids.h"
#include <utils/smallstringview.h>
namespace QmlDesigner {
class FileStatus;
class FileSystemInterface
{
public:
virtual SourceIds directoryEntries(const QString &directoryPath) const = 0;
virtual long long lastModified(SourceId sourceId) const = 0;
virtual FileStatus fileStatus(SourceId sourceId) const = 0;
virtual void remove(const SourceIds &sourceIds) = 0;
virtual QString contentAsQString(const QString &filePath) const = 0;
protected:
~FileSystemInterface() = default;
};
} // namespace QmlDesigner
|