mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
24 lines
431 B
C++
24 lines
431 B
C++
#ifndef QQTSUBPROTOCOLTEST_H
|
|
#define QQTSUBPROTOCOLTEST_H
|
|
|
|
#include <qqtprotocol.h>
|
|
|
|
class QQtSubProtocolTest : public QQtProtocol
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QQtSubProtocolTest(QObject* parent = 0);
|
|
// QQtProtocol interface
|
|
public:
|
|
virtual quint16 minlength() override
|
|
{
|
|
return 16;
|
|
}
|
|
virtual quint16 splitter(const QByteArray&) override
|
|
{
|
|
return 14;
|
|
}
|
|
};
|
|
|
|
#endif // QQTSUBPROTOCOLTEST_H
|