File indexing completed on 2024-05-12 05:52:48

0001 /*
0002  * SPDX-License-Identifier: GPL-3.0-or-later
0003  * SPDX-FileCopyrightText: 2020 Johan Ouwerkerk <jm.ouwerkerk@gmail.com>
0004  */
0005 #ifndef ACCOUNTS_TEST_UTIL_JOB_H
0006 #define ACCOUNTS_TEST_UTIL_JOB_H
0007 
0008 #include "account/actions_p.h"
0009 
0010 #include <QObject>
0011 
0012 namespace test
0013 {
0014     class TestJob: public accounts::AccountJob
0015     {
0016         Q_OBJECT
0017     Q_SIGNALS:
0018         void running(void);
0019     public Q_SLOTS:
0020         void finish(void);
0021         void run(void) override;
0022     };
0023 
0024     class JobSignals: public QObject
0025     {
0026         Q_OBJECT
0027     Q_SIGNALS:
0028         void first(void);
0029         void second(void);
0030         void quit(void);
0031     public:
0032         explicit JobSignals(QObject *parent = nullptr);
0033     };
0034 }
0035 
0036 #endif