Patronum/Tests/defaultservice.h

22 lines
459 B
C
Raw Normal View History

2020-05-06 23:23:46 +03:00
#ifndef DEFAULTSERVICE_H
#define DEFAULTSERVICE_H
#include <patronum.h>
#include <QCoreApplication>
2020-05-06 23:23:46 +03:00
class DefaultService : public Patronum::Service<QCoreApplication>
{
public:
DefaultService();
// QtServiceBase interface
protected:
2021-10-13 20:41:09 +03:00
bool onStart() override;
2020-05-06 23:23:46 +03:00
// IService interface
public:
2021-03-26 17:20:17 +03:00
bool handleReceive(const Patronum::Feature &data) override;
QSet<Patronum::Feature> supportedFeatures() override;
2020-05-06 23:23:46 +03:00
};
#endif // DEFAULTSERVICE_H