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