#ifndef PLUGIN_INTERFACE_H
|
#define PLUGIN_INTERFACE_H
|
|
#include "Command.h"
|
#include <nlohmann/json.hpp>
|
|
class IPlugin {
|
public:
|
virtual ~IPlugin() = default;
|
virtual void handleMessage(const Command& cmd) = 0;
|
virtual void updateConfig(const nlohmann::json& config) = 0;
|
virtual const std::string getPluginName() = 0;
|
};
|
|
#endif // PLUGIN_INTERFACE_H
|