modbus rtu 1.1 plugins
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
|
||||
#include <QHash>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
|
||||
#include "core/plugin_system/IProtocolFramerPlugin.h"
|
||||
#include "core/plugin_system/IProtocolMapperPlugin.h"
|
||||
#include "core/plugin_system/IProtocolPlugin.h"
|
||||
|
||||
namespace softbus::core::plugin_system
|
||||
@@ -22,10 +24,17 @@ public:
|
||||
void registerProtocolFramerPlugin(std::shared_ptr<IProtocolFramerPlugin> plugin);
|
||||
std::shared_ptr<IProtocolFramerPlugin> selectProtocolFramerPlugin(const QString& protocolHint) const;
|
||||
void unregisterProtocolFramerPlugin(const QString& pluginId);
|
||||
void registerProtocolMapperPlugin(std::shared_ptr<IProtocolMapperPlugin> plugin);
|
||||
std::shared_ptr<IProtocolMapperPlugin> selectProtocolMapperPlugin(const QString& protocolHint) const;
|
||||
void unregisterProtocolMapperPlugin(const QString& pluginId);
|
||||
QStringList registeredProtocolPluginIds() const;
|
||||
QStringList registeredProtocolFramerPluginIds() const;
|
||||
QStringList registeredProtocolMapperPluginIds() const;
|
||||
|
||||
private:
|
||||
QHash<QString, std::shared_ptr<IProtocolPlugin>> m_protocolPlugins;
|
||||
QHash<QString, std::shared_ptr<IProtocolFramerPlugin>> m_protocolFramerPlugins;
|
||||
QHash<QString, std::shared_ptr<IProtocolMapperPlugin>> m_protocolMapperPlugins;
|
||||
};
|
||||
|
||||
} // namespace softbus::core::plugin_system
|
||||
|
||||
Reference in New Issue
Block a user