// SPDX-FileCopyrightText: 2024 Yury Gubich // SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include #include #include #include #include #include #include #include "logger.h" class Jay : public gloox::MessageHandler { public: Jay(const std::string& jid, const std::string& password); ~Jay(); void handleMessage(const gloox::Message& message, gloox::MessageSession* session = 0) override; void run(); Logger* addLogger(gloox::LogLevel level); private: gloox::Client client; std::vector> loggers; };