Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtexturefilereader_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QTEXTUREFILEREADER_H
6#define QTEXTUREFILEREADER_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20#include <QString>
21#include <QFileInfo>
22
24
25class QIODevice;
27
28class Q_GUI_EXPORT QTextureFileReader
29{
30public:
31 QTextureFileReader(QIODevice *device, const QString &fileName = QString()); //### drop this logname thing?
32 ~QTextureFileReader();
33
34 bool canRead();
35 QTextureFileData read();
36
37 // TBD access function to params
38 // TBD ask for identified fmt
39
40 static QList<QByteArray> supportedFileFormats();
41
42private:
43 bool init();
44 QIODevice *m_device = nullptr;
45 QString m_fileName;
46 QTextureFileHandler *m_handler = nullptr;
47 bool checked = false;
48};
49
50QT_END_NAMESPACE
51
52
53#endif // QTEXTUREFILEREADER_H