aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/dataprovider.h
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2023-01-27 10:44:55 +0000
committerIngo Klöcker <[email protected]>2023-01-27 11:17:09 +0000
commit275a3a2c16d27e5bc87f7d80af2ee703a92b6758 (patch)
tree8323da8321fd9487ab7a6400a1690c00f41efa5b /lang/qt/src/dataprovider.h
parentcpp: Support new archive encryption flag (diff)
downloadgpgme-275a3a2c16d27e5bc87f7d80af2ee703a92b6758.tar.gz
gpgme-275a3a2c16d27e5bc87f7d80af2ee703a92b6758.zip
qt: Add data provider for list of file names
* lang/qt/src/Makefile.am: Add new files and corresponding camel-case header. * lang/qt/src/dataprovider.h: Include interface from gpgme++ when not building. * lang/qt/src/filelistdataprovider.cpp, lang/qt/src/filelistdataprovider.h: New. -- The new data provider simplifies providing a nul-separated list of UTF-8-encoded filenames, e.g. for creating signed or encrypted archives. It is a simple read-only proxy for QByteArrayDataProvider. GnuPG-bug-id: 6342
Diffstat (limited to 'lang/qt/src/dataprovider.h')
-rw-r--r--lang/qt/src/dataprovider.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/qt/src/dataprovider.h b/lang/qt/src/dataprovider.h
index 636d6fb6..b14e7d54 100644
--- a/lang/qt/src/dataprovider.h
+++ b/lang/qt/src/dataprovider.h
@@ -25,7 +25,13 @@
#define __QGPGME_DATAPROVIDER_H__
#include "qgpgme_export.h"
+
+#ifdef BUILDING_QGPGME
#include <interfaces/dataprovider.h>
+#else
+#include <gpgme++/interfaces/dataprovider.h>
+#endif
+
#include <memory>
#include <QtCore/QByteArray>