diff --git a/CLC-qthing/SiliconTorch/Service/CyanStripe.cpp b/CLC-qthing/SiliconTorch/Service/CyanStripe.cpp index 05077d0fc7ca3a5b997ce53f03536cac5a8a8296..c499c0e74caea201482df7d3b8bb93c93cbaea6a 100644 --- a/CLC-qthing/SiliconTorch/Service/CyanStripe.cpp +++ b/CLC-qthing/SiliconTorch/Service/CyanStripe.cpp @@ -57,10 +57,6 @@ namespace SiliconTorch { ESP_LOGW(getName().c_str(), "Starting service[ %s ] with order[ %d ] *WHOOP* *WHOOP*", getName().c_str(), getStartOrder()); } - void CyanStripe::stop() { - ESP_LOGW(getName().c_str(), "Stopping service[ %s ] *sad service noises*", getName().c_str()); - } - } diff --git a/CLC-qthing/SiliconTorch/Service/CyanStripe.hpp b/CLC-qthing/SiliconTorch/Service/CyanStripe.hpp index b2969acbc3bfc1729a7aa8bb697afba42165f020..9dc3065a62f17a02ec14d4c079896cec5f6b2371 100644 --- a/CLC-qthing/SiliconTorch/Service/CyanStripe.hpp +++ b/CLC-qthing/SiliconTorch/Service/CyanStripe.hpp @@ -28,8 +28,6 @@ namespace SiliconTorch { void init(); void start(); - void stop(); - diff --git a/CLC-qthing/SiliconTorch/Service/FxCyanF.hpp b/CLC-qthing/SiliconTorch/Service/FxCyanF.hpp index 7e08eda3d5b5e88646d1a12fb19e274e73bb0ff5..7e6ede720f6af33a39b5b06e4e8e570fa447fbc9 100644 --- a/CLC-qthing/SiliconTorch/Service/FxCyanF.hpp +++ b/CLC-qthing/SiliconTorch/Service/FxCyanF.hpp @@ -28,8 +28,6 @@ namespace SiliconTorch { void init(); void start(); - void stop(); - diff --git a/CLC-qthing/SiliconTorch/Service/FxPublish.cpp b/CLC-qthing/SiliconTorch/Service/FxPublish.cpp index 1cb11070e18e93ece05df228839e1d72501b7400..69abef7ee5437465f24642894967b7eaa8fc1aa2 100644 --- a/CLC-qthing/SiliconTorch/Service/FxPublish.cpp +++ b/CLC-qthing/SiliconTorch/Service/FxPublish.cpp @@ -44,10 +44,6 @@ namespace SiliconTorch { ESP_LOGW(getName().c_str(), "Starting service[ %s ] with order[ %d ] *WHOOP* *WHOOP*", getName().c_str(), getStartOrder()); } - void FxPublish::stop() { - ESP_LOGW(getName().c_str(), "Stopping service[ %s ] *sad service noises*", getName().c_str()); - } - } diff --git a/CLC-qthing/SiliconTorch/Service/FxPublish.hpp b/CLC-qthing/SiliconTorch/Service/FxPublish.hpp index d89286ca2d53ed41d928f1f28096474c34d92468..4493665a242591f539338a1131a208641cfaa1d3 100644 --- a/CLC-qthing/SiliconTorch/Service/FxPublish.hpp +++ b/CLC-qthing/SiliconTorch/Service/FxPublish.hpp @@ -28,8 +28,6 @@ namespace SiliconTorch { void init(); void start(); - void stop(); - diff --git a/CLC-qthing/SiliconTorch/Service/Service.hpp b/CLC-qthing/SiliconTorch/Service/Service.hpp index c134212f4b8f821a3fa294bdd954db6f8b5f41d8..0f7de7ddd07e1b9cd0447a34e63632d325f5151d 100644 --- a/CLC-qthing/SiliconTorch/Service/Service.hpp +++ b/CLC-qthing/SiliconTorch/Service/Service.hpp @@ -33,30 +33,26 @@ namespace SiliconTorch { Service(); - virtual void init() = 0; - // internal stuff, only to be called by ServiceManager! - void postInit(); + // â•” To be implemented by user! â•— + + virtual void init() = 0; + virtual void start() = 0; + // â•šâ•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• - // To be implemented by user! - virtual void start() = 0; - virtual void stop() = 0; const str& getName() const; const str& getNameSpace() const; - // virtual str name() = 0; - // virtual str nameSpace() = 0; - u16 getStartOrder() const; - // enabled services will be started in this order. higher = later - // virtual u16 startOrder(); // defaults to 1337 - bool isEnabled() const; void setEnabled(bool enabled); + // internal stuff, only to be called by ServiceManager! + void postInit(); + protected: void setName(const str& name); @@ -73,7 +69,6 @@ namespace SiliconTorch { u16 startOrder = 1337; - };