补上之前缺失的

This commit is contained in:
Lenn
2026-02-02 22:18:38 +08:00
parent 01b988fcd7
commit ca3545b8b0
7 changed files with 80 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
#ifndef TACTILEIPC3D_PIEZORESISTIVE_A_PLUGIN_H
#define TACTILEIPC3D_PIEZORESISTIVE_A_PLUGIN_H
#include <QObject>
#include "serial/protocol_plugin.h"
#include "serial/piezoresistive_a_protocol.h"
class PiezoresistiveAPlugin final : public QObject, public IProtocolPlugin {
Q_OBJECT
Q_PLUGIN_METADATA(IID PROTOCOL_PLUGIN_IID)
Q_INTERFACES(IProtocolPlugin)
public:
QString protocolName() const override { return QStringLiteral("piezoresistive_a"); }
int apiVersion() const override { return kProtocolPluginApiVersion; }
ProtocolBundle createBundle() override;
};
#endif // TACTILEIPC3D_PIEZORESISTIVE_A_PLUGIN_H