Framework for looking up contacts directly in nepomuk in addition to going through...
[kdepim.git] / messagecomposer / abstractencryptjob.h
blob0750ea3020bcf07ffa2d8c66a6be1e15b9a0fb18
1 /*
2 Copyright (C) 2009 Klaralvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
3 Copyright (c) 2009 Leo Franchi <lfranchi@kde.org>
5 This library is free software; you can redistribute it and/or modify it
6 under the terms of the GNU Library General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at your
8 option) any later version.
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 02110-1301, USA.
21 #ifndef ABSTRACT_ENCRYPT_JOB_H
22 #define ABSTRACT_ENCRYPT_JOB_H
24 #include <QStringList>
26 #include <gpgme++/key.h>
27 #include <vector>
29 /**
30 * Simple interface that both EncryptJob and SignEncryptJob implement
31 * so the composer can extract some encryption-specific job info from them
34 class AbstractEncryptJob
36 public:
37 virtual ~AbstractEncryptJob() {}
39 /**
40 * Set the list of encryption keys that should be used.
42 virtual void setEncryptionKeys( const std::vector<GpgME::Key>& keys ) = 0;
44 /**
45 * Set the recipients that this message should be encrypted to.
47 virtual void setRecipients( const QStringList& rec ) = 0;
49 virtual std::vector<GpgME::Key> encryptionKeys() const = 0;
50 virtual QStringList recipients() const = 0;
53 #endif