#ifndef ECHOSERVICE_H #define ECHOSERVICE_H #include class EchoService : public QObject { Q_OBJECT public: explicit EchoService(QObject *parent = nullptr); public Q_SLOTS: void ping(const QString &message); Q_SIGNALS: void pong(const QString &message); }; #endif // ECHOSERVICE_H