2025-01-10 21:33:48 +01:00
|
|
|
#ifndef TESTSUTILS_H
|
|
|
|
#define TESTSUTILS_H
|
|
|
|
|
2025-01-29 16:42:37 +01:00
|
|
|
#include "passphraseprovider.h"
|
2025-01-10 21:33:48 +01:00
|
|
|
#include <QObject>
|
|
|
|
#include <QUrl>
|
|
|
|
#include <QQuickWindow>
|
2025-01-29 16:42:37 +01:00
|
|
|
#include <memory>
|
2025-01-10 21:33:48 +01:00
|
|
|
|
|
|
|
class TestsUtils : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2025-01-29 16:42:37 +01:00
|
|
|
private:
|
|
|
|
std::unique_ptr<TesTPassphraseProvider> m_passphrase_povider;
|
|
|
|
|
2025-01-10 21:33:48 +01:00
|
|
|
public:
|
2025-01-29 16:42:37 +01:00
|
|
|
TestsUtils();
|
2025-01-10 21:33:48 +01:00
|
|
|
~TestsUtils() override = default;
|
|
|
|
|
|
|
|
Q_INVOKABLE QString getTempPath();
|
2025-01-30 16:25:29 +01:00
|
|
|
Q_INVOKABLE bool fileExists(QUrl path);
|
|
|
|
Q_INVOKABLE void copyFolder(QUrl sourceFolder, QUrl destFolder);
|
|
|
|
Q_INVOKABLE QObject *getTestPassphraseProvider();
|
|
|
|
|
2025-01-10 21:33:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|