1 | /* |
2 | This file is part of the KDE project |
3 | SPDX-FileCopyrightText: 1999 Simon Hausmann <hausmann@kde.org> |
4 | SPDX-FileCopyrightText: 1999-2005 David Faure <faure@kde.org> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.0-or-later |
7 | */ |
8 | |
9 | #ifndef _KPARTS_READWRITEPART_P_H |
10 | #define _KPARTS_READWRITEPART_P_H |
11 | |
12 | #include "readonlypart_p.h" |
13 | #include "readwritepart.h" |
14 | |
15 | #include <QEventLoop> |
16 | |
17 | namespace KParts |
18 | { |
19 | class ReadWritePartPrivate : public ReadOnlyPartPrivate |
20 | { |
21 | public: |
22 | Q_DECLARE_PUBLIC(ReadWritePart) |
23 | |
24 | explicit ReadWritePartPrivate(ReadWritePart *qq, const KPluginMetaData &data) |
25 | : ReadOnlyPartPrivate(qq, data) |
26 | { |
27 | m_bModified = false; |
28 | m_bReadWrite = true; |
29 | m_bClosing = false; |
30 | } |
31 | |
32 | void slotUploadFinished(KJob *job); |
33 | |
34 | void prepareSaving(); |
35 | |
36 | bool m_bModified; |
37 | bool m_bReadWrite; |
38 | bool m_bClosing; |
39 | QEventLoop m_eventLoop; |
40 | }; |
41 | |
42 | } // namespace |
43 | |
44 | #endif |
45 | |