1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-02-12 07:27:15 +00:00

29 lines
562 B
C
Raw Normal View History

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();
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