| 1 |
/* This file is part of the KDE project |
| 2 |
SPDX-FileCopyrightText: 2011 Dag Andersen <[email protected]> |
| 3 |
|
| 4 |
SPDX-License-Identifier: LGPL-2.0-or-later |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef KPlato_SchedulerTester_h |
| 8 |
#define KPlato_SchedulerTester_h |
| 9 |
|
| 10 |
#include <QObject> |
| 11 |
|
| 12 |
class KoXmlDocument; |
| 13 |
|
| 14 |
namespace KPlato |
| 15 |
{ |
| 16 |
class Node; |
| 17 |
|
| 18 |
class SchedulerTester : public QObject |
| 19 |
{ |
| 20 |
Q_OBJECT |
| 21 |
private Q_SLOTS: |
| 22 |
void testSingle(); |
| 23 |
|
| 24 |
private: |
| 25 |
QStringList data(); |
| 26 |
void loadDocument(const QString &dir, const QString &fname, KoXmlDocument &doc) const; |
| 27 |
void testProject(const QString &fname, const KoXmlDocument &doc); |
| 28 |
void compare(const QString &fname, Node *n, long id1, long id2); |
| 29 |
void loadDocuments(QString &dir, QList<QString> files, QList<KoXmlDocument> &docs) const; |
| 30 |
}; |
| 31 |
|
| 32 |
} //namespace KPlato |
| 33 |
|
| 34 |
#endif |