aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/fsengine/fsenginehandler.h
blob: b387597bf8926e8a4eb3ee69d2b8598a7ff491a0 (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
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <QtCore/private/qabstractfileengine_p.h>

#include "../filepath.h"

namespace Utils::Internal {

class FSEngineHandler : public QAbstractFileEngineHandler
{
public:
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
    std::unique_ptr<QAbstractFileEngine> create(const QString &fileName) const override;
#else
    QAbstractFileEngine *create(const QString &fileName) const override;
#endif
};

void invalidateFileInfoCache(const Utils::FilePath &path);

} // Utils::Internal