aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/cryptoconfig.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2017-01-12 11:57:00 +0000
committerAndre Heinecke <[email protected]>2017-01-12 11:57:00 +0000
commit9640dc58e498966b482dcded6990cf4b47c556ac (patch)
tree301452a0aa55c8a79bcaa302571761aa786e167a /lang/qt/src/cryptoconfig.h
parentqt: Don't use qstrdup in test passphrase cb (diff)
downloadgpgme-9640dc58e498966b482dcded6990cf4b47c556ac.tar.gz
gpgme-9640dc58e498966b482dcded6990cf4b47c556ac.zip
qt: Add support for stringValueList in CryptoConf
* lang/qt/src/Makefile.am (qgpgme_sources): Add cryptoconfig.cpp * lang/qt/src/cryptoconfig.cpp: New. * lang/qt/src/cryptoconfig.h (CryptoConfigEntry::stringValueList): New. * lang/qt/src/qgpgmenewcryptoconfig.cpp (QGpgMENewCryptoConfigEntry::stringValueList): New. * lang/qt/src/qgpgmenewcryptoconfig.h: Update accordingly. -- This is a pardigm change in cryptoconfig.h to avoid ABI breaks with each new config value we support it now has an implementation that is directly related to qgpgmenewcryptoconfig, which is now the only one.
Diffstat (limited to 'lang/qt/src/cryptoconfig.h')
-rw-r--r--lang/qt/src/cryptoconfig.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/qt/src/cryptoconfig.h b/lang/qt/src/cryptoconfig.h
index 452bfbb1..c4de22dc 100644
--- a/lang/qt/src/cryptoconfig.h
+++ b/lang/qt/src/cryptoconfig.h
@@ -248,6 +248,15 @@ public:
* @return true if the value was changed
*/
virtual bool isDirty() const = 0;
+
+ // Design change from here on we are closely bound to one implementation
+ // of cryptoconfig. To avoid ABI breaks with every new function we
+ // add real functions from now on.
+
+ /**
+ * @return a stringValueList.
+ */
+ QStringList stringValueList() const;
};
/**