File indexing completed on 2024-05-12 05:17:25

0001 /*
0002     Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
0003     Author: Kevin Ottens <kevin@kdab.com>
0004 
0005     This library is free software; you can redistribute it and/or modify it
0006     under the terms of the GNU Library General Public License as published by
0007     the Free Software Foundation; either version 2 of the License, or (at your
0008     option) any later version.
0009 
0010     This library is distributed in the hope that it will be useful, but WITHOUT
0011     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0012     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
0013     License for more details.
0014 
0015     You should have received a copy of the GNU Library General Public License
0016     along with this library; see the file COPYING.LIB.  If not, write to the
0017     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
0018     02110-1301, USA.
0019 */
0020 
0021 #ifndef KIMAP2_SESSIONLOGGER_P_H
0022 #define KIMAP2_SESSIONLOGGER_P_H
0023 
0024 #include <QtCore/QObject>
0025 #include <QtCore/QFile>
0026 
0027 namespace KIMAP2
0028 {
0029 
0030 class SessionLoggerPrivate;
0031 
0032 class SessionLogger
0033 {
0034 public:
0035     SessionLogger();
0036     ~SessionLogger();
0037 
0038     void dataSent(const QByteArray &data);
0039     void dataReceived(const QByteArray &data);
0040     void disconnectionOccured();
0041 
0042 private:
0043     Q_DISABLE_COPY(SessionLogger)
0044     qint64 m_id;
0045     QFile m_file;
0046 };
0047 
0048 }
0049 
0050 #endif