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
qpacket_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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
4
5#ifndef QPACKET_H
6#define QPACKET_H
7
8#include <QtCore/qdatastream.h>
9#include <QtCore/qbuffer.h>
10
11//
12// W A R N I N G
13// -------------
14//
15// This file is not part of the Qt API. It exists purely as an
16// implementation detail. This header file may change from version to
17// version without notice, or even be removed.
18//
19// We mean it.
20//
21
22QT_BEGIN_NAMESPACE
23
24class QPacket : public QDataStream
25{
26public:
27 QPacket(int version);
28 explicit QPacket(int version, const QByteArray &ba);
29 const QByteArray &data() const;
30 QByteArray squeezedData() const;
31 void clear();
32
33private:
34 void init(QIODevice::OpenMode mode);
35 QBuffer buf;
36};
37
39
40#endif // QPACKET_H
Combined button and popup list for selecting options.