mirror of
https://github.com/QRouland/UTPass.git
synced 2026-01-10 19:36:57 +00:00
First draft Rewrite get all key with rnp
This commit is contained in:
29
plugins/Pass/jobs/getkeysjob.cpp
Normal file
29
plugins/Pass/jobs/getkeysjob.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <QDebug>
|
||||
#include "getkeysjob.h"
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
extern "C" {
|
||||
#include <rnp/rnp.h>
|
||||
#include <rnp/rnp_err.h>
|
||||
}
|
||||
|
||||
GetKeysJob::GetKeysJob(QDir rnp_homedir):
|
||||
RnpJob(rnp_homedir)
|
||||
{
|
||||
this->setObjectName("GetKeysJob");
|
||||
}
|
||||
|
||||
|
||||
|
||||
void GetKeysJob::run()
|
||||
{
|
||||
qDebug() << "[GetKeysJob] Starting";
|
||||
|
||||
// Loading keyring
|
||||
QSet<QString> fingerprints = QSet<QString>();
|
||||
this->load_full_keyring(&fingerprints);
|
||||
|
||||
//Get all infos keys
|
||||
emit resultSuccess(fingerprints);
|
||||
qDebug() << "[GetKeysJob] Finished Successfully ";
|
||||
}
|
||||
Reference in New Issue
Block a user