#ifndef ABSTRACTOVENINTERFACE_H #define ABSTRACTOVENINTERFACE_H #include #include "oven.h" class AbstractOvenInterface : public OvenInterface { Q_OBJECT int humidity; int temp; int interTemp; int fan; bool door_ = false; public: AbstractOvenInterface(); int currentTemp() { return 100; } int currentHumidity() { return 50; } int currentInterTemp() { return 50; } bool door() { return door_; } public slots: void setHumidity(int percentage) { qDebug() << "Set Humidity" << humidity << "to" << percentage; humidity = percentage; } void setTemp(int celsius) { qDebug() << "Set Temperature" << temp << "to" << celsius; temp = celsius; } void setInterTemp(int celsius) { qDebug() << "Set Internal Temperature" << interTemp << "to" << celsius; interTemp = celsius; } void setFan(int rpm) { qDebug() << "Set Fan RPM" << fan << "to" << rpm; fan = rpm; } void startCooking() { qDebug() << "Start Cooking"; } void stopCooking() { qDebug() << "Stop Cooking"; } void startPreheating() { qDebug() << "Start Preheating"; } void stopPreheating() { qDebug() << "Stop Preheating"; } void startCooldown() { qDebug() << "Start Cooldown"; } void stopCooldown() { qDebug() << "Stop Cooldown"; } void startHumidification() { qDebug() << "Start Humidification"; } void stopHumidification() { qDebug() << "Stop Humidification"; } void startWashing() { qDebug() << "Start Washing"; } void stopWashing() { qDebug() << "Stop Washing"; } void openDamper() { qDebug() << "Open Damper"; } void closeDamper() { qDebug() << "Close Damper"; } signals: void doorOpened(); void doorClosed(); }; #endif // ABSTRACTOVENINTERFACE_H