mirror of
https://github.com/QRouland/UTPass.git
synced 2026-01-10 19:36:57 +00:00
Rewrite import key with rnp
This commit is contained in:
38
plugins/Pass/jobs/importkeyjob.h
Normal file
38
plugins/Pass/jobs/importkeyjob.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#ifndef IMPORTKEYJOB_H
|
||||
#define IMPORTKEYJOB_H
|
||||
|
||||
|
||||
|
||||
#include "rnpjob.h"
|
||||
/**
|
||||
* @class ImportKeyJob
|
||||
* @brief A class to handle import a key file in a separate thread.
|
||||
*
|
||||
*/
|
||||
class ImportKeyJob : public RnpJob
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
/**
|
||||
* @brief The main function that performs the import operation.
|
||||
*
|
||||
* Handles the process of removing recursively a target path.
|
||||
*/
|
||||
void run() override;
|
||||
|
||||
|
||||
private:
|
||||
QString m_key_file_path; ///< The path of the key file to import.
|
||||
|
||||
public:
|
||||
/**
|
||||
* @brief Constructor for the RmJob class.
|
||||
*
|
||||
* Initializes the ImportKeyJob with the file to import.
|
||||
*
|
||||
* @param path Path of the key file to import.
|
||||
*/
|
||||
ImportKeyJob(QDir rnp_homedir, QString key_file_path);
|
||||
};
|
||||
|
||||
#endif // IMPORTKEYJOB_H
|
||||
Reference in New Issue
Block a user