qgpgme
22 #ifndef __QGPGME_DATAPROVIDER_H__
23 #define __QGPGME_DATAPROVIDER_H__
25 #include "qgpgme_export.h"
26 #include <gpgme++/interfaces/dataprovider.h>
28 #include <QtCore/QByteArray>
30 #include <boost/shared_ptr.hpp>
36 class QGPGME_EXPORT QByteArrayDataProvider :
public GpgME::DataProvider {
38 QByteArrayDataProvider();
39 explicit QByteArrayDataProvider(
const QByteArray & initialData );
40 ~QByteArrayDataProvider();
50 bool isSupported( Operation )
const {
return true; }
52 ssize_t read(
void * buffer,
size_t bufSize );
54 ssize_t write(
const void * buffer,
size_t bufSize );
56 off_t seek( off_t offset,
int whence );
65 class QGPGME_EXPORT QIODeviceDataProvider :
public GpgME::DataProvider {
67 explicit QIODeviceDataProvider(
const boost::shared_ptr<QIODevice> & initialData );
68 ~QIODeviceDataProvider();
70 const boost::shared_ptr<QIODevice> & ioDevice()
const {
78 bool isSupported( Operation )
const;
80 ssize_t read(
void * buffer,
size_t bufSize );
82 ssize_t write(
const void * buffer,
size_t bufSize );
84 off_t seek( off_t offset,
int whence );
89 const boost::shared_ptr<QIODevice> mIO;
90 bool mErrorOccurred : 1;
91 bool mHaveQProcess : 1;
96 #endif // __QGPGME_EVENTLOOPINTERACTOR_H__
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:43 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.