Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qtexturefilehandler_p.h
Go to the documentation of this file.
1
// Copyright (C) 2017 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 QTEXTUREFILEHANDLER_P_H
5
#define QTEXTUREFILEHANDLER_P_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
20
QT_BEGIN_NAMESPACE
21
22
class
QTextureFileHandler
23
{
24
public
:
25
QTextureFileHandler
(
QIODevice
*
device
,
const
QByteArray
&
logName
=
QByteArray
())
26
: m_device(
device
)
27
{
28
m_logName = !
logName
.
isEmpty
() ?
logName
:
QByteArrayLiteral
(
"(unknown)"
);
29
}
30
virtual
~QTextureFileHandler
();
31
32
virtual
QTextureFileData
read
() = 0;
33
QIODevice
*
device
()
const
{
return
m_device; }
34
QByteArray
logName
()
const
{
return
m_logName; }
35
36
private
:
37
QIODevice
*m_device =
nullptr
;
38
QByteArray
m_logName;
39
};
40
41
QT_END_NAMESPACE
42
43
#endif
// QTEXTUREFILEHANDLER_P_H
QByteArray
\inmodule QtCore
Definition
qbytearray.h:57
QByteArray::isEmpty
bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
Definition
qbytearray.h:106
QIODevice
\inmodule QtCore \reentrant
Definition
qiodevice.h:34
QTextureFileData
Definition
qtexturefiledata_p.h:31
QTextureFileHandler
Definition
qtexturefilehandler_p.h:23
QTextureFileHandler::device
QIODevice * device() const
Definition
qtexturefilehandler_p.h:33
QTextureFileHandler::QTextureFileHandler
QTextureFileHandler(QIODevice *device, const QByteArray &logName=QByteArray())
Definition
qtexturefilehandler_p.h:25
QTextureFileHandler::~QTextureFileHandler
virtual ~QTextureFileHandler()
QTextureFileHandler::logName
QByteArray logName() const
Definition
qtexturefilehandler_p.h:34
QTextureFileHandler::read
virtual QTextureFileData read()=0
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
QByteArrayLiteral
#define QByteArrayLiteral(str)
Definition
qbytearray.h:52
qtexturefiledata_p.h
qtbase
src
gui
util
qtexturefilehandler_p.h
Generated by
1.9.7