|
Packit |
d7e8d0 |
/*
|
|
Packit |
d7e8d0 |
gpgsignkeyeditinteractor.h - Edit Interactor to change the owner trust of an OpenPGP key
|
|
Packit |
d7e8d0 |
Copyright (C) 2008 Klarälvdalens Datakonsult AB
|
|
Packit |
d7e8d0 |
2016 Bundesamt für Sicherheit in der Informationstechnik
|
|
Packit |
d7e8d0 |
Software engineering by Intevation GmbH
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
This file is part of GPGME++.
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
GPGME++ is free software; you can redistribute it and/or
|
|
Packit |
d7e8d0 |
modify it under the terms of the GNU Library General Public
|
|
Packit |
d7e8d0 |
License as published by the Free Software Foundation; either
|
|
Packit |
d7e8d0 |
version 2 of the License, or (at your option) any later version.
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
GPGME++ is distributed in the hope that it will be useful,
|
|
Packit |
d7e8d0 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
d7e8d0 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
d7e8d0 |
GNU Library General Public License for more details.
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
You should have received a copy of the GNU Library General Public License
|
|
Packit |
d7e8d0 |
along with GPGME++; see the file COPYING.LIB. If not, write to the
|
|
Packit |
d7e8d0 |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
Packit |
d7e8d0 |
Boston, MA 02110-1301, USA.
|
|
Packit |
d7e8d0 |
*/
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
#ifndef __GPGMEPP_GPGSIGNKEYEDITINTERACTOR_H__
|
|
Packit |
d7e8d0 |
#define __GPGMEPP_GPGSIGNKEYEDITINTERACTOR_H__
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
#include <editinteractor.h>
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
#include <string>
|
|
Packit |
d7e8d0 |
#include <vector>
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
namespace GpgME
|
|
Packit |
d7e8d0 |
{
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
class Key;
|
|
Packit |
d7e8d0 |
class UserID;
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
class GPGMEPP_EXPORT GpgSignKeyEditInteractor : public EditInteractor
|
|
Packit |
d7e8d0 |
{
|
|
Packit |
d7e8d0 |
public:
|
|
Packit |
d7e8d0 |
enum SignOption {
|
|
Packit |
d7e8d0 |
Exportable = 0x1,
|
|
Packit |
d7e8d0 |
NonRevocable = 0x2,
|
|
Packit |
d7e8d0 |
Trust = 0x4
|
|
Packit |
d7e8d0 |
};
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
GpgSignKeyEditInteractor();
|
|
Packit |
d7e8d0 |
~GpgSignKeyEditInteractor();
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
void setCheckLevel(unsigned int checkLevel);
|
|
Packit |
d7e8d0 |
void setUserIDsToSign(const std::vector<unsigned int> &userIDsToSign);
|
|
Packit |
d7e8d0 |
void setSigningOptions(int options);
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
private:
|
|
Packit |
d7e8d0 |
/* reimp */ const char *action(Error &err) const;
|
|
Packit |
d7e8d0 |
/* reimp */ unsigned int nextState(unsigned int statusCode, const char *args, Error &err) const;
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
private:
|
|
Packit |
d7e8d0 |
class Private;
|
|
Packit |
d7e8d0 |
Private *const d;
|
|
Packit |
d7e8d0 |
};
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
} // namespace GpgME
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
#endif // __GPGMEPP_GPGSIGNKEYEDITINTERACTOR_H__
|