From 9640dc58e498966b482dcded6990cf4b47c556ac Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Thu, 12 Jan 2017 12:57:00 +0100 Subject: 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. --- lang/qt/src/cryptoconfig.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lang/qt/src/cryptoconfig.h') 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; }; /** -- cgit v1.2.3