File indexing completed on 2024-07-21 12:42:30

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "abstractlogger.h"
0009 
0010 #include <QFile>
0011 
0012 class RuqolaLogger : public RocketChatRestApi::AbstractLogger
0013 {
0014 public:
0015     explicit RuqolaLogger(const QString &accountName = QString());
0016     ~RuqolaLogger() override;
0017     void dataSent(const QByteArray &data) override;
0018     void dataSent(DataType type, const QByteArray &label, const QByteArray &data) override;
0019     void dataReceived(const QByteArray &data) override;
0020 
0021 private:
0022     Q_DISABLE_COPY(RuqolaLogger)
0023     QFile mLoggerFile;
0024     QFile mRestApiLogFile;
0025     quint64 mIdentifier = 0;
0026 };