File indexing completed on 2024-04-28 15:29:23

0001 /*
0002     This file is part of the KDE project
0003     SPDX-FileCopyrightText: 1999 Simon Hausmann <hausmann@kde.org>
0004     SPDX-FileCopyrightText: 1999-2005 David Faure <faure@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #ifndef _KPARTS_READWRITEPART_P_H
0010 #define _KPARTS_READWRITEPART_P_H
0011 
0012 #include "readonlypart_p.h"
0013 #include "readwritepart.h"
0014 
0015 #include <QEventLoop>
0016 
0017 namespace KParts
0018 {
0019 class ReadWritePartPrivate : public ReadOnlyPartPrivate
0020 {
0021 public:
0022     Q_DECLARE_PUBLIC(ReadWritePart)
0023 
0024     explicit ReadWritePartPrivate(ReadWritePart *qq)
0025         : ReadOnlyPartPrivate(qq)
0026     {
0027         m_bModified = false;
0028         m_bReadWrite = true;
0029         m_bClosing = false;
0030     }
0031 
0032     void slotUploadFinished(KJob *job);
0033 
0034     void prepareSaving();
0035 
0036     bool m_bModified;
0037     bool m_bReadWrite;
0038     bool m_bClosing;
0039     QEventLoop m_eventLoop;
0040 };
0041 
0042 } // namespace
0043 
0044 #endif