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
qversionedpacket_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 QVERSIONEDPACKET_P_H
6#define QVERSIONEDPACKET_P_H
7
8#include "qpacket_p.h"
9
10//
11// W A R N I N G
12// -------------
13//
14// This file is not part of the Qt API. It exists purely as an
15// implementation detail. This header file may change from version to
16// version without notice, or even be removed.
17//
18// We mean it.
19//
20
22
23// QPacket with a fixed data stream version, centrally set by some Connector
24template<class Connector>
25class QVersionedPacket : public QPacket
26{
27public:
28 QVersionedPacket(const QByteArray &ba) : QPacket(Connector::dataStreamVersion(), ba) {}
29 QVersionedPacket() : QPacket(Connector::dataStreamVersion()) {}
30};
31
32QT_END_NAMESPACE
33
34#endif // QVERSIONEDPACKET_P_H
Combined button and popup list for selecting options.