mirror of
https://github.com/QRouland/UTPass.git
synced 2026-01-11 03:46:58 +00:00
Initial Commit : 0.0.1
This commit is contained in:
21
plugins/Utils/utils.h
Normal file
21
plugins/Utils/utils.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
#include <QQuickWindow>
|
||||
|
||||
class Utils : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Utils();
|
||||
~Utils() override = default;
|
||||
|
||||
Q_INVOKABLE bool unzip(QUrl zip_url, QString dir_out);
|
||||
Q_INVOKABLE bool rmFile(QUrl file_url);
|
||||
Q_INVOKABLE bool rmDir(QUrl dir_url);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user