Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QTEXTUREFILEREADER_H
5#define QTEXTUREFILEREADER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qtexturefiledata_p.h"
19#include <QString>
20#include <QFileInfo>
21
23
24class QIODevice;
26
27class Q_GUI_EXPORT QTextureFileReader
28{
29public:
30 QTextureFileReader(QIODevice *device, const QString &fileName = QString()); //### drop this logname thing?
32
33 bool canRead();
35
36 // TBD access function to params
37 // TBD ask for identified fmt
38
39 static QList<QByteArray> supportedFileFormats();
40
41private:
42 bool init();
43 QIODevice *m_device = nullptr;
44 QString m_fileName;
45 QTextureFileHandler *m_handler = nullptr;
46 bool checked = false;
47};
48
50
51
52#endif // QTEXTUREFILEREADER_H
IOBluetoothDevice * device
\inmodule QtCore \reentrant
Definition qiodevice.h:34
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
ReturnedValue read(const char *data)