File indexing completed on 2024-06-23 05:49:22
0001 /* 0002 This file is part of the Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2007, 2011 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_DOCUMENTMANAGERTEST_HPP 0010 #define KASTEN_DOCUMENTMANAGERTEST_HPP 0011 0012 // Qt 0013 #include <QObject> 0014 0015 namespace Kasten { 0016 class AbstractDocument; 0017 } 0018 class QSignalSpy; 0019 0020 class DocumentManagerTest : public QObject 0021 { 0022 Q_OBJECT 0023 0024 private: 0025 void checkAdded(QSignalSpy* changedSpy, Kasten::AbstractDocument* document); 0026 void checkRemoving(QSignalSpy* changedSpy, Kasten::AbstractDocument* document); 0027 0028 private Q_SLOTS: // test functions 0029 void initTestCase(); 0030 0031 void testConstructor(); 0032 void testAddRemove(); 0033 void testCanClose(); 0034 0035 }; 0036 0037 #endif