Line data Source code
1 : /*
2 : assuantransaction.h - Interface for ASSUAN transactions
3 : Copyright (C) 2009 Klarälvdalens Datakonsult AB
4 : 2016 Bundesamt für Sicherheit in der Informationstechnik
5 : Software engineering by Intevation GmbH <info@kdab.com>
6 : Author: Marc Mutz <marc@kdab.com>
7 :
8 : This file is part of GPGME++.
9 :
10 : GPGME++ is free software; you can redistribute it and/or
11 : modify it under the terms of the GNU Library General Public
12 : License as published by the Free Software Foundation; either
13 : version 2 of the License, or (at your option) any later version.
14 :
15 : GPGME++ is distributed in the hope that it will be useful,
16 : but WITHOUT ANY WARRANTY; without even the implied warranty of
17 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 : GNU Library General Public License for more details.
19 :
20 : You should have received a copy of the GNU Library General Public License
21 : along with GPGME++; see the file COPYING.LIB. If not, write to the
22 : Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 : Boston, MA 02110-1301, USA.
24 : */
25 :
26 : #ifndef __GPGMEPP_INTERFACES_ASSUANTRANSACTION_H__
27 : #define __GPGMEPP_INTERFACES_ASSUANTRANSACTION_H__
28 :
29 : #include "gpgmepp_export.h"
30 :
31 : #include <stddef.h>
32 :
33 : namespace GpgME
34 : {
35 :
36 : class Error;
37 : class Data;
38 :
39 0 : class GPGMEPP_EXPORT AssuanTransaction
40 : {
41 : public:
42 0 : virtual ~AssuanTransaction() {}
43 :
44 : virtual Error data(const char *data, size_t datalen) = 0;
45 : virtual Data inquire(const char *name, const char *args, Error &err) = 0;
46 : virtual Error status(const char *status, const char *args) = 0;
47 : };
48 :
49 : } // namespace GpgME
50 :
51 : #endif // __GPGMEPP_INTERFACES_ASSUANTRANSACTION_H__
|