aboutsummaryrefslogtreecommitdiffstats
path: root/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp
index 006d843..cf20073 100644
--- a/context.cpp
+++ b/context.cpp
@@ -106,7 +106,16 @@ void Context::importKey(QByteArray inBuffer)
checkErr(err);
gpgme_data_release(in);
emit keyDBChanged();
+}
+/** Generate New Key with values params
+ *
+ */
+void Context::generateKey(QString *params)
+{
+ err = gpgme_op_genkey(mCtx, params->toAscii().data(), NULL,NULL);
+ checkErr(err);
+ emit keyDBChanged();
}
/** Export Key to QByteArray