X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/00cffd5f7c35a915c09d55e6292775e9e01bdeec..2f5c973fdf3f7fb25b13996b66d566c58066f6a0:/Server/include/plaqui/server/controlserver.h?ds=sidebyside diff --git a/Server/include/plaqui/server/controlserver.h b/Server/include/plaqui/server/controlserver.h index f269e4b..5b6eb23 100644 --- a/Server/include/plaqui/server/controlserver.h +++ b/Server/include/plaqui/server/controlserver.h @@ -28,7 +28,8 @@ #ifndef PLAQUI_CONTROLSERVER_H #define PLAQUI_CONTROLSERVER_H -#include "plaqui/server/serverconnection.h" +#include "plaqui/server/connection.h" +#include "plaqui/server/command.h" #include namespace PlaQui { @@ -36,7 +37,24 @@ namespace PlaQui { namespace Server { /// Conexión para recibir comandos de control para una planta. - class ControlServer: public ServerConnection { + class ControlServer: public Connection { + + // Tipos. + + public: + + /// Tipo de señal para indicar que se recibió un comando. + typedef SigC::Signal1 SignalCommandReceived; + + // Atributos. + + private: + + /// Señal para indicar que se recibió un comando. + SignalCommandReceived command_received; + + + // Métodos. protected: @@ -59,6 +77,11 @@ namespace Server { */ ControlServer(const sockbuf::sockdesc& sd); + /** + * Obtiene la señal que avisa cuando se recibió un comando. + */ + SignalCommandReceived& signal_command_received(void); + }; }