X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7b66bdcccfa4aad5a8e4110bf4769bc13c15dcfd..8f46a826a07310dbd76e4b3a15f63ae055272542:/include/stg/services.h diff --git a/include/stg/services.h b/include/stg/services.h index 5ff7a1a8..87ed1f2d 100644 --- a/include/stg/services.h +++ b/include/stg/services.h @@ -15,24 +15,26 @@ */ /* - * Author : Maxim Mamontov + * Author : Maksym Mamontov */ #ifndef SERVICES_H #define SERVICES_H -#include - #include "service_conf.h" +#include + class ADMIN; class SERVICES { public: + virtual ~SERVICES() {} virtual int Add(const SERVICE_CONF & service, const ADMIN * admin) = 0; virtual int Del(const std::string & name, const ADMIN * admin) = 0; virtual int Change(const SERVICE_CONF & service, const ADMIN * admin) = 0; - virtual bool Find(const std::string & name, SERVICE_CONF * service) = 0; + virtual bool Find(const std::string & name, SERVICE_CONF * service) const = 0; + virtual bool Find(const std::string & name, SERVICE_CONF_RES * service) const = 0; virtual bool Exists(const std::string & name) const = 0; virtual const std::string & GetStrError() const = 0; virtual size_t Count() const = 0;