From 4e84adfe26fc8c5816169d6e3861b9119c9890a8 Mon Sep 17 00:00:00 2001 From: Bernhard Trinnes Date: Sun, 12 Nov 2017 21:21:51 +0100 Subject: [PATCH] cleaned up --- simulation/devicepluginsimulation.cpp | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/simulation/devicepluginsimulation.cpp b/simulation/devicepluginsimulation.cpp index 0fabca53..89c9b1d4 100644 --- a/simulation/devicepluginsimulation.cpp +++ b/simulation/devicepluginsimulation.cpp @@ -21,30 +21,18 @@ #include "devicepluginsimulation.h" #include "plugininfo.h" -// Note: You can find the tutorial for this code here -> http://dev.guh.guru/write-plugins.html -/* The constructor of this device plugin. */ DevicePluginSimulation::DevicePluginSimulation() { } -/* This method will be called from the devicemanager to get - * information about this plugin which device resource will be needed. - * - * For multiple resources use the OR operator: - * Example: - * - * return DeviceManager::HardwareResourceTimer | DeviceManager::HardwareResourceNetworkManager; - */ + DeviceManager::HardwareResources DevicePluginSimulation::requiredHardware() const { return DeviceManager::HardwareResourceTimer; } -/* This method will be called from the devicemanager while he - * is setting up a new device. Here the developer has the chance to - * perform the setup on the actual device and report the result. - */ + DeviceManager::DeviceSetupStatus DevicePluginSimulation::setupDevice(Device *device) { Q_UNUSED(device) @@ -53,9 +41,7 @@ DeviceManager::DeviceSetupStatus DevicePluginSimulation::setupDevice(Device *dev return DeviceManager::DeviceSetupStatusSuccess; } -/* This method will be called whenever a client or the RuleEngine want's to execute - * an action on the given device. - */ + DeviceManager::DeviceError DevicePluginSimulation::executeAction(Device *device, const Action &action) {