Commit be741531 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Deprecate the old ExportSecretKeyCommand

This will be replaced by a new implementation similar to
ExportSecretSubkeyCommand using GpgME's secret key export. We need to
keep the old implementation for the time being until we require a
new enough QGpgME.

GnuPG-bug-id: 5755
parent 49e0e1b8
......@@ -236,7 +236,7 @@ set(_kleopatra_SRCS
commands/certifycertificatecommand.cpp
commands/revokecertificationcommand.cpp
commands/selftestcommand.cpp
commands/exportsecretkeycommand.cpp
commands/exportsecretkeycommand_old.cpp
commands/exportsecretsubkeycommand.cpp
commands/exportopenpgpcertstoservercommand.cpp
commands/adduseridcommand.cpp
......
/* -*- mode: c++; c-basic-offset:4 -*-
commands/exportsecretkeycommand.cpp
commands/exportsecretkeycommand_old.cpp
This file is part of Kleopatra, the KDE keymanager
SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB
......@@ -9,7 +9,7 @@
#include <config-kleopatra.h>
#include "exportsecretkeycommand.h"
#include "exportsecretkeycommand_old.h"
#include "fileoperationspreferences.h"
......@@ -31,6 +31,8 @@ using namespace Kleo;
using namespace Kleo::Commands;
using namespace GpgME;
namespace Kleo::Commands::Compat {
ExportSecretKeyCommand::ExportSecretKeyCommand(KeyListController *c)
: GnuPGProcessCommand(c)
{
......@@ -175,3 +177,5 @@ void ExportSecretKeyCommand::postSuccessHook(QWidget *)
}
file.close();
}
}
/* -*- mode: c++; c-basic-offset:4 -*-
commands/exportsecretkeycommand.h
commands/exportsecretkeycommand_old.h
This file is part of Kleopatra, the KDE keymanager
SPDX-FileCopyrightText: 2008 Klarälvdalens Datakonsult AB
......@@ -17,6 +17,8 @@ namespace Kleo
{
namespace Commands
{
namespace Compat
{
class ExportSecretKeyCommand : public GnuPGProcessCommand
{
......@@ -59,4 +61,5 @@ private:
}
}
}
......@@ -23,7 +23,7 @@
#include "ui_advancedsettingsdialog.h"
#include "commands/exportsecretkeycommand.h"
#include "commands/exportsecretkeycommand_old.h"
#include "commands/exportopenpgpcertstoservercommand.h"
#include "commands/exportcertificatecommand.h"
......@@ -76,6 +76,7 @@ using namespace Kleo;
using namespace Kleo::NewCertificateUi;
using namespace Kleo::Commands;
using namespace GpgME;
using Kleo::Commands::Compat::ExportSecretKeyCommand;
static const char RSA_KEYSIZES_ENTRY[] = "RSAKeySizes";
static const char DSA_KEYSIZES_ENTRY[] = "DSAKeySizes";
......
......@@ -21,7 +21,7 @@
#include "kleopatra_debug.h"
#include "commands/exportcertificatecommand.h"
#include "commands/exportopenpgpcertstoservercommand.h"
#include "commands/exportsecretkeycommand.h"
#include "commands/exportsecretkeycommand_old.h"
#include "commands/importcertificatefromfilecommand.h"
#include "commands/changepassphrasecommand.h"
#include "commands/lookupcertificatescommand.h"
......@@ -68,6 +68,7 @@ using namespace Kleo;
using namespace Kleo::Commands;
using namespace Kleo::SmartCard;
using namespace GpgME;
using Kleo::Commands::Compat::ExportSecretKeyCommand;
class KeyListController::Private
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment